need help in displaying data send by PC s/w controlling radio scanner.


Closed Thread
Results 1 to 6 of 6

Hybrid View

  1. #1
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,624


    Did you find this post helpful? Yes | No

    Default

    Hi,
    This is probably not the best project for a beginner and I don't have any way to test what I write but lets see if we can figure it out. If any one else sees this please feel free to jump in!

    Can u pls explain why have u declared array (mystring var byte (16) of 16
    Since I didn't know how many bytes the computer sends in the data-area and the spec-sheet you uploaded doesn't say I just took a number. You may need to adjust that to match.

    1) Are you sure about the 2400baud? What about parity? 1 or 2 stopbits? The spec-sheet doesn't say....

    2) You are running the PIC on its internal oscillator - this is usually not a good idea when using serial comms. I sugest you switch to a X-tal, atleast untill you have it working. Then you can try running on the internal oscillator.

    3) Arrays are zero-indexed so if you have an array of 16bytes they are numbered 0-15.

    Code:
    x VAR Byte
    cnt VAR Byte
    r10Data VAR Byte[16]
    
    '************** Array and LCD-test *******************
    'This will fill the buffer with 65,66,67,68 etc which is ASCII for A,B,C,D etc
    for cnt=0 to 15
     r10Data[cnt] = cnt + 65
    NEXT cnt
    
    'Then run thru the array and display on the LCD - should read: ABCDEFGHIJKLMNOP
    LCDOUT $FE,1    'Clear display
    for cnt= 0 to 15
     LCDOUT r10Data[cnt]
    NEXT cnt
    
    Pause 1000
    '*****************************************************
    loop: 
    
      HSERIN [WAIT($52,$E0), STR r10data\16\$FD]
      LCDOUT $FE,1,"Data recieved"	'Show messege
      PAUSE 1000			'Wait....
     
      FOR cnt = 0 to 15
        LCDOUT DEC r10data[cnt], " "
      NEXT cnt
    
      PAUSE 1000
    GOTO LOOP
    /Henrik Olsson

  2. #2
    Join Date
    Mar 2007
    Location
    Mumbai-INDIA
    Posts
    22


    Did you find this post helpful? Yes | No

    Smile Thank you henrik

    Hi Henrik

    Thank u my friend, I can see frequency send by PC program to radio on LCD via serial port. I have extracted necessary info from relevent array and I have got my project going. Last month I also made a simple repeater controller for 2m and repeater is working very well.

    Once again thanks to you and to this wonderful forum.

    LONG LIVE PBP.

    regards
    mahesh
    vu2iia

Similar Threads

  1. Using Nokia LCD
    By BobP in forum mel PIC BASIC Pro
    Replies: 300
    Last Post: - 3rd May 2018, 05:47
  2. Send data PIC to PC
    By konter in forum Off Topic
    Replies: 6
    Last Post: - 25th December 2009, 23:04
  3. Big characters on HD44780 4x20
    By erpalma in forum mel PIC BASIC Pro
    Replies: 23
    Last Post: - 7th January 2007, 03:21
  4. LCD + bar graph
    By DynamoBen in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 5th October 2005, 15:50
  5. Sinus calculating !
    By Don Mario in forum mel PIC BASIC Pro
    Replies: 29
    Last Post: - 29th November 2004, 00:56

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts