Half duplex using fdserial.h?
Little-endian
Posts: 91
I'm developing a Propeller application that interfaces with a half-duplex serial device using one wire for the singal. The device I'm communicating with has a pullup to 3.6v and I have a 220 ohm resistor between the device and the Prop pin. Receiving from the device I'm interfacing to has been working great using fdserial.h. I haven't tried transmitting anything yet because I wanted to make sure I won't damage my Prop or my serial device if fdserial.h makes the Prop pin an output that already has a pullup on it. Can fdserial.h use the same pin for TX and RX? Do I need to add anything to my circuit to make this work? Just being overly cautions here.
I realize serial.h is for half-duplex connections, but it doesn't appear to have all the features and functionality of fdserial.h.
I realize serial.h is for half-duplex connections, but it doesn't appear to have all the features and functionality of fdserial.h.
Comments
Sorry I can't directly answer your question. I don't know fdserial well enough.
Buffered for RX, not sure I need it for TX. I'm using fdserial_rxReady and didn't see a similar function for serial.h, unless I missed it.
There isn't one. The serial.h library runs in the same cog as the main program (saving a cog and hub ram space but losing flexibility). The goal of the serial library is to provide a simple debug console. If you need rxReady, use fdserial.
Thanks jazzed. Doing some more searching since my original post I think I may have my question resolved. I just need to find some time to test it. Hopefully by the end of the week.