How does a capacitor on pin 2 of an FTDI chip do the reset?
Martin_H
Posts: 4,051
I have a programming cable based on an FTDI chip that works with both the Propeller chip and an AVR with the Arduino boot loader. I never really gave this much thought because I figured this must be a standard both are following. However, last night I discovered something weird that really confused the heck out of me.
I knew that the Propeller chip was reset when the reset pin was brought low, but last night I learned that the Arduino is reset when its reset pin is brought high. So the two chips are exactly the other way around from each other, but the same signal works for both of them. How does this work?
Obviously that little capacitor is doing some black magic.
I knew that the Propeller chip was reset when the reset pin was brought low, but last night I learned that the Arduino is reset when its reset pin is brought high. So the two chips are exactly the other way around from each other, but the same signal works for both of them. How does this work?
Obviously that little capacitor is doing some black magic.
Comments
Leon, then what I read must be wrong, except I thought I was seeing that behavior so I must be missing something.
The wireless programmer is a 3.3 volt device and includes Tx, Rx, DTR, inverted DTR, and Arduino DTR as its outputs. The Arduino DTR is low pulses high, then goes low when DTR is asserted. On the high pulse the Arduino is reset, so that's why I assumed Arduino reset logic is reversed, but I'm thinking that perhaps in the 3.3 to 5 volt conversion shield the logic is inverted.
I've been able to interface Tx and Rx to the Propeller and that works great. So the DTR signal is all that's left, but when I hooked up the Arduino DTR line I noticed that the Propeller was stuck in reset. That's when I realized I needed to understand the DTR and capacitor on my FTDI cable because something important was lacking in my understanding.
Given this thread I may either stick a 0.1 uF cap between DTR and the Propeller's reset line, or stick an inverter between Arduino DTR and the Propeller. I think either may work.
So which one did work for you - a 0.1 uF cap between DTR and the Propeller's reset line, or an inverter between Arduino DTR and the Propeller ?
http://forums.parallax.com/showthread.php?139534-Wireless-Programming-of-a-Propeller-chip-(video)