Shop OBEX P1 Docs P2 Docs Learn Events
FullDuplex - two UARTS on two cogs? — Parallax Forums

FullDuplex - two UARTS on two cogs?

LeonLeon Posts: 7,620
edited 2007-09-20 09:29 in Propeller 1
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

Comments

  • mirrormirror Posts: 322
    edited 2007-09-20 09:22
    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.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
  • LeonLeon Posts: 7,620
    edited 2007-09-20 09:29
    It actually *is* working, I was checking the wrong pin on the Prop Plug connector! 8-(

    Leon

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Amateur radio callsign: G1HSM
    Suzuki SV1000S motorcycle
Sign In or Register to comment.