P2 32 bit serial - inverted more useful than non inverted?
Tubular
Posts: 4,702
I've been making use out the SEROUT feature of the prop 2. Its great for intra-cog debugging because in a single instruction you can send out a byte, or indeed a non inverted (0=Low,1=High) 32 bit long.
However I think the 32 bit inverted mode could be more useful than the non inverted mode, because then you can pack 3 characters, with forced start/stop bits at appropriate places within the 32 bit frame, into a single instruction, and still read it with a standard serial adapter at the PC end. The non-inverted 32 bits would need a logic analyzer (or intermediate prop) to decode.
As its currently implemented, only the 32 bit non inverted mode is available, in addition to 8 bit inverted and 8 bit non inverted.
If it ends up being possible to invert on the final pin driver, then I guess that would solve this problem.
However I think the 32 bit inverted mode could be more useful than the non inverted mode, because then you can pack 3 characters, with forced start/stop bits at appropriate places within the 32 bit frame, into a single instruction, and still read it with a standard serial adapter at the PC end. The non-inverted 32 bits would need a logic analyzer (or intermediate prop) to decode.
As its currently implemented, only the 32 bit non inverted mode is available, in addition to 8 bit inverted and 8 bit non inverted.
If it ends up being possible to invert on the final pin driver, then I guess that would solve this problem.
Comments