Preventing resets on the QuickStart
Tintin
Posts: 37
The QuickStart resets every time I connect it to a computer. I think this is caused by the DTR line from the onboard FTDI device. Although this reset is needed for programming the board, there are cases where it is undesirable. Is there a way to prevent this reset, either through software, or by nonintrusive hardware? By "nonintrusive" I mean not having to scrape traces off the board to install a jumper!
Comments
I wonder what happens if you put a jumper from the FTDI Reset pin to GND when it is not being used. I read this as that if you have a 10K pulldown on the base of the NPN that controls the Prop RST pin, there should be no signal produced on the DTR pin when plugging in the cable. ** This assumes the FTDI reset pin is active low to enter reset mode, which I have not checked.
There is a 10K pulldown there already on the schematic (rev A_2). The FTDI is powered from the USB so this is more likely caused by the chip powering up. If there are 200K internal pullups on the FTDI chip perhaps a 10K pulldown on the FTDI DTR pin might work. Of course if powering up the FTD! chip causes a glitch that sets the DTR pin to an output and to high momentarily this may not work either.
-Phil
I've tried Phil's solution in the past, and it seems to work fine. I'm just a bit uneasy about that short-lived short causing the board to be "short-lived" too. Especially that the short is not so short lived if I press the reset button. I wonder if putting a fast resettable fuse between Vdd and nRES would help...
Tying nRES to Vdd would cause a brief short through Q1 whenever DTR is high, but would tying nRES to Vdd be bad for the propeller chip?
Well, it seems that even 2 ohms is not low enough. In fact, if the jumper wire between the pins is longer than about an inch, the resulting resistance is still too high! The approach only works with a small jumper wire.
Another thought would be to reprogram the FTDI pin for DTR, rather than #DTR (which may or may not help but worth a try), if that can be done, and IIRC it can be. You can also program the pin just to stay low, but you'd have to reprogram it every time you wanted to upload a program to the Prop.
-Phil
As for setting the #DTR pin to DTR, that didn't work: the reset still occurs. Moreover, it seems that the only pins on the FTDI that can be reprogrammed beyond inversion are the CBUS pins. I've already changed CBUS0 and CBUS3 to tristates so that only Vin (and not 5V_USB) powers the board, allowing the QuickStart to be turned off while still connected to a computer.
Edit: For future reference, I should add that the jumper on Q2 requires the circuitry of the Rev B board, so that \UPE can be driven high.