Help with FullduplexSerial
Mike G
Posts: 2,702
I'm trying to wrap my brain around FullDuplexSerial. I'm having difficulty understanding how the jmpret command is working in this context.
I see how calling receive jumps to transmit but what happens next? Does "jmpret txcode,rxcode" cause the receive code to run again?
mov txcode,#transmit 'initialize ping-pong multitasking ... receive jmpret rxcode,txcode 'run a chunk of transmit code, then return ... transmit jmpret txcode,rxcode 'run a chunk of receive code, then return
I see how calling receive jumps to transmit but what happens next? Does "jmpret txcode,rxcode" cause the receive code to run again?
Comments
At that point the program alternates between the receive and transmit routines.
Leon
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Amateur radio callsign: G1HSM
Suzuki SV1000S motorcycle
Post Edited (Leon) : 1/2/2008 8:21:42 PM GMT
I think your confusion stems from the destination address being store in the source operand (where one would naturally think destination address = destination operand).
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker
Propeller Applications Engineer
Parallax, Inc.
Leon
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Amateur radio callsign: G1HSM
Suzuki SV1000S motorcycle
Thanks Paul
you will get additional insight reading that thread
http://forums.parallax.com/showthread.php?p=681299
where such techniques have been discussed in detail some time ago...