AT89STK-05 Atmel, AT89STK-05 Datasheet - Page 12

KIT STARTER FOR AT89C5131

AT89STK-05

Manufacturer Part Number
AT89STK-05
Description
KIT STARTER FOR AT89C5131
Manufacturer
Atmel
Datasheets

Specifications of AT89STK-05

Main Purpose
*
Embedded
*
Utilized Ic / Part
AT89C5131
Primary Attributes
*
Secondary Attributes
*
Processor To Be Evaluated
AT89C5131A
Interface Type
RS-232, USB
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
4.2.2.3
4.2.2.4
4.2.3
4.2.3.1
4.2.3.2
4.2.3.3
4.3
4.3.1
4.3.2
AT89C5131A Starter Kit Software User Guide
usb_lcd_task()
usb_kbd_task()
Customization
Enumeration
Customization
Keyboard Map
Additional Features
Libraries
Description
USB
LED
When a SETUP token is detected on the Endpoint 0, the usb_task launches the enu-
meration process routine. Once the Control Transaction has been completed, the
enumeration process routine exits.
A Transmit Complete flag (TXCMPL) detection on the Endpoint 1 (IN endpoint for HID
keyboard) means that a HID report has been successfully transmitted to the Host. The
usb_task then clears the Transmit Complete flag in order for the USB keyboard applica-
tion to send the next HID report.
The usb_lcd_task() displays the status of the USB on the LCD:
This usb_kbd_task() determines if a new report has to be sent to the Host in function of
the keyboard scan. This function is also in charge of translating the keyboard scan result
into HID comprehensive bytes. The key codes sent correspond to the USB HID Usage
Tables document for a QWERTY keyboard.
The developer can change the USB parameters of the descriptors that are sent during
the enumeration process in order to personalize the application. Please refer to the enu-
meration process application note.
The developer can change the translation between the keyboard map and the HID com-
prehensive bytes. The values of the usb_geneb_keys list of the usb_task.c file must be
replaced.
The developer can add other features by adding new tasks in the scheduler.
The USB management uses two different libraries:
The enumeration process management is contained in the usb_hid_enum.c and
usb_hid_enum.h files. As it is written in the file names, this enumeration process is spe-
cific for this application because some HID specific messages require the default control
endpoint. However, this enumeration process management can easily be adapted for
other applications.
The low level library gives an easy and comprehensive access to the USB controller.
This library allows to manage USB events (USB Reset, Suspend/Resume, Start Of
Frame), to configure the USB controller and the endpoints, and to send or receive mes-
sages over each endpoint. These drivers are contained in the usb_drv.c and usb_drv.h
files.
The 5131_drv.h file includes the on-chip LED controller driver. This library allows to con-
figure the LED controller, to turn On/Off or to toggle each or every LED.
USB Connected
USB Suspend
Enumeration Process Passed
One for the USB enumeration process
One for the low level of the USB controller
Software Architecture
4246B–USB–11/04
4-11

Related parts for AT89STK-05