How background-y is HSEROUT on a 14M2 ?
The limited two-byte hserin buffer is understood and clearly documented, but ....
I'm making a protocol converter for CCTV serial commands; listens for 7/8 byte packets or frames with hserin, manipulates a whole frame of data, and outputs with hserout on a different wired bus. One-way only.
Two areas of interest really ; while a frame is being output, is hserout fully or partly "blocking", is there any hidden buffering? i.e. do we execute the next line of code before all the data is transmitted?
I have an "RTS" control to turn the transmitter on and off (external RS485 hardware) and do not want to turn it off if, say, the last byte is still in the Picaxe buffer.
In reality I will code a short delay anyway, but just trying to establish the basics - should that be at least one- or two-byte transmission times, for example.
Different thought, does the hserin buffer still operate while hserout transmission is in progress? I'm certainly not attempting or expecting full duplex operation, wondering what happens if the next input frame starts to arrive.
In this application, lost or trampled frames aren't a disaster luckily.
The limited two-byte hserin buffer is understood and clearly documented, but ....
I'm making a protocol converter for CCTV serial commands; listens for 7/8 byte packets or frames with hserin, manipulates a whole frame of data, and outputs with hserout on a different wired bus. One-way only.
Two areas of interest really ; while a frame is being output, is hserout fully or partly "blocking", is there any hidden buffering? i.e. do we execute the next line of code before all the data is transmitted?
I have an "RTS" control to turn the transmitter on and off (external RS485 hardware) and do not want to turn it off if, say, the last byte is still in the Picaxe buffer.
In reality I will code a short delay anyway, but just trying to establish the basics - should that be at least one- or two-byte transmission times, for example.
Different thought, does the hserin buffer still operate while hserout transmission is in progress? I'm certainly not attempting or expecting full duplex operation, wondering what happens if the next input frame starts to arrive.
In this application, lost or trampled frames aren't a disaster luckily.