PDA

View Full Version : FullDuplex - two UARTS on two cogs?



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

mirror
09-20-2007, 04:22 PM
I used FullDuplexSerial to receive on 4 ports, and transmit on 2 others without any problem. Which means that 7 cogs were/are running.

The 4 receivers where Infra-Red channels. One of the transmitters was a "collated channel" of the Infra-Red signals, the final port was used for debugging (actually a copy of SerialMirror, but it's very similar to FullDuplexSerial).

I've had no problems.

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔

Leon
09-20-2007, 04:29 PM
It actually *is* working, I was checking the wrong pin on the Prop Plug connector! 8-(

Leon

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Amateur radio callsign: G1HSM
Suzuki SV1000S motorcycle