APPO TECH makeuse AX1003 USB HID Keyboar AN-AX1000-003-USBHIDKEYBOARD Manual

This application describes how to use AX1003 to implement USB HID Keyboard solution.


APPO TECH makeuse AX1003 USB HID Keyboar AN-AX1000-003-USBHIDKEYBOARD Manual - cover page
Brand
Appo
Category
microcontrollers
Document type
Application Note
Language
Chinese
Pages
34
File format
PDF
File size
97 KB
Published
04 January, 2012
Updated
30 September, 2023
MD5 checksum
FFE9893C7ADD161FC1B2769DF785AE84

About this manual

The document describes a solution that uses the AppoTech AX1003 microcontroller to create a USB HID keyboard. It covers the required hardware connections, firmware flow, and USB protocol handling needed for the keyboard to be recognized by a PC.

Key sections include a hardware connection diagram (RB for rows, RC/RE for columns, RA.4 as interrupt), initialization of the chip clock, I/O ports, and USB module, as well as the keyboard scanning algorithm and USB data transfer procedures. This manual is written in Chinese.

What's inside

  • Introduction
  • AX1003 Overview
  • USB Keyboard Key Points
  • Hardware Connection Diagram
  • Program Implementation
  • Chip Clock Initialization
  • IO Initialization
  • USB Module Initialization
  • Keyboard Scanning
  • USB Interface Processing

Specifications

CPU performanceup to 100 MIPS, RISC architecture
USB controllerFull‑speed USB 2.0 device controller with PHY
USB endpoints5 endpoints (Ep0, Ep1 IN/OUT, Ep2 IN/OUT)
FIFO sizesEp0 8 Byte, Ep1 IN/OUT 16 Byte, Ep2 IN/OUT 64 Byte
GPIO pins36 GPIO pins, including 8 interrupt pins
Timers3 timers: Timer0 (8‑bit), Timer1 (16‑bit), Timer2 (8‑bit)
USB module clockoperates at 48 MHz

Frequently asked questions

What clock frequency must the AX1003 USB module run at?

The USB module must operate at 48 MHz.

How many GPIO pins does the AX1003 provide?

The AX1003 provides 36 GPIO pins, including 8 interrupt pins.

What is the size of the FIFO for endpoint Ep2?

Endpoint Ep2 IN/OUT FIFO can hold up to 64 bytes.

Download PDF (97 KB)

More Appo Manuals


View all Appo manuals →