Shop OBEX P1 Docs P2 Docs Learn Events
Using pins 30/31 after boot with FT232BL — Parallax Forums

Using pins 30/31 after boot with FT232BL

T ChapT Chap Posts: 4,223
edited 2007-03-10 11:39 in Propeller 1
I copied the schematic from the demo board, in which the FT232 takes its power from the USB cable. The FTDI will be unpowered IF unplugged right? Assuming this is the case and the Prop Rx will be sitting low with no FT232 keeping it high, what is a method to accommodate all the various scenearios of states?

1. FT232 powered, unpowered
2. Remote serial device on, off

An AND only works if the FT232 is always on, and the remote device is always ON, not a given

An OR only works if the FT232 is always off, and the remote serial device is ON, not a given
415 x 407 - 34K

Comments

  • Peter JakackiPeter Jakacki Posts: 10,193
    edited 2007-03-10 11:39
    Simply check for break conditions such as when you receive all 0's and have no stop bits, in which case discard and loop. It won't hurt the cog. Maybe you might want to set a global flag to say it is in this state to enable application code to make a decision on the state of the port. You will have to modify the normal serial object to do this properly I guess. I will have new serial objects available soon that handle all these conditions plus handshaking and selectable data bits etc.

    *Peter*
Sign In or Register to comment.