FullDuplexSerial behavior on floating pin - rxcheck is > -1
Landon Cox
Posts: 2
I'm working with the FullDuplexSerial object and the propeller proto board. I've started the serial object on 5 sets of pins, two sets are in use: one set has an actual device attached (a GPS) and one set has a level converter connected to a serial port on my laptop. The other 3 sets have nothing attached to them. For testing, I'm bridging all ports to the port connected to my laptop...when bridging just the GPS connected port, it works fine. The other ports pass the rxcheck (return >-1) even though nothing's connected to them.
When I use the serial object rxcheck, I'm getting values > -1 for all the rx pins that are are not connected to anything indicating that data was received. For the one that's connected to a GPS, I get the correct rxcheck statuses back, including a -1 when the GPS is not transmitting.
Question is: what's the right way to handle floating pins and FullDuplexSerial? I will use all 5 sets with FullDuplexSerial, but at any one time, one or more sets may not be connected. Can I just tie up the rx pins to 3.3V permanently...then when a device is connected, it will have to pull it down like normal serial streams start bit when it transmits? I'm not sure what the right way to handle this electrically is, so I don't have to do anything special except connect a device and when not connected, it won't look like data coming in on those pins.
Thanks for any help.
When I use the serial object rxcheck, I'm getting values > -1 for all the rx pins that are are not connected to anything indicating that data was received. For the one that's connected to a GPS, I get the correct rxcheck statuses back, including a -1 when the GPS is not transmitting.
Question is: what's the right way to handle floating pins and FullDuplexSerial? I will use all 5 sets with FullDuplexSerial, but at any one time, one or more sets may not be connected. Can I just tie up the rx pins to 3.3V permanently...then when a device is connected, it will have to pull it down like normal serial streams start bit when it transmits? I'm not sure what the right way to handle this electrically is, so I don't have to do anything special except connect a device and when not connected, it won't look like data coming in on those pins.
Thanks for any help.
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Harley Shanko
Thanks again,
Landon
Just connect a pullup resistor of around 10 kOhm on every RX pin to 3.3V, and your problem is solved.
Andy