nope.. i haven't talked about led blink yet![]()
nope.. i haven't talked about led blink yet![]()
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Finally I dot it , I make a USB to COM converter cable or COM to USB converter cable and save about 40 $ thanks for all members who help me in my project.
But in my project I have some notes :
SEROUT2 PIC_TX,84,["hello",13,10] ; at baud rate 9600 (work)
SEROUT PIC_TX,84,["hello",13,10] ; at baud rate 9600 (not work)
SEROUT PIC_TX,T9600,["hello",13,10] ; at baud rate 9600 (work)
serin rx,T9600,b0 ( work)
serin rx,T9600,[b0] (not work)
* configurations for USART will be on osc defined in pbp code not on external crytall
for example you will get configurations for 9600 at osc=48MHZ not on osc=20MHZ
does the brackets in serin have any meaning ?
SEROUT/SEROUT2 baudrate mode are quite different. Both are listed in the manual
as for the bracket in SERIN... well, the manual also explain the syntax... the code example is also self-explanatory
SERIN/SEROUT don't use the USART, it's software solution. HSERIN/HSEROUT use the USART.Code:' Wait until the character “A” is received serially on Pin1 and put next character into B0 SERIN 1,N2400,["A"],B0
And you're right, you use the OSC value for your USART.
Last edited by mister_e; - 20th April 2008 at 14:24.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks