SAMV71 Xplained Ultra Software Package 1.4

USART ISO7816 Example

Purpose

This example sends ISO 7816 commands to a smartcard connected to the SAM V71 Xplained Ultra board.

Requirements

This example can be used on SAM V71 Xplained Ultra board. Please connect the smartcard contacts with following pins which could be easily wired from the board.

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 SAM V71 Xplained Ultra board. Please refer to the Getting Started with SAM V71 Microcontrollers.pdf
  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
    • No flow control
  3. Connect the card reader to SAM V71 Xplained Ultra board:
    C1: Vcc: 7816_3V5V C5: Gnd C4: RFU
    C2: Reset: 7816_RST C6: Vpp C8: RFU
    C3: Clock: 7816_CLK C7: 7816_IO
    If necessary,another pin must be connected on the card reader for detecting the insertion and removal: 7816_IRQ. On Atmel boards, all this pins can be easily connecting with jumpers.
  4. Start the application. The following traces shall appear on the terminal:
          -- USART ISO7816 Example xxx --
          -- SAMxxxxx-xx
          -- Compiled: xxx xx xxxx xx:xx:xx --
          Display the ATR
    

References

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines