cancel
Showing results for 
Search instead for 
Did you mean: 

Creating a raising edge to wake up the micro controller

emaildeepan
Associate
Posted on November 21, 2014 at 06:41

Need help in understanding the

http://www.st.com/st-web-ui/static/active/en/resource/technical/layouts_and_diagrams/schematic_pack/stm32vldiscovery_sch.zip

used by the STM32VLDISCOVERY

board.

0690X000006052DQAQ.png

The

http://www.st.com/st-web-ui/static/active/en/resource/technical/document/datasheet/CD00161566.pdf

 says the STM32 micro controller can be woken up by a raising edge. My interpretation is that the pull up resistor connected between the 3.3V and the wakeup pin will pull the wakeup pin high on power on. But I am not able to understand the use of the second resistor between the wake up pin and the ground. Will the two resistors not form a voltage divider circuit ?

#stmvldiscovery
3 REPLIES 3
John F.
Senior
Posted on November 21, 2014 at 09:56

There are two microcontrollers in the design!

Reviewing the STM32VLDISCOVERY schematics (MB913.pdf), R9 and R10 provide an analogue signal to AIN1 on the STM32F103C8T6 (U2 ST LINK).

0690X00000605DJQAY.png

The User Wakeup is shown as connecting to PA0 on U3A the STM32F100RBT6B (although R22 0R looks like it is intended to isolate the circuit).

0690X00000605DOQAY.png

emaildeepan
Associate
Posted on November 21, 2014 at 19:56

Thank you for explaining. However it will be helpful if you can explain the function of R1 and R2 in providing analog signal to the AIN1 on the STM32F103C8T6. As I understand R1 and R2 form a voltage divider circuit and pull down the voltage from 3.3V to 1.6V... However I am not able to understand the real intent of the resistors and the circuit they form.

John F.
Senior
Posted on November 24, 2014 at 15:25

I imagine it is just to let the ST Link microcontroller monitor the +3V3 supply voltage. The signal is marked as AIN_1 so it's going to be input to the microcontroller's internal A to D converter ADC1. The potential divider just reduces the voltage from +3V3 to about half that so that it's within the ADC range (typically 0 .. +2.5V in these systems).