Note the following details of the code protection feature on Microchip devices:
YSTEM
CERTIFIED BY DNV
== ISO/TS 16949==
•Microchip products meet the specification contained in their particular Microchip Data Sheet.
•Microchip believes that its family of products is one of the most secure families of its kind on the market today, when used in the
intended manner and under normal conditions.
•There are dishonest and possibly illegal methods used to breach the code protection feature. All of these methods, to our
knowledge, require using the Microchip products in a manner outside the operating specifications contained in Microchip’s Data
Sheets. Most likely, the person doing so is engaged in theft of intellectual property.
•Microchip is willing to work with the customer who is concerned about the integrity of their code.
•Neither Microchip nor any other semiconductor manufacturer can guarantee the security of their code. Code protection does not
mean that we are guaranteeing the product as “unbreakable.”
Code protection is constantly evolving. We at Microchip are committed to continuously improving the code protection features of our
products. Attempts to break Microchip’s code protection feature may be a violation of the Digital Millennium Copyright Act. If such acts
allow unauthorized access to your software or other copyrighted work, you may have a right to sue for relief under that Act.
Information contained in this publication regarding device
applications and the like is provided only for your convenience
and may be superseded by updates. It is your responsibility to
ensure that your application meets with your specifications.
MICROCHIP MAKES NO REPRESENTATIONS OR
WARRANTIES OF ANY KIND WHETHER EXPRESS OR
IMPLIED, WRITTEN OR ORAL, STATUTORY OR
OTHERWISE, RELATED TO THE INFORMATION,
INCLUDING BUT NOT LIMITED TO ITS CONDITION,
QUALITY, PERFORMANCE, MERCHANTABILITY OR
FITNESS FOR PURPOSE. Microchip disclaims all liability
arising from this information and its use. Use of Microchip
devices in life support and/or safety applications is entirely at
the buyer’s risk, and the buyer agrees to defend, indemnify and
hold harmless Microchip from any and all damages, claims,
suits, or expenses resulting from such use. No licenses are
conveyed, implicitly or otherwise, under any Microchip
intellectual property rights.
Trademarks
The Microchip name and logo, the Microchip logo, dsPIC,
FlashFlex, K
PICSTART, PIC
and UNI/O are registered trademarks of Microchip Technology
Incorporated in the U.S.A. and other countries.
FilterLab, Hampshire, HI-TECH C, Linear Active Thermistor,
MTP, SEEVAL and The Embedded Control Solutions
Company are registered trademarks of Microchip Technology
Incorporated in the U.S.A.
Silicon Storage Technology is a registered trademark of
Microchip Technology Inc. in other countries.
Analog-for-the-Digital Age, Application Maestro, BodyCom,
chipKIT, chipKIT logo, CodeGuard, dsPICDEM,
dsPICDEM.net, dsPICworks, dsSPEAK, ECAN,
ECONOMONITOR, FanSense, HI-TIDE, In-Circuit Serial
Programming, ICSP, Mindi, MiWi, MPASM, MPF, MPLAB
Certified logo, MPLIB, MPLINK, mTouch, Omniscient Code
Generation, PICC, PICC-18, PICDEM, PICDEM.net, PICkit,
PICtail, REAL ICE, rfLAB, Select Mode, SQI, Serial Quad I/O,
Total Endurance, TSHARC, UniWinDriver, WiperLock, ZENA
and Z-Scale are trademarks of Microchip Technology
Incorporated in the U.S.A. and other countries.
SQTP is a service mark of Microchip Technology Incorporated
in the U.S.A.
GestIC and ULPP are registered trademarks of Microchip
Technology Germany II GmbH & Co. & KG, a subsidiary of
Microchip Technology Inc., in other countries.
All other trademarks mentioned herein are property of their
respective companies.
Microchip received ISO/TS-16949:2009 certification for its worldwide
headquarters, design and wafer fabrication facilities in Chandler and
Tempe, Arizona; Gresham, Oregon and design centers in California
and India. The Company’s quality system processes and procedures
are for its PIC
devices, Serial EEPROMs, microperipherals, nonvolatile memory and
analog products. In addition, Microchip’s quality system for the design
and manufacture of development systems is ISO 9001:2000 certified.
Worldwide Sales and Service .....................................................................................41
DS00001574A-page 6 2013 Microchip Technology Inc.
Page 7
EVB-SEC1110/EVB-SEC1210/EVB-SEC1212-DEV
EVALUATION BOARD USER’S GUIDE
Preface
NOTICE TO CUSTOMERS
All documentation becomes dated, and this manual is no exception. Microchip tools and
documentation are constantly evolving to meet customer needs, so some actual dialogs
and/or tool descriptions may differ from those in this document. Please refer to our web site
(www.microchip.com) to obtain the latest documentation available.
Documents are identified with a “DS” number. This number is located on the bottom of each
page, in front of the page number. The numbering convention for the DS number is
“DSXXXXXA”, where “XXXXX” is the document number and “A” is the revision level of the
document.
For the most up-to-date information on development tools, see the MPLAB
Select the Help menu, and then Topics to open a list of available online help files.
Choice of mutually exclusive
arguments; an OR selection
Represents code supplied by
user
“Save project before build”
4‘b0010, 2‘hF1
any valid filename
[options]
errorlevel {0|1}
var_name...]
void main (void)
{ ...
}
DS00001574A-page 8 2013 Microchip Technology Inc.
Page 9
Preface
THE MICROCHIP WEB SITE
Microchip provides online support via our web site at www.microchip.com. This web
site is used as a means to make files and information easily available to customers.
Accessible by using your favorite Internet browser, the web site contains the following
information:
• Product Support – Data sheets and errata, application notes and sample
programs, design resources, user’s guides and hardware support documents,
latest software releases and archived software
• General Technical Support – Frequently Asked Questions (FAQs), technical
support requests, online discussion groups, Microchip consultant program
member listing
• Business of Microchip – Product selector and ordering guides, latest Microchip
press releases, listing of seminars and events, listings of Microchip sales offices,
distributors and factory representatives
DEVELOPMENT SYSTEMS CUSTOMER CHANGE NOTIFICATION SERVICE
Microchip’s customer notification service helps keep customers current on Microchip
products. Subscribers will receive e-mail notification whenever there are changes,
updates, revisions or errata related to a specified product family or development tool of
interest.
To register, access the Microchip web site at www.microchip.com, click on Customer
Change Notification and follow the registration instructions.
The Development Systems product group categories are:
• Compilers – The latest information on Microchip C compilers, assemblers, linkers
and other language tools. These include all MPLAB C compilers; all MPLAB
assemblers (including MPASM assembler); all MPLAB linkers (including MPLINK
object linker); and all MPLAB librarians (including MPLIB object librarian).
• Emulators – The latest information on Microchip in-circuit emulators.This
includes the MPLAB REAL ICE and MPLAB ICE 2000 in-circuit emulators.
• In-Circuit Debuggers – The latest information on the Microchip in-circuit
debuggers. This includes MPLAB ICD 3 in-circuit debuggers and PICkit 3 debug
express.
• MPLAB IDE – The latest information on Microchip MPLAB IDE, the Windows
Integrated Development Environment for development systems tools. This list is
focused on the MPLAB IDE, MPLAB IDE Project Manager, MPLAB Editor and
MPLAB SIM simulator, as well as general editing and debugging features.
• Programmers – The latest information on Microchip programmers. These include
production programmers such as MPLAB REAL ICE in-circuit emulator, MPLAB
ICD 3 in-circuit debugger and MPLAB PM3 device programmers. Also included
are nonproduction development programmers such as PICSTART Plus and
PIC-kit 2 and 3.
CUSTOMER SUPPORT
Users of Microchip products can receive assistance through several channels:
Customers should contact their distributor, representative or field application engineer
(FAE) for support. Local sales offices are also available to help customers. A listing of
sales offices and locations is included in the back of this document.
Technical support is available through the web site at:
http://www.microchip.com/support
DOCUMENT REVISION HISTORY
Revision A (September 2013)
• Initial Release of this Document.
DS00001574A-page 10 2013 Microchip Technology Inc.
Page 11
Chapter 1. Introduction
The SEC1110/SEC1210/SEC1212-DEV is a family low power, OEM configurable, single-chip smartcard reader solutions. Three evaluation boards (EVBs) are available for
device development:
• EVB-SEC2112-DEV
• EVB-SEC1210
• EVB-SEC1110
These EVBs demonstrate standalone solutions with all of the interfaces and features
listed the following sub-sections. For details on each individual EVB, refer to Chapter 2.
1.1SEC1110 FEATURES
1.1.1Smartcard
EVB-SEC1110/EVB-SEC1210/EVB-SEC1212-DEV
EVALUATION BOARD USER’S GUIDE
• Single Smartcard slot
• Fully compliant with the ISO/IEC 7816, EMV and PC/SC standards
• Versatile ETU rate generation, supporting current and proposed rates (to 861
Kbps and beyond)
• Full support of both T=0 and T=1 protocols
• Full-packet FIFO (259 bytes) for transmit and receive
• Half-Duplex operation, with no software intervention required between transmit
and receive phases of an exchange
• Very loose real-time response required of software
• (worst case scenario of approximately 180 ms)
• Dynamically programmable FIFO threshold, with byte granularity
• Time-out FIFO flush interrupt, independent of threshold
• Programmable Smart Card clock frequency
• UART-like register file structure
• Supports Class A, Class B, Class C, or Class AB Smart Cards (all 1.8 V, 3 V and
5 V cards)
• Automatic Character Repetition for T=0 protocol Parity Error recovery
• Automatic card deactivation on card removal and on other system events, including persistent Parity Errors
1.1.2USB
• Supports Full-Speed data transfer
• Endpoints can be configured for control, bulk & interrupt transfer types
• Max packet size configurable for each endpoint
• (8 / 16/ 32/ 64 bytes are allowed)
• Ping pong buffers supported for non-control endpoints
• Supports Suspend, Resume, and Remote Wakeup per the USB specification
requirements
• Endpoint buffer may be located anywhere in the 1.5K SRAM, as per the alignment
requirements based on the max packet size
1.2SEC1210 FEATURES
Along with the features mentioned in Section 1.1, the SEC1210 includes two Smartcard
slots and the following additional features:
1.2.1SPI1
• Supports full-duplex mode
• Supports master or slave mode
• Supports seven SPI1 Master baud rates
• Slave Clock rate up to spi1_clk/8
• Serial clock with programmable polarity and phase
• Master Mode fault error flag with MCU interrupt capability
• Write collision flag protection
• Byte Transfer/Receive APIs
• Bulk Transfer/ Receive APIs
• Simultaneous Transfer/ Receive APIs
1.2.2UART
• Software compatible with Standard 16C450 and 16C550A
• Separate 16 byte FIFO for transmission and reception
- Prevents buffer overrun
- Helps software to be less time critical in handling transmission / reception
• Programmable baud rate generator - Up to 3 Mbps baud rate can be achieved
• Supports flow control using RTS / CTS signals
• Pin Polarity control
• Programmable communication parameters:
- Word length - 5, 6, 7, 8 bits
- Stop bits - 1, 1.5, 2 bits
- Parity - None, Odd, Even, Mark, Space
• Low power sleep mode available
Note:A voltage level shifter board / cable is required to connect the UART port to
the PC. An FTDI cable is used for this.
1.3SEC1212-DEV FEATURES
Along with the features mentioned in section 1.1 and1.2 the following modules are also
available in the SEC1212-DEV:
• Boot from SPI2 Interface
• The SVB is equipped with a 1Kbyte Atmel SPI flash (AT26DF081A-SSU). SPI
flash from Atmel and Windbond are supported.
• On-board RS232 Transceiver for debugging as well as RS232 host interface
• On-board Reset button
• On-board EDP header for f/w debugging.
• On-board JTAG header for entering ASIC test mode and debugging
DS00001574A-page 12 2013 Microchip Technology Inc.
Page 13
1.4DIRECTORY STRUCTURE
The EVB-SEC2112-DEV release package provides the following file/folder structure:
EVB Schematics & BOM
Contains EVB schematics and BOM
SW Tools/WinUSB Driver
This is the device driver required for BootROM USB Device
SW Tools/OTPProgrammer
Contains the OTP programming utility and user manual
SW Tools/Linux Libraries
Contains the required Linux libraries
SW Tools/SPIFlashUtitly
Contains utility to program the SEC1212-DEV SPI2 flash and the relevant user manual.
Firmware
This folder contains the firmware binary files for programming into the OTP / SPI Flash.
Filenames with "SPI2" are intended to be programmed onto the SPI flash using SPIFlashWriter application. Filenames with "OTP" are intended to be programmed onto
the OTP using OTPProgrammer application. Similarly, "SINGLESLOT" or
"DUALSLOT" in the file name indicates a single slot or dual slot reader, respectively.
This chapter details the evaluation boards available for the SEC family of ASIC's and
their hardware settings. A standard USB A-to-B cable is required to connect the EVB
to the USB Host.
2.5EVB-SEC2112-DEV
The EVB-SEC2112-DEV includes a 48-pin QFN SEC1212-DEV with the following
interfaces and features:
• USB host interface
• Two smartcard slots
• SPI1
• SPI2 Code execution (Either from external or on board flash)
•UART
• Input bond options allow a single chip to function as either an SEC1110 or
SEC1210.
Please follow this legend to understand the following figure.
1. In each header, Pin 1 is represented by a thick band near the edge.
2. Pins filled in dark red indicate they are to be shorted by a jumper.
FIGURE 2-2:DEFAULT BOARD SETUP TO RUN FROM OTP USING INTERNAL OSCILLATOR
IN SEC1212-DEV (QFN48) MODE
DS00001574A-page 16 2013 Microchip Technology Inc.
Page 17
EVBPCBA Documentation
2.5.2Inserting a Chip into the Socket
This section is applicable only if the ASIC is not directly soldered on the PCB and the
EVB is equipped with a socket. The following guidelines must be followed when replacing the ASIC in the socket.
Place the ASIC in the socket in such a way that the Pin1 marking (dot) on the ASIC and
the socket Pin1 marking on the PCB (triangle) align, as shown in Figure 2-3.
Note:The socket is manufactured by R&D Interconnect (P/N: 106458-0020).
FIGURE 2-3:EVB-SEC2112-DEV PIN 1 SOCKET ALIGNMENT
2.5.3Connector Description
Note:The board’s default settings are indicated in the Settings column.
ConnectorDescriptionSettings
J2Self/Bus Power Header
J3Power IN1-2Short (default)
J45V_DUT1-2Short (default)
J9MUX’d RS232-I/F
1 --- 2
2 --- 3
1-2
3-4
5-6
7-8
Supplied Externally
Supplied by Upstream VBUS (default)
TP23.3V 3.3V output of MIC37100 3.3V regulator (U1)
TP4GNDGND
TP5VDD33VDD33 power output of internal regulator
2.5.6Bond Options
Depending on the Bond option set on jumper J36, J37 and J38, the SEC1212-DEV prototype can work in SEC1210 (QFN24) and SEC1110 (QFN16) pin modes also.
PART No.BOND0(J36)BOND1(J37)BONd2(J38)Remarks
SEC111000x
SEC121001x
SEC1212-DEV110OTP/Internal ROM boot
SEC1212-DEV111External SPI2 Flash boot
DS00001574A-page 20 2013 Microchip Technology Inc.
Page 21
EVBPCBA Documentation
2.5.7Selecting the Code Fetch Source
SEC1212-DEV can execute code from Internal /OTP ROM as well as from external
serial SPI flash (one at a time).
The following sub-sections detail the pre-requisites to select the required code fetch
source.
2.5.7.1CODE EXECUTION FROM INTERNAL BOOT ROM
1. OTP_ROM_EN & FORCE_OTP_ROM bits are not programmed through OTP
Programmer application
2. Pins 2-3 of J38 are to be shorted
2.5.7.2CODE EXECUTION FROM INTERNAL OTP ROM
1. OTP should have been programmed through OTP Programmer application
2. OTP_ROM_EN bit is programmed through OTP Programmer application
3. Pins 2-3 of J38 are to be shorted
2.5.7.3CODE EXECUTION FROM SPI FLASH
1. SPI Flash should have been programmed through SPI Flashwriter application
2. FORCE_OTP_ROM bit is not programmed through OTP Programmer applica-
3. Pins 1-2 of J38 are to be shorted
2.6EVB-SEC1210
The EVB-SEC1210 utilizes the 24-pin QFN SEC1210 and includes the following interfaces and features.
•USB
• Two smartcard slots
• SPI1 or UART Interface
Note 1:A standard USB A-to-B cable is required to connect to the USB Host.
tion
2:Code execution is possible only from internal SRAM or OTP.
This section is applicable only if the ASIC is not directly soldered on the PCB and the
EVB is equipped with a socket. The following guidelines must be followed when replacing the ASIC in the socket.
Place the ASIC in the socket in such a way that the Pin1 marking (dot) on the ASIC and
the socket Pin1 marking on the PCB (triangle) align, as shown in Figure 2-5.
Note:The socket is manufactured by R&D Interconnect (P/N: 106458-0133).
DS00001574A-page 22 2013 Microchip Technology Inc.
The EVB-SEC1110 utilizes the 16-pin QFN SEC1110 and includes the following interfaces and features.
•USB
• One smartcard slot
Note 1:A standard USB A-to-B cable is required to connect to the USB Host.
2:Code execution is possible only from internal SRAM or OTP.
FIGURE 2-6:EVB-SEC1110 COMPONENT SIDE TOP LAYER
DS00001574A-page 24 2013 Microchip Technology Inc.
Page 25
EVBPCBA Documentation
2.7.1Placing a Chip in the Socket
This section is applicable only if the ASIC is not directly soldered on the PCB and the
EVB is equipped with a socket. The following guidelines must be followed when replacing the ASIC in the socket.
Place the ASIC in the socket in such a way that the Pin1 marking (dot) on the ASIC and
the socket Pin1 marking on the PCB (triangle) align, as shown in Figure 2-7.
Note:
The socket is manufactured by R&D Interconnect (P/N:
106458-0134).
DS00001574A-page 26 2013 Microchip Technology Inc.
Page 27
EVB-SEC1110/EVB-SEC1210/EVB-SEC1212-DEV
Chapter 3. CCID Firmware
3.8FEATURES
• Supports smartcards of all voltages (1.8V, 3V and 5V)
• Supports T=0 and T=1 protocols
• Supports the fastest possible smartcards. (As per ISO Spec, ATR with TA1=17 is
the maximum speed possible for a smartcard. This is equivalent to 826Kbps.)
• Has a maximum CCID command length of 271 bytes
• Supports suspending the device in order to save power
• Remote wake-up is possible through smartcard insertion. When host is in sus-
pended state, on inserting a smartcard, the device will wake up the host.
• Support in-box drivers of all Windows and Linux versions
3.9SINGLE SLOT CCID FIRMWARE
• USB CCID class compliant single slot firmware
• This firmware supports EVB-SEC1110, EVB-SEC1210 & EVB-SEC2112-DEV
boards
• Card can be removed / re-inserted. Interrupt notification will be sent to host
according to card changes in slot.
EVALUATION BOARD USER’S GUIDE
3.10DUAL SLOT CCID FIRMWARE
• USB CCID class compliant dual slot firmware (enumerates as a composite USB
device)
• This firmware supports EVB-SEC1210 & EVB-SEC2112-DEV boards
• In slot1, card removed / re-insertion is supported
• In slot2, card removal / re-insertion is not supported as no status change interrupt
endpoint is supported for this interface
3.11SMARTCARD READER DRIVER INSTALLATION UNDER WINDOWS
Most Windows OS installations include USBCCID drivers integrated by default. In
these cases, as soon as the EVB is connected to the system, the usbccid.sys driver is
loaded and the EVB-SEC1110/EVB-SEC1210/EVB-SEC1212-DEV smartcard reader
will be listed in the Device Manager as shown below.
FIGURE 3-8:SEC1110 DEVICE ENUMERATION UNDER WINDOWS 7
FIGURE 3-9:SEC1210/SEC1212-DEV DEVICE ENUMERATION UNDER WINDOWS 7
DS00001574A-page 28 2013 Microchip Technology Inc.
Page 29
If the driver is has not been pre-installed on the PC, follow the steps below to install the
driver via the Windows Update site (Shown for SEC1110 under Windows XP OS).
• Connect the reader to a free USB port on the PC.
• Once the smartcard reader is connected, Window reports that new hardware has
been detected and will offer to connect to Windows Update to search for a suitable driver.
• Choose Recommended Option and click Next to continue.
FIGURE 3-10:FOUND NEW HARDWIRE WIZARD
CCID Firmware
• Choose "Yes, Connect and search for software on the Internet" and click
Note:This procedure is applicable only to EVB-SEC2112-DEV, as the
EVB-SEC1110 and EVB-SEC1210 are pre-programmed with appropriate
firmware. Only the EVB-SEC2112-DEV includes firmware loaded to SPI2
Flash - and user has an option to program the OTP only once. Once the
OTP is programmed and the "OTP_ROM_EN" option is set as detailed in
step 6 of the procedure below, the SPI flash cannot be updated again and
the boot from OTP or SPI2 can be switched using Jumper J38.
1. The device should enumerate as "SMSC WINUSB". Otherwise the device can't
be programmed.
2. Open the OTP Programmer and confirm the device enumerated