DESIGN IDEAS
- CMOS IC Makes Low-Cost Digital Potentiometer

- Power Management In The ST62


-
Automatic Power-Off Circuit Saves Battery

- Simple PC Smart Card Reader Enhancement

-
Digital Position Encoder Does Away With ADC

-
Single-Supply RS-232 Transmission Without Level-Translator ICs

-
΅C Controls Charge Pump As Background Task

-
Clock Multiplier Circumvents PLL

- Drive Smart Cards With A Low-Cost MCU's UART 

- Wireless “Battery” Energizes Low-Power Devices

- Harvest Energy Using A Piezoelectric Buzzer

- Drive A Single-Coil Latching Relay Without An H-Bridge Circuit

DESIGN CONTESTS
- The Mobile Phonebook

- The CheckPoint Charlie

- The Lord Of The Keys

- MoneyPenny

- Enigma

- Bye Bye Standby


- Flower Power

ARTICLES
- Mobile Phone Book: M16C/62P Based Data Backup System

- Internet Password Manager

- RFID Payment Terminal 

- Tecnologνa NFC Para Aplicaciones De Proximidad Seguras

- The Green Standby

- Flower Power

CONTACT
- E-mail

 

HARDWARE DESIGN

The hardware design is built around the Atmel AVR ATmega168 microcontroller. It has the small footprint required for this application with a large flash memory.

The hardware design is powered through the USB port, so that it is not necessary to use an external power supply or a battery.

The smart card interface is a special socket needed to interface the smart card to the USART0 of the ATmega168. It uses a 4,9152 MHz oscillator to get a communication baud rate of 12711 bps on the I/O line of the smart card.

The LCD module is a standard 2 lines by 16 characters display compatible with the industry standard Hitachi LCD controller. It is connected to the ATmega168 using a 4-bit bus configuration to save I/O lines.

The keypad is a 16-key multiplexed keypad to enter numerical and alphanumerical data when requested by the device. In order to save I/O lines, the keypad is connected to the ATmega168 analog input A/D through a resistor ladder. The resistor network values are chosen so that the impedance drop is proportionally distributed among all keys in increments of 500Ω. To ensure good keypad reliability, it is desirable to choose all the resistors as precision resistors of 1% tolerance.

The USB interface is accomplished through software emulation. USB lines DATA+ and DATA- must be wired to the same I/O port. Line DATA- must be wired to bit number 0. DATA+ must also be connected to INT0. DATA- requires a pull-up of 2.2K to 5 volts to be identified as low-speed USB device. DATA+ is used as interrupt source instead of DATA-, as it does not trigger on keep-alive and reset states. No UART, timer, input capture unit or other special hardware is required (execept one edge triggered interrupt).

Additionally the ATmega168 must be clocked at 12 MHz, so it is necessary to specify the speed grade of the microcontroller when ordering it. It is also possible to make overclocking with low-speed AVR devices, but it is not recommended since there are high-speed components available for a reasonable price.

There is an activity LED to signal data transmission on the I/O line of the smart card.

Finally, there is an ISP (In-System Programming) port for updating the flash if further updates or enhancements are planned in the future. 

Following is the block diagram and the schematic of the board designed:

 

BLOCK DIAGRAM

The hardware block diagram is below:


<< Previous     |     Next >>

Abstract • Introduction • What is a smart card? • Communication model • APDU protocol • TPDU protocol • Answer To Reset • What's all this Java Card stuff, anyhow? • Java Card Applet • User's guide • Hardware design • Block diagram • Schematic • USB interface • Using AVR-USB for free • Theory of operation • Human Interface Device (HID) • Firmware design • Alphanumeric keypad • Flowchart • References

© 2006 Carlos Cossio. All Rights Reserved.