1  ˵

    /* ̹ */
    1USB ޾ HID 豸

2  ʹû

    /* Ӳ̶ӦĿӲƽ̨ */
        壺N32L40XM-STB V1.1

3  ʹ˵

    /* ģ÷:ʱӣI/O */
    1SystemClock64MHzʹ HSI_PLL ΪʱԴ
    2USBClockUCDR 48MHz
    3GPIOKEY1(PA4)KEY2(PA5)KEY3(PA6)  ABC
             PA8 LED1(D1)PB5 LED2(D3)
             LED1(D1)ʾ NUMLOCK ƣLED2(D3)ʾ CAPSLOCK ơ

    /* DemoĲԲ */
    1.سλУ
    2.ͨ USB  J3 USB ڣʶ豸 KEY1KEY2KEY3 ֱ ABCPC ̣ CAPSLOCK  NUMLOCKD1D3 ֱӦ

4ע
    


1. Function description
    USB Xtal Less HID keyboard device

2. Use environment
    Hardware environment: development hardware platform corresponding to the project 
    Development board:     N32L40XM-STB V1.1

3. Instructions for use
    Describe the configuration method of related modules; for example: clock, I/O, etc. 
        1. SystemClock: 64MHz
        2. USBClock: UCDR 48MHz
        3. GPIO: KEY1 (PA4), KEY2 (PA5), KEY3 (PA6) keyboard input A, B, C;
                 PA8 controls LED1 (D1), PB5 controls LED2 (D3);
                 LED1 (D1) displays NUMLOCK light, LED2 (D3) displays CAPSLOCK light.
                  
    Describe the test steps and phenomena of Demo 
        1. After compiling, download the program to reset and run;
        2. Connect the J3 USB port through the USB cable, the computer recognizes the keyboard device, press KEY1, KEY2, and KEY3 to input A, B, C respectively, 
            and the PC connects to other keyboards, press CAPSLOCK and NUMLOCK, D1 and D3 are respectively on and off.
 
4. Matters needing attention
    None.