2017-02-11 10:26 AM
Hi everyone!
In
RM0091 i was told that the stm32f0x8 is some special, it's NPOR pin must be held low until VDD is stable, and when VDD is stable, the reset state can be exited either by putting the NPOR pin in high impedance.
Does this mean i should connect this pin pull down to GND, and wait for VDD stable, then set the reigster to make the pin high
impedance? But how can the mcu knows VDD is on what status? Is there any other method to handle this pin?
Thanks~
Benjamin
2017-02-11 01:57 PM
No it sounds like you need an external chip which externally clamps the pin low (open-collector) until the supply thresholds. Something like an MCP120
2017-02-11 07:24 PM
Hi Clive, the
MCP120 is exactly what i need, thanks a lot!
2017-02-11 07:27 PM
and what does '
putting the NPOR pin in high impedance
' mean, should this code be ran after the MCU is on?2017-02-16 11:27 AM
Can any one help me to understand NPOR pin feature in STM32F0x8 series.
What is the purpose of this pin and how to use this pin.
I am new to stm32 series microcontroller.
2017-02-16 02:36 PM
Understand that the role of designer means you need to read and digest the technical documentation. In ST's case this would be the Data Sheet and Reference Manual.
The part you are talking about is a 1.8V powered device, as such it doesn't have an internal POR (Power On Reset) circuit, you must provide this externally as part of your power supply design/strategy. Synchronous circuits need an effective reset circuit, this is not achieved with a simplistic R-C circuit, which is prone to fail under regular operating conditions, ie user initiated resets, or brief interrupt of supply. The latter can leave the chip in an indeterminate state.
The NPOR signal is expected to clamp the pin to ground for a period of time after the supply (yours) has stabilized.
The suggested circuit would be a laser trimmed MCP120 (or equivalent device) attached to VDDA and with something like a 10 or 47K pull-up to VDDA
NPOR type inputs are NOT unique to STM32, but common over a lot of processors from the last several decades. The NRST and NPOR type pins should not be actively driven by push-pull drivers, or directly to supply pins.