HELP! Serial input between Pic and PC (urgent)


Closed Thread
Results 1 to 35 of 35

Hybrid View

  1. #1
    Join Date
    Nov 2007
    Posts
    11


    Did you find this post helpful? Yes | No

    Default

    Hi Dave,

    1. The attachment is my circuit diagram, pls comment to me if there are something wrong.
    Thanks

    2. Source Code:
    '################################################# #########
    Define OSC 10
    include "Modedefs.bas"
    ADCON1 = 7

    TRISA = %010000 'RA4 as serial input, RA3 as serial output
    TRISB = 0 'PortB used to ON the LED

    CHAR var byte

    PORTB = 0

    Main:

    SERIN PORTA.3,T9600,CHAR

    PORTB = CHAR

    SEROUT PORTA.3,T9600,[CHAR,10] 'I used hyperterminal to received the data
    'that sent to pic

    GOTO MAIN
    ############################################

    3. I was try to change the value of OSC but still get the same result. For Example: when i sent "1" from hyperterminal to pic but the result that returned to hyperterminal is " ' " then the result on LED is "11111010". I was checked the ASCII table, the result is not same with the data i sent.
    Attached Images Attached Images  

Similar Threads

  1. Send binary file to pic over pc serial port
    By xnihilo in forum mel PIC BASIC Pro
    Replies: 20
    Last Post: - 3rd May 2011, 13:47
  2. Replies: 11
    Last Post: - 12th July 2008, 02:36
  3. interfacing to the pc serial port
    By kelangfei in forum General
    Replies: 4
    Last Post: - 7th October 2007, 22:35
  4. High Speed Serial Comm PC - PIC and PIC - PIC
    By manumenzella in forum mel PIC BASIC Pro
    Replies: 23
    Last Post: - 16th January 2007, 21:55
  5. Replies: 5
    Last Post: - 20th March 2006, 01:34

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