TXD timing issues
Posted: Fri Feb 15, 2013 4:46 pm
A while back I started using TXD0/1 in place of SEROUT to take advantage of the hardware UARTs and allow my program to continue working. However, I recently noticed that I was spending a LOT of time in my subroutine that was writing out data and put in some code to calculate timing on TXD1. It appears that a call to TXD1 takes whatever amount of time is needed to write out a single character at the current BAUD rate (e.g. 0.1msec @ 115K or 0.5 msec @ 19.2K). I thought at first that it was perhaps the device I was talking to (a Bluetooth chip) but changed my code to use TXD0 talking to the PC running BASICtools and saw the same behavior.
I am using the ProPlus board running v8.15 ARMbasic and v8.14b (or 5.14 ??) of the BASICtools compiler.
Am I doing something wrong? If not, how is using the TXD interface any better than SEROUT??
Thanx,
e
I am using the ProPlus board running v8.15 ARMbasic and v8.14b (or 5.14 ??) of the BASICtools compiler.
Am I doing something wrong? If not, how is using the TXD interface any better than SEROUT??
Thanx,
e