Microcontroller io pins pulse when turned on
agimuhing
Posts: 39
When I turn on a microcontroller the io pins will output a brief pulse
This happens right when power is supplied to the chip
I noticed that this happens with just about all microcontrollers when they are turned on.
What causes this?
This happens right when power is supplied to the chip
I noticed that this happens with just about all microcontrollers when they are turned on.
What causes this?
Comments
In the case of the Stamps and the Propeller, this could happen very briefly as the voltage is rising enough to measure a voltage at one of the I/O pins, but not yet enough to properly power the chip's internal circuitry. Both microcontrollers have "brown out" circuitry that will hold the chip in reset state for a time while and after the supply voltage is rising to a proper voltage level. There has to be enough voltage for the reset logic to actually work. The reset will keep the I/O pins in an input mode (high impedance) until the firmware is running and changes the I/O mode of some of the pins to outputs..
In other words, utilize the built in brown out circuitry by tie'ing it into the reset pin so the propeller is stable when it turns on.