output on sketch upload

Hi,

I've got my arduino connected to a DAC used for electrophysiology experiments, where it paces the current clamp, triggers the recording and starts the laser. It works very well and has allowed me to do things I couldn't do with the software I have.

It means that I am recording the output of two pins (4 and 8) at 25KHz. when I upload a sketch there a few spikes of activity on both pins simultaneously. I think maybe 4 in total. They are very brief; less than 1ms I think. Then when it has finished uploading all is quiet.

I've never used microcontrollers before. I guess that brief activity on the pins when the chip is being programmed is normal? Is there anything that can be done to stop it effecting the circuit it is attached to? It doesn't effect my current project but might the next.

thanks

I've never used microcontrollers before. I guess that brief activity on the pins when the chip is being programmed is normal? Is there anything that can be done to stop it effecting the circuit it is attached to? It doesn't effect my current project but might the next.

Upon power-up or reset condition the AVR chips default all their I/O pins to input pins with a high impedance (sometimes called tri-state) and any external components wired to the AVR I/O pins may be subject to a 'floating input condition', where just circuit noise causes false logic conditions. A typical 'fix' is to wire external pull-down resistors wired to the pin and ground, or pull-up resistors wired to the pin and +Vcc. This establishes a valid logic level if the AVR chip is powered off or in a reset condition.

Lefty

Thanks Retrolefty,

I hadn't thought of that, but it makes a perfect sense now. Glad I can sort it now

cheers