-
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
-
hi,
I had the same problem.
Try to check B0 insted of the seperated Bits.
Diggi
-
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 :D
Ca c'est du francais stie!
-
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