Offline
Full Member
Karma: 0
Posts: 207
|
 |
« on: January 30, 2013, 05:21:11 pm » |
The capacitor is there to turn the RTS signal into a pulse, so that when the computer brings RTS low, it briefly pulls reset low, and then the pull-up resistor charges the capacitor again, bringing reset high again.
Source : http://www.gammon.com.au/forum/?id=11637Can anyone tell me about this ? I do not understand why it needs so. And is DTR =RTS ? My FTDI programmer are using VCC, RXD, TXD, DTR,CTS and GND pins Thanks !
|
|
|
|
|
Logged
|
|
|
|
|
Left Coast, CA (USA)
Offline
Brattain Member
Karma: 279
Posts: 15320
Measurement changes behavior
|
 |
« Reply #1 on: January 30, 2013, 06:54:05 pm » |
The capacitor is there to turn the RTS signal into a pulse, so that when the computer brings RTS low, it briefly pulls reset low, and then the pull-up resistor charges the capacitor again, bringing reset high again.
Source : http://www.gammon.com.au/forum/?id=11637Can anyone tell me about this ? I do not understand why it needs so. And is DTR =RTS ? My FTDI programmer are using VCC, RXD, TXD, DTR,CTS and GND pins Thanks ! Why do you need to use DTR or RTS (yes you can use either but not both) ? When you press upload on the Arduino IDE to upload a new sketch to an attached arduino board, the IDE needs to reset the attached arduino board so the bootloader on the board will start and communicate with the IDE to allow uploading the new sketch. Lefty
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Full Member
Karma: 0
Posts: 207
|
 |
« Reply #2 on: January 30, 2013, 06:57:53 pm » |
Why not ? My ftdi programmer have the DTR pins and I am required yo connect it to reset pins via 0.1uF cap..but I do not know why
|
|
|
|
|
Logged
|
|
|
|
|
Manchester (England England)
Offline
Brattain Member
Karma: 277
Posts: 25556
Solder is electric glue
|
 |
« Reply #3 on: January 30, 2013, 07:07:47 pm » |
Why not ? My ftdi programmer have the DTR pins and I am required yo connect it to reset pins via 0.1uF cap..but I do not know why
Your ftdi programmer connects to the reset pin. With serial you have no connection to the reset so the designers of the arduino decided to use the handshaking pin as a reset, rather clever I thought.
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Melbourne, Australia
Offline
Shannon Member
Karma: 219
Posts: 13896
Lua rocks!
|
 |
« Reply #4 on: January 30, 2013, 07:48:27 pm » |
RTS goes low, as shown here:  However we don't want reset to stay low, so the capacitor turns it into a pulse. Then 10K resistor then charges the cap back up and it becomes high, allowing the processor to run.
|
|
|
|
|
Logged
|
|
|
|
|
Left Coast, CA (USA)
Offline
Brattain Member
Karma: 279
Posts: 15320
Measurement changes behavior
|
 |
« Reply #5 on: January 30, 2013, 07:56:19 pm » |
RTS goes low, as shown here:  However we don't want reset to stay low, so the capacitor turns it into a pulse. Then 10K resistor then charges the cap back up and it becomes high, allowing the processor to run. And that is why a wise person said "a picture is worth a thousand words". Lefty
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Full Member
Karma: 0
Posts: 207
|
 |
« Reply #6 on: January 30, 2013, 08:27:37 pm » |
Does that means that I only have to connect RX, TX , gnd and vcc to MCU?
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Melbourne, Australia
Offline
Shannon Member
Karma: 219
Posts: 13896
Lua rocks!
|
 |
« Reply #7 on: January 30, 2013, 09:26:41 pm » |
Depends if you want auto-reset or not.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Full Member
Karma: 0
Posts: 207
|
 |
« Reply #8 on: January 30, 2013, 09:31:15 pm » |
If I never connect the DTR pins, I still can load my program to chip using ftdi programmer ?
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Melbourne, Australia
Offline
Shannon Member
Karma: 219
Posts: 13896
Lua rocks!
|
 |
« Reply #9 on: January 30, 2013, 11:27:48 pm » |
If you don't connect the DTR/RTS via the capacitor you will have to manually reset the chip at the same time you upload a new sketch.
|
|
|
|
|
Logged
|
|
|
|
|
Manchester (England England)
Offline
Brattain Member
Karma: 277
Posts: 25556
Solder is electric glue
|
 |
« Reply #10 on: January 31, 2013, 05:52:34 am » |
But the timing has to be right, hold down the reset, select the program from the IDE, when it says loading, count one two three, and release the reset.
|
|
|
|
|
Logged
|
|
|
|
|
|
|
Left Coast, CA (USA)
Offline
Brattain Member
Karma: 279
Posts: 15320
Measurement changes behavior
|
 |
« Reply #12 on: January 31, 2013, 01:55:36 pm » |
Simply a misprint on that site's pin out of the 6 pin FTDI pin out, where it says RST it should say RTS. Either the RTS or the DTR signal can be used to generate the auto reset pulse, as the arduino IDE uses both. Lefty
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Full Member
Karma: 0
Posts: 207
|
 |
« Reply #13 on: January 31, 2013, 08:30:27 pm » |
But the timing has to be right, hold down the reset, select the program from the IDE, when it says loading, count one two three, and release the reset.
Great info!!! Will have try it . And let you know soon ! Thanks 
|
|
|
|
|
Logged
|
|
|
|
|
vermont
Offline
Full Member
Karma: 3
Posts: 121
|
 |
« Reply #14 on: February 01, 2013, 01:11:40 pm » |
dtr is preferred over rts because its much better behaved under windows.
|
|
|
|
|
Logged
|
|
|
|
|
|