SAMV71 Xplained Ultra Software Package 1.5

USART ISO7816 Example

Purpose

This example sends ISO 7816 commands to a smartcard connected to SAMV7/E7 Microcontrollers.

Requirements

This package can be used with SAMV71 Xplained Ultra board or SAME70 Xplained 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 board. Please refer to the Getting Started with SAM V71/E70 Microcontrollers.pdf
  2. On the computer, open and configure a terminal application (e.g. HyperTerminal on Microsoft Windows) with these settings:
    • 115200 baud rate
    • 8 bits of data
    • 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: I/O - 7816_IO
    If necessary,another pin must be connected on the card reader for detecting the insertion and removal: 7816_IRQ.
  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