Is it ok to leave atmega328p reset pin floating? - Page 1
Forum section: electronics / beginners

author: abdullahseba
author_rank: Frequent Contributor
timestamp: April 10, 2017, 09:28:06 pm
content: HiIs it ok to leave the atmega328p reset pin floating on the ICSP header?Or should I add a pull-up resistor?Thanks in advance.

author: sleemanj
author_rank: Super Contributor
timestamp: April 10, 2017, 09:37:43 pm
content: Pull up recommended.

author: Psi
author_rank: Super Contributor
timestamp: April 10, 2017, 09:46:53 pm
content: They do have a pullup on reset internally, so it's not really possible to have reset "floating".If you don't connect the pin to anything then reset simply has a week pullup.I've left them totally unconnected without problems.however it's recommended to have a stronger external pull up just in case there is excessive EMI around.A small cap to ground is also recommended to prevents glitches.

author: ohdsp
author_rank: Contributor
timestamp: April 10, 2017, 09:50:56 pm
content: As PSI/sleemanj said use an external pull. Even if an IC has internal pull-ups these can often be very high impedance (~100kohm).When adding an external pull up resistor (say 1 to 10kohm) a small capacitor (1nF or 10nF ceramic) between reset and ground can help improve EMI/EMC performance; meaning less "unexplained" resets. If the IC needs a delay on the reset after power up it can also serve this purpose as well by using a larger capacitor.

author: abdullahseba
author_rank: Frequent Contributor
timestamp: April 10, 2017, 11:22:34 pm
content: So the pullup and caps wont interfere with the icsp?

author: sleemanj
author_rank: Super Contributor
timestamp: April 10, 2017, 11:38:18 pm
content: Quote from: abdullahseba on April 10, 2017, 11:22:34 pmTypically use a 10k for R1. It won't affect the ICSP, which connects direct to the reset pin.

author: obiwanjacobi
author_rank: Super Contributor
timestamp: April 11, 2017, 07:11:31 am
content: Caps on the RESET pin *may* interfere with ICSP.

author: matkar
author_rank: Regular Contributor
timestamp: April 11, 2017, 03:52:02 pm
content: Quote from: abdullahseba on April 10, 2017, 11:22:34 pmKeep the capacitor small enough and it won't interfere. I usually place a 100nF between reset and GND with a pullup of 1k.

author: Nusa
author_rank: Super Contributor
timestamp: April 11, 2017, 04:22:13 pm
content: If you don't need the reset pin function, you could program the fuses so that it's not a reset pin anymore. Then you won't need an external pullup and you'll also have another gpio pin that you can use. You can still reset via a power cycle.This trick is more commonly used on smaller packages like the ATTinys where an extra gpio pin is far more valuable, since you have far fewer gpio pins to start with.

author: sleemanj
author_rank: Super Contributor
timestamp: April 11, 2017, 10:31:06 pm
content: Quote from: Nusa on April 11, 2017, 04:22:13 pmTrouble is you can not program it anymore without a high voltqge programmer if you disable reset.

author: Nusa
author_rank: Super Contributor
timestamp: April 11, 2017, 11:10:18 pm
content: Quote from: sleemanj on April 11, 2017, 10:31:06 pmSure you can, it just takes a timely power cycle instead of a button/host control of reset line. It still gets you into bootloader mode where it looks for an incoming upload for a couple seconds, and the timing isn't that difficult to master. You're right that it's a pretty big inconvenience just to save a resistor. I wouldn't do it unless you really need the io pin.Now if you screw up programming the fuses, that's another matter entirely! The HV programmer may be the only way out.

author: sleemanj
author_rank: Super Contributor
timestamp: April 11, 2017, 11:15:39 pm
content: Quote from: Nusa on April 11, 2017, 11:10:18 pmIt's a good bet that you don't have a bootloader installed on a tiny. But yes, if you do, then you could do a power cycle reset.

author: abdullahseba
author_rank: Frequent Contributor
timestamp: April 11, 2017, 11:17:21 pm
content: Quote from: sleemanj on April 11, 2017, 11:15:39 pmI think I will install the arduino bootloader on it.