David
Joined: 20 Jul 2005 Posts: 1 Location: BANGKOK, THAILAND
|
RS232 device problem |
Posted: Tue Aug 16, 2005 9:59 am |
|
|
I have a problem problem with a serial reader that I've connected with a PIC 18F452.
It's working very well with my PC using this program :
OPEN "COM1:9600,N,8,1,RS,OP,CD0,DS0" FOR RANDOM AS #1
PRINT #1, CHR$(27); CHR$(69)
but I tried this program and many others commands too and it doesn't working because the reader seems to not receive the command (printf, ("%C%C"),...).
void main() {
int a, b;
a = 0x1b;
b = 0x45;
delay_ms(500);
putc(a);
putc(b);
while(1);
}
Do you think it'd be about a voltage problem on the RX pin of the reader and I need to use a TTL/RS232 converter chip ?
Thank you for your help
Kind regards,
David |
|