luminastrum
New Member
Hello, I'm baffled with the speed of the 08M sertxd command. The baudrate for this chip and function is 4800 bits per second, or 600 bytes per second. I wrote a short & simple routine (see below) to output a variable called "light". Code execution takes time, so I expected the code to transmit the variable 500 times per second (600 would be the peak). But when I execute the code, it only transmits at 65 values per second. Am I interpreting baudrate incorrectly? I appreciate you help in this matter. Thank you.
symbol ii=b0
symbol jj=b1
symbol light=b2
sertxd(13)
for ii=0 to 50
for jj=0 to 50
readadc 4, light
sertxd(" ", #light, 13)
next jj
next ii
symbol ii=b0
symbol jj=b1
symbol light=b2
sertxd(13)
for ii=0 to 50
for jj=0 to 50
readadc 4, light
sertxd(" ", #light, 13)
next jj
next ii