Dear Sirs,Madams:
I am having problems to implement Serin2 in a pic16f689.
This is the code I am using:
MainLoop:
SERIN2 Rxpin,84,[STR test8/8]
'instructions to process incoming data and reply with data (i.e. serout2)
Goto Mainloop
Where
Rxpin: Rx pin (PORTB.5 in PIC16F689 and PORTC.7 in PIC16F877A)
84: 9600,8,n,1
test8 declared as var byte[8]
This code works fine with PIC16F877, waiting for 8 characters to be received before processing incoming data but it does not work with PIC16F689.
When I run it in PIC16F689, it does not wait incoming data to arrive and executes instructions to process incoming data.
Your help will be greatly appreciated
Thanks
Sincerely,
Jesús Baez
Bookmarks