﻿1、功能说明
    LED功能演示

2、使用环境
    软件开发环境：KEIL MDK-ARM 5.34
    硬件环境： 
        N32G05x系列：
            基于评估板N32G05xRBQ7_STB V1.0开发
        N32G05x系列：
            基于评估板N32G05xRBL7_STB V1.0开发

3、使用说明
    
    系统配置；
        1、时钟源：HSI+PLL
        2、系统时钟：64MHz   GCLK = 8M/32, SPI_CLK = 64M/32
        3、SPI3 配置：
            NSS   -->  PD2
            SCK   -->  PD3
            MISO  -->  PA1
            MOSI  -->  PA0
            全双工
            主模式
            16bit传输
            极性：起始为低/第一个边沿
            硬件片选
            大端在前MSB
        4、LED功能相关的端口：
          GCLK -->  PD1
            
          SEG:
            SEG0-->PB6      SEG6-->PC10        SEG12-->PC3
            SEG1-->PB8      SEG7-->PC9         SEG13-->PC0
            SEG2-->PB9      SEG8-->PC5         SEG14-->PC1
            SEG3-->PC4      SEG9-->PC6         SEG15-->PC12
            SEG4-->PB7      SEG10-->PC7
            SEG5-->PC11     SEG11-->PC2
            
          COM:
            COM0-->PB12     COM5-->PD10
            COM1-->PB14     COM6-->PD9
            COM2-->PB15     COM7-->PD8
            COM3-->PC8      COM8-->PD7
            COM4-->PA15     COM9-->PD6
            
        5、LED基础配置：
           1、COM0-COM9 SEG0-SEG15工作;
           2、SEG工作电流15mA;
           3、GCLK时钟来源 HIS ,时钟分频32；
           
        6、DMA配置：DMA_CH3
        
        7、USART1配置：
            TX  -->  PA9
            波特率：115200
            数据位：8bit
            停止位：1bit
            无校验
    使用方法：
        1、在KEIL下编译后烧录到开发板，使用5v供电；
        2、LED滚动显示“Nsing Technologies Pte. Ltd.”.
        
4、注意事项
    无

1. Function description
    LED function demonstration
2. Use environment
    Software development environment: KEIL MDK-ARM V5.34
    Hardware development environment:
         N32G05x series:
            Developed based on the evaluation board N32G05xRBQ7_STB V1.0
         N32G05x series:
            Developed based on the evaluation board N32G05xRBL7_STB V1.0

3. Instructions for use  
    System configuration;
    1. Clock source: HSI+PLL  GCLK = 8M/50 ,SPI_CLK = 64M/32
    2. System clock: 64MHz
    3. SPI3 configuration:
        NSS   -->  PD2
        SCK   -->  PD3
        MISO  -->  PA1
        MOSI  -->  PA0
        Full duplex
        Main mode
        16 bit transmission
        Polarity: start at low/first edge
        Piece of hardware to choose
        Big end in front MSB

    4.LED Port
          GCLK -->  PD1
            
          SEG:
            SEG0-->PB6      SEG6-->PC10        SEG12-->PC3
            SEG1-->PB8      SEG7-->PC9         SEG13-->PC0
            SEG2-->PB9      SEG8-->PC5         SEG14-->PC1
            SEG3-->PC4      SEG9-->PC6         SEG15-->PC12
            SEG4-->PB7      SEG10-->PC7
            SEG5-->PC11     SEG11-->PC2
            
          COM:
            COM0-->PB12     COM5-->PD10
            COM1-->PB14     COM6-->PD9
            COM2-->PB15     COM7-->PD8
            COM3-->PC8      COM8-->PD7
            COM4-->PA15     COM9-->PD6
            
    5.LED basic configuration:
        1.COM0-COM9 and SEG0-SEG15 are working;
        2.The SEG operating current is 15mA;
        3.The GCLK clock source is HIS, and the clock is divided by 32.
    6. USART1 configuration:
        TX  -->  PA9
        Baud rate: 115200
        Data bit: 8 bits
        Stop bit: 1bit
        No check
        
    Usage:
        1. After compiling under KEIL, burn to the development board and using 5v power supply;
        2. LED scrolling display "Nsing Technologies Pte. Ltd." .
        
4. Matters needing attention
    None