1、功能说明
    1、SLEEP模式的进入和退出。

2、使用环境

    软件开发环境：KEIL MDK-ARM V5.34
                  IAR EWARM 8.50.1 
    芯片支持：
        N32H730  
        N32H735   
        N32H735EC
        N32H760
        N32H762
        N32H765
        N32H765EC
        N32H785
        N32H785EC
        N32H787

3、使用说明

    系统配置
    1、时钟源：HSI+PLL
    2、系统时钟频率：
        M7核:     600MHz
    3、唤醒源：
        WAKEUP按键-PA0
    4、打印：PA9 - baud rate 115200

    使用方法：
        在KEIL下编译后烧录到评估板，串接电流表，上电后一段时间进入SLEEP模式，电流明显变小。按下WAKEUP按键，退出SLEEP模式，电流变大。
        如果开启打印输出，可以看到串口输出“Entry SLEEP mode”，唤醒后输出“Exit SLEEP mode”。

4、注意事项
    1. 当代码和中断都在ITCM执行时，需要在进入sleep之前，打开TCM 的LP 模式，否则唤醒会hardfault.
    2. 在评估功耗的时候，要注意去掉打印

    
1. Function description

    This example shows entry and exit of SLEEP mode.

2. Development environment

    Software development environment: KEIL MDK-ARM V5.34
                                      IAR EWARM 8.50.1 
    Supported chips:
          N32H760 
          N32H762
          N32H765
          N32H765EC
          N32H785
          N32H785EC
          N32H787

3. How to use

    System Configuration:
    1. Clock source: HSI+PLL
    2. System Clock frequency:
        M7 core :  600MHz

    3. Wake-up source: 
        WAKEUP button-PA0
    4. printf: PA9 - baud rate 115200

     Instructions:
        Compiled under KEIL and burned to the evaluation board, connected an ammeter in series, and entered SLEEP mode some time after powering up, the current became significantly smaller. Press the WAKEUP button to exit the SLEEP mode, and the current becomes larger.
        If you turn on the printout, you can see that the serial port outputs "Enter SLEEP mode" and "Exit SLEEP mode" after waking up.

4. Attention

    1. When both the code and interrupts are executing in the ITCM, it is necessary to enable the LP mode of the TCM 
       before entering sleep mode; otherwise, a hardfault will occur upon wake-up.
    2. When evaluating power consumption, pay attention to removing the printf

