Leon
09-20-2007, 04:16 PM
I'm trying to get FullDuplex working on two cogs, as I need two UARTS, but I'm only getting output from one. Here is my test code:
OBJ
PC : "FullDuplex"
camera : "FullDuplex"
PUB go
PC.start(31, 30, 9600) '' Rx pin 31, Tx pin 30
camera.start(14, 15, 19200) '' Rx pin 14, Tx pin 15
repeat
camera.tx("u")
PC.tx("u")
while true
The start function in FullDuplex should start a new cog, but I'm only getting output from the camera port.
Leon
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Amateur radio callsign: G1HSM
Suzuki SV1000S motorcycle
OBJ
PC : "FullDuplex"
camera : "FullDuplex"
PUB go
PC.start(31, 30, 9600) '' Rx pin 31, Tx pin 30
camera.start(14, 15, 19200) '' Rx pin 14, Tx pin 15
repeat
camera.tx("u")
PC.tx("u")
while true
The start function in FullDuplex should start a new cog, but I'm only getting output from the camera port.
Leon
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Amateur radio callsign: G1HSM
Suzuki SV1000S motorcycle