1、功能说明

    该测例演示了USART3与智能卡间基础通信，查询智能卡随机数


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、系统时钟频率：
            N32H760系列：    600MHz
    
    USART3配置如下：
    - 波特率 =  (根据设置的智能卡工作时钟配置)
    - 字长 = 8数据位
    - 1.5停止位
    - 校验控制 even
    - 硬件流控制禁用（RTS和CTS信号）
    - 接收器和发送器使能
    
    USART3引脚连接如下：

    N32H760：
    - USART3_Tx.PD8    <-------> SMART_CARD I/O
    - USART3_CLK.PD10   <-------> SMART_CARD CLK
    - SC_PIN_RESET.PB3 <-------> SMART_CARD RST
    - 3V3              <-------> SMART_CARD Vcc
    - GND              <-------> SMART_CARD GND

    
    打印信息USART1配置如下：
    - 波特率 = 115200 baud
    - 字长 = 8数据位
    - 1停止位
    - 校验控制禁用
    - 硬件流控制禁用（RTS和CTS信号）
    - 接收器和发送器使能    
    - TX - PA9
    
    测试步骤与现象：
    - Demo在KEIL环境下编译后，下载至MCU
    - 复位运行，查看串口打印信息


4、注意事项
无

1. Function description

The test example demonstrates the basic communication between USART3 and smart card to query the random number of smart card


2. Development environment

    Software development environment: KEIL MDK-ARM V5.34
			                                            IAR EWARM 8.50.1 
                           
    Supported chips:
        N32H730  
        N32H735   
        N32H735EC
        N32H760
        N32H762
        N32H765
        N32H765EC
        N32H785
        N32H785EC
        N32H787
 
    Smart Card, Smart Card Holder

3. How to use

The system clock configuration is as follows:
    System Configuration:
        1. Clock source: HSI+PLL
        2. System Clock frequency: 
            N32H760 series:     600MHz

USART3 configuration is as follows:
- Baud rate = (based on the set smart card working clock)
- Word length = 8 data bits
- 1.5 Stop bit
- Check control even
- Hardware flow control disabled (RTS and CTS signals)
- Enable receiver and transmitter

The USART pins are connected as follows:

    N32H760：
    - USART3_Tx.PD8    <-------> SMART_CARD I/O
    - USART3_CLK.PD10   <-------> SMART_CARD CLK
    - SC_PIN_RESET.PB3 <-------> SMART_CARD RST
    - 3V3              <-------> SMART_CARD Vcc
    - GND              <-------> SMART_CARD GND

USART1 is configured as follows:
- baud rate = 115200 baud
- Word length = 8 data bits
-1 Stop bit
- Check control is disabled
- Hardware flow control disabled (RTS and CTS signals)
- Enable receiver and transmitter
- TX - PA9

Test procedure and phenomenon:
- Demo is compiled in KEIL environment and downloaded to MCU
- Reset and run. View the serial port information


4. Attention
None
