Shop OBEX P1 Docs P2 Docs Learn Events
The Rx_Pin and Tx_Pin of Propeller — Parallax Forums

The Rx_Pin and Tx_Pin of Propeller

kevinspacekevinspace Posts: 56
edited 2011-03-22 23:57 in Propeller 1
Hello, everybody~

The Rx_Pin and Tx_Pin of Propeller which only used at pin_30 and pin_31 ?

Can I set other pin as Rx_Pin and Tx_Pin ?

Like it :

dira[1] := 1
dira[2] := 1

outa[1] := outa[30]
outa[2] := outa[31]

Because I used the Propeller Demo Board and try to used serial output by RS-232.

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2011-03-22 22:16
    Pins 30 and 31 are used during the boot process to possibly talk to a PC using serial I/O. Once a program is downloaded either from a PC or from an EEPROM on pins 28 and 29, these pins are changed to input mode and not used further unless the user program makes use of them. Some of the software in the Object Exchange uses pins 30 and 31 for serial I/O for debugging or as a user console since there may already be a serial connection to a PC, but there's no requirement for this. The pin numbers can be changed and the programs recompiled to use other pins. You can even have several serial connections going at the same time using different I/O pins.
  • JasonDorieJasonDorie Posts: 1,930
    edited 2011-03-22 23:57
    On the DemoBoard, the built-in USB connection is hard wired to pins 30 & 31. If you were to connect a PropPlug or other USB-to-serial connector, you could use any of the other pins you have access to. On a DemoBoard that would mean pins 0 to 7. The Propeller chip itself doesn't restrict which pins can be used for serial communication.
Sign In or Register to comment.