AT89STK-03 Atmel, AT89STK-03 Datasheet - Page 8

KIT STARTER FOR MCU AT8XC5122/23

AT89STK-03

Manufacturer Part Number
AT89STK-03
Description
KIT STARTER FOR MCU AT8XC5122/23
Manufacturer
Atmel
Datasheets

Specifications of AT89STK-03

Main Purpose
*
Embedded
*
Utilized Ic / Part
AT89C5122
Primary Attributes
*
Secondary Attributes
*
Processor To Be Evaluated
AT8xC512x
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
AT89STK03 Starter Kit Software User User Guide
usb_kbd_task()
scib_task()
Customization
Enumeration
Customization
Keyboard Map
Additional Features
Libraries
Description
USB
SCIB
usb_task then clears the Transmit Complete flag in order for the USB keyboard applica-
tion to send the next HID report.
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.
This scib_task() determines if smart card Gemclubmemo is inserted and report when
the ATR is ready to the usb_task. The scib_task uses the SCIB drivers which contains
all functions to start a SCIB transmission / reception.
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 library SCIB is used to control the data flow between a smart card reader and a
smart card.
The SCIB management uses two different libraries:
The scib_task uses the SCIB drivers which contains all function to start a SCIB trans-
mission / reception.
One for the USB enumeration process
One for the low level of the USB controller
the SCIB driver (scib_lib) : contains low level functions (access to SFR bit, bytes).
the SCIB api (scib_api) : contains API to control the SCIB.
Software Architecture
7612B–SCR–01/07
4-7

Related parts for AT89STK-03