Shop OBEX P1 Docs P2 Docs Learn Events
FullDuplexSerial help please. — Parallax Forums

FullDuplexSerial help please.

w4fejw4fej Posts: 264
edited 2011-10-03 12:35 in Propeller 1
I'm fairly new to Spin but have also had a lot of success with many of the objects in the exchange. For the life of me I cannot get FDS to work for me. I am sure I am missing something really simple but the solution eludes me.

I have no trouble at all using BS2_Functions from the exchange for my serial LCD. Works every time. Most of the objects in the exchange I have been able to get working by reading the source comments ...

I am using a Scott Edwards 4X20 serial LCD. Only three wires, +5, gnd and data. No hand shaking available or required. Simply send it data at 9600, N,8,1 on pin P0 and it works..

Could someone PLEASE post a super simple listing that just sends "Hello world" or even a single character?? If I see how it's SUPPOSED to be done I can figure out the rest on my own..

If nobody wants to mess with something so simple that's cool and I understand..

Thanks for reading.
Mike B.

Comments

  • JonnyMacJonnyMac Posts: 9,203
    edited 2011-10-03 12:15
    Set FDS for inverted mode serial and you'll be fine.
    fds.start(LCD, LCD, %1111, 9600)
    

    Here's the thing, though. The SEETRON LCDs are setup to take RS-232 voltages from a PC, so they have a divider on them. You're only providing 3.3v which is going through that divider, so the voltage to the pin on processor can be "iffy" (i.e, not above the logic threshold of the pin).
  • w4fejw4fej Posts: 264
    edited 2011-10-03 12:35
    JonnyMac wrote: »
    Set FDS for inverted mode serial and you'll be fine.
    fds.start(LCD, LCD, %1111, 9600)
    

    Here's the thing, though. The SEETRON LCDs are setup to take RS-232 voltages from a PC, so they have a divider on them. You're only providing 3.3v which is going through that divider, so the voltage to the pin on processor can be "iffy" (i.e, not above the logic threshold of the pin).

    Unbelievable!! It must be the mode parameter that was screwing me up.. THANK YOU!! This LCD has always worked like a charm on the Prop but I suppose I might want to think about a buffer of some sort to insure I always get the "slam dunk" logic level.

    Again, thanks Jon. Guess I need to practice "seeing the trees through the forest!"

    Mike B.
Sign In or Register to comment.