📄 basic-iso7816-project.html
字号:
<!DOCTYPE PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>Atmel Corporation - Basic ISO 7816 1.4</title>
<link rel="stylesheet" type="text/css" href="css/style.css" />
</head>
<body>
<h1>Basic ISO 7816 Project 1.4</h1>
<div id="breadcrumb">
<a href="../index.html">Main</a> >
<a href="examples.html">Examples</a> >
ISO 7816
</div>
<h2>Purpose</h2>
<p>
This application enables the user to perform basic ISO 7816-4 commands with
a smartcard connected to the evaluation kit.
</p>
<h2>Hardware Requirements</h2>
<p class="requirements">
This package can be used with any Atmel AT91 Evaluation Kit.
</p>
<p>
This application requires particular external components to work as intended. Here are several examples for
connecting a card reader to some AT91 boards:
</p>
<table>
<tr>
<th>Card Reader Pin</th>
<th>SAM7SE-EK</th>
<th>SAM7X-EK</th>
<th>SAM9263</th>
</tr>
<tr>
<td>7816_3v5v</td>
<td>PA9</td>
<td>PA27</td>
<td>PC30</td>
</tr>
<tr>
<td>7816_irq</td>
<td>PA8</td>
<td>PA4</td>
<td>PA29</td>
</tr>
<tr>
<td>7816_io</td>
<td>PA6</td>
<td>PA1</td>
<td>PA26</td>
</tr>
<tr>
<td>7816_clk</td>
<td>PB2</td>
<td>PA2</td>
<td>PA30</td>
</tr>
<tr>
<td>7816_rst</td>
<td>PA29</td>
<td>PA29</td>
<td>PA29</td>
</tr>
</table>
<img width=600 src="img/SmartCardReader.jpg">
<h2>Description</h2>
<p>
Upon startup, the example resets the smartcard and fetches its Answer To Reset
(ATR). It then enables the user to send three commands to the card (Case 1, Case 2 and Case 3).
The answer given by the smartcard to each command is output after the command is executed.
</p>
<h2>Usage</h2>
<ol>
<li>
Build the program and download it inside the evaluation board. Please refer
to the <a href="http://www.atmel.com/dyn/resources/prod_documents/doc6132.pdf">SAM-BA User Guide</a>,
the <a href="http://www.atmel.com/dyn/resources/prod_documents/doc6310.pdf">GNU-Based Software Development</a>
application note or to the <a href="http://www.iar.se/website1/1.0.1.0/78/1/index.php?">IAR EWARM User Guide</a>,
depending on your chosen solution.
</li>
<li>
On the computer, open the DBGU port with a terminal application
(e.g. HyperTerminal on Microsoft Windows).
</li>
<ul>
<li>Settings: 115200 bauds, 8 bits, 1 stop bit, no parity, no flow control.</li>
</ul>
<li>
Connect the card reader on the board as described above.
</li>
<li>
Insert a card that can answer commands (Case 1, Case 2 and Case 3).
</li>
<li>
Start the application.
</li>
<li>
Upon startup, the application will output the following line on the DBGU:
<blockquote>
<code>
-- Basic ISO7816 Project 1.4 --<br />
</code>
</blockquote>
</li>
<li>
The program then tries to reset the smartcard and fetch its ATR. The command
result is output on the DBGU. The ATR is decoded.
</li>
<li>
A menu is displayed to let the user send several commands to the board. Choosing options 1.4 executes
the corresponding command and shows the result on the DBGU.
</li>
</ol>
<h6>Atmel Corporation ©2008</h6>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -