High sPC_FLOW_CTS ' Clear PC To Send
HSerIn 1000,EXIT_HSERIN_MEM_FAIL,[yBYTE_FROM_PC]
EXIT_HSERIN_MEM_FAIL:
Low sPC_FLOW_CTS
How does such code work exactly?
Does Hserin takes care of reading some control bit (something I would have to do if I were to write a bit-banging routine?), it handshakes with the PC at the rate defined in BAUDCON,RXSTA, TXSTA?
As I understand it, it will store data from PC in the 8,1 format (so the PC has to also send in this format... will it add the stop bit automaticaly??) when the byte has been received, it is stored in the variable yBYTE_FROM_PC. The 1000ms delay must be a the higher limit of a counter in a loop where Hserin checks periodicaly a flag bit to see if the transfer is complete, right?
How much time does such code use (if we consider there is no timeout)??
Bookmarks