PC to PIC via RS232


Closed Thread
Results 1 to 4 of 4
  1. #1
    Join Date
    Jun 2006
    Posts
    16

    Question PC to PIC via RS232

    Hi

    Ich have a problem.....I want my PC to comunicate with my Pic...
    Between the Pic and the Pc there is a Bluetoothmodul and a Max232....The Software configures it as a Com Port......I connected the Max232 with the Pins RB1/RX/DT to receive and the RB2/TX/CK to send commands.....But with my computer I only receive € and other french signes.......

    My Code to send a command to the Computer:

    SerOut 2, N2400, ("a")


    My Code to receive a command from the PC:

    SerIn 1, N2400, (B0)
    if Bit0 = 1 then Comand_1
    if Bit1 = 1 then Comand_2
    ....

    Martin

  2. #2
    DiGGi's Avatar
    DiGGi Guest


    Did you find this post helpful? Yes | No

    Default

    hi,
    I had the same problem.
    Try to check B0 insted of the seperated Bits.

    Diggi

  3. #3
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    MIIIIP bad answer. If you have a MAX232 between your PIC and your PC you must use the True mode in SEROUT
    SerOut 2, T2400, ("a")

    psst there is nothing french in the character you see.. trust me

    Ca c'est du francais stie!
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  4. #4
    Join Date
    Jun 2006
    Posts
    16


    Did you find this post helpful? Yes | No

    Talking Hi

    I solved the problem I donīt know how but itīs working now.....Here is one of the signs I received before: ā or € etc....

    thx

    Martin

Similar Threads

  1. Send data PIC to PC
    By konter in forum Off Topic
    Replies: 6
    Last Post: - 25th December 2009, 22:04
  2. Replies: 67
    Last Post: - 8th December 2009, 02:27
  3. HSERIN & Interupts (aka controlling PIC programs from a remote PC)
    By HankMcSpank in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 17th June 2009, 14:46
  4. RS232 into 2 PC ports
    By manxman in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 30th August 2008, 13:33
  5. PIC18F4680 to PC via MAX232 (RS232 serial) no output
    By opticsteam1 in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 14th April 2008, 20:39

Members who have read this thread : 1

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