Hi I am trying to send packets of data using HSErout instead of SErout......The reason being when I try to use serout .. my A/d conversion is not as responsive as in Hserout.
This is the code I am trying to use.. Pls tell me if this is the right approach or not...
hserout ["SYNC",B2] using UART and I have also tried software using
serout2 PORTB.6,T1200,["SYNC",B2]
here B2 stores the A/d results...
for serin :
the hardware code is
HSERIN 1,Main,[wait ("SYNC"),B0]
and software is SERIN2 PORTB.4,T1200,10,Main,[wait ("SYNC"),B0]
Pls reply as I need to get it done today thanks
Bookmarks