Serial implementation on different pins
fiero79
Posts: 8
I am trying to use a serial object(simple_serial, or full duplex serial), to communicate using pins 10 and 11 with first an arduino, then a after proven to work, a sparkfun obd2 uart module. I know that I have to convert the levels to interface with the propeller, and I have an idea of using 2 hex schmitt trigger chips one for the 3 volt side, and the other to the 5 volt side. I have not figured out how to implement serial of any type on pins other than the standard pins that the parallax serial terminal communicates with. I am using a quickstart board, and bare bones arduino, and breadboar. I have no experience with the propeller but have been using Aruinos for years.
Help please.
Charlie
Help please.
Charlie
Comments
If you want more specific help, you'll need to make a schematic drawing of your setup, scan it in, and post it as an attachment to a reply here. Use the Attachment Manager that you get by clicking on the Go Advanced button under the Quick Reply window. Also include your source program as an attachment.
Charlie
Or here's the more traditional usage of FullDuplexSerial
In both of these examples, to change the pin usage just edit the con section. Example (second usage) : To make pins 18,19 = RX,TX : Change CON section as so
If you could post some test code, we could help you further!
Charlie
Suggestion: If you're going to be switching around like this you should probably have a pull-up on the RX lines of your devices (will be your TX line in FDS). When you stop FDS for one set those pins will be floated; by having a pull-up on your TX pins (again, to the device RX), you won't have to worry about glitches when switching from one to another.