basic-iso7816-project
Default mainpagebasic-iso7816-project
Description Graph
basic-iso7816-project
 
Purpose This example sends ISO 7816 commands to a smartcard connected to the evaluation kits on AT91 microcontrollers.
Description
The iso7816 software provide in this examples is use to transform APDU commands to TPDU commands for the smart card. The iso7816 provide here is for the protocol T=0 only. The send and the receive of a character is made under polling. In the file ISO7816_Init is defined all pins of the card. User must have to change this pins according to his environment. The driver is compliant with CASE 1, 2, 3 of the ISO7816-4 specification.

Usage
  1. Build the program and download it inside the evaluation board. Please refer to the SAM-BA User Guide, the GNU-Based Software Development application note or to the IAR EWARM User Guide, depending on your chosen solution.
  2. On the computer, open and configure a terminal application (e.g. HyperTerminal on Microsoft Windows) with these settings:
    • 115200 bauds
    • 8 data bits
    • No parity
    • 1 stop bit
    • Hardware flow control (RTS/CTS)
  3. Connect the card reader to Atmel boards: C1: Vcc: 7816_3V5V C5: Gnd C4: RFU C2: Reset: 7816_RST C6: Vpp C8: RFU C3: Clock: 7816_CLK C7: 7816_IO An other pin must be connected on the card reader for detecting the insertion and removal: 7816_IRQ. On Atmel’s boards, all this pins can be easily connecting with jumpers.
  4. Start the application. The following traces shall appear on the terminal:
    -- Basic ISO7816 Project xxx -- 
    -- AT91xxxxxx-xx
    -- Compiled: xxx xx xxxx xx:xx:xx --
    Display the ATR
    

Contents
The definitions and functions provided are dispatched inside a number of files:
 
Source
The documentation for this Directory was generated from the following files:
  • main.c