The PN7462 family is a family of 32-bit ARM Cortex-M0-based NFC microcontrollers
offering high performance and low power consumption. It has a simple instruction set and
memory addressing along with a reduced code size compared to existing architectures.
PN7462 family offers an all in one solution, with features such as NFC, microcontroller,
optional contact smart card reader, and software in a single chip. It operates at CPU
frequencies of up to 20 MHz. The PN7462 family consists of six different products.
For more details on all products of the PN7462 family refer to the data sheet.
Having the differences listed in the table above, all products within the PN7462 family are
equipped with 12 kB of SRAM data memory and 4 kB EEPROM. All products within the
family also include one host interface with either high-speed mode I2C-bus, SPI, USB or
high-speed UART, and two master interfaces, SPI and Fast-mode Plus I2C-bus. Four
general-purpose counter/timers, a random number generator, one CRC coprocessor and
up to 21 general-purpose I/O pins.
The PN7462 family NFC microcontroller offers a one chip solution to build contactless, or
contact and contactless applications. It is equipped with a highly integrated high-power
output NFC-IC for contactless communication at 13.56 MHz enabling EMV-compliance
on RF level, without additional external active components.
PN7462 family supports the following operating modes:
• read/write mode supporting ISO/IEC 1443A and MIFARE ICs
• JIS X 6319-4 (comparable with FeliCa scheme)
• ISO/IEC 15693, ICODE, ISO/IEC 18000-3 mode 3
• NFC protocols - tag reader/writer, P2P
• ISO/IEC 14443- type A card emulation
• EMVCo compliance
In this document the term „MIFARE Classic card“ refers to a MIFARE Classic IC-based
contactless card and the term „MIFARE Plus card“ refers to a MIFARE Plus IC-based
contactless card.
Page 4
NXP Semiconductors
UM10858
PN7462 family HW user manual
UM10858
All information provided in this docum ent is subject to legal disclaimers.
This chapter applies to the products with contact interface only.
• Class A, B, and C cards can work on 1.8 V, 3 V, and 5 V supply
• Specific ISO UART, variable baud rate through frequency or division ratio
programming, error management at character level for T = 0, and extra guard
time register
•DC-to-DC converter for class A support starting at 3 V, and class B support
starting at 2.7 V
• Thermal and short-circuit protection on contact cards
• Automatic activation and deactivation sequence, initiated by software or by
hardware in case of short-circuit, card removal, overheating, and VDD or VDD
drop-out
• Enhanced ESD protection (> 12 kV)
• ISO/IEC 7816 compliant
• EMVCo 4.3 compliant
• Clock generation up to 13.56 MHz
• Synchronous card support
• Possibility to extend the number of contact interfaces, with the addition of slot
extenders such as TDA8026
1.2.2 Integrated ISO/IEC 7816-3&4 UART interface
This chapter applies to the products with Integrated ISO/IEC 7816 UART interface
only.
The PN7462 family offers the possibility to extend the number of contact interfaces
available. It uses an I/O auxiliary interface to connect a slot extension (TDA8035 - 1 slot,
TDA8020 - 2 slots, and TDA8026 - 5 slots).
• Class A (5 V), class B (3 V), and class C (1.8 V) smart card supply
• Protection of smart card
• Three protected half-duplex bidirectional buffered I/O lines (C4, C7, and C8)
• Compliant with ISO/IEC 7816 and EMVCo 4.3 standards
1.2.3 Integrated contactless interface f r ont end
• High RF output power frontend IC for transfer speeds up to 848 kbit/s
• NFC IP1 and NPFC IP2 support
• Full NFC Tag support (Type 1, Type 2, Type 3, Type 4 A and B)
• P2P active and passive, target and initiator
• Card emulation ISO14443 type A
Page 5
NXP Semiconductors
UM10858
PN7462 family HW user manual
UM10858
All information provided in this docum ent is subject to legal disclaimers.
The PN7462 family incorporates several distinct memory regions. Fig 4 shows the overall
map of the entire address space from user program viewpoint following reset. The APB
peripheral area is 512 K in size, and is divided to allow for up to 32 peripherals. Only
peripheral from 0 to 15 are accessible, and each one is allocated 16 kB of space, in order
to simplify the address decoding for each peripheral. The APB peripheral memory map is
shown on the right side of
Fig 4.
Page 12
NXP Semiconductors
UM10858
PN7462 family HW user manual
UM10858
All information provided in this docum ent is subject to legal disclaimers.
The PN7462 family contains 160 kB or 80 kB(PN7360) on-chip flash program memory.
The flash can be programmed using In-System Programming (ISP) or In-Application
Programming (IAP) via the on-chip boot-loader software.
The flash memory is divided into two instances of 80 kB, with each sector consisting of
individual pages of 64 Bytes. The flash memory map is described inFig 6
.
Page 14
NXP Semiconductors
UM10858
PN7462 family HW user manual
UM10858
All information provided in this docum ent is subject to legal disclaimers.
Fig 9. Block diagram of EEPROM/FLASH controller module
3. EEPROM CTRL module
The EEPROM controller module controls the access to 4 kB EEPROM and 160 kB Onchip Flash memories. This comprises:
• Reading the content of an EEPROM or Flash word in response to a read-transfer
coming from the CPU
• Writing a word (8 ,16 and 32-bit word length transfer allowed for EEPROM, only 32-bit
allowed for flash) in page file upon a write-transfer coming from the CPU (Full page
has to be written for flash)
• Programming the Flash, meaning copying the content of the page into the relevant
EEPROM/flash
• Implementing security bits (at boot time the EEPROM first word is read. Part of those
bits are controlling the Flash access and the CMB enabling. These bits are available in
a register). Fig 9
shows the block diagram EEPROM/flash controller module
3.1 EEPROM/Flash controller features
• Three non-volatile memory ports: two for 80 x 2 kB of flash and one for a 4 kB of
EEPROM
• 32-bit AHB-Lite slave interface with the CPU
• Read prefetching for flash memory to speed up reading from flash.
• Interrupt Request Device
• Register bank for control and status with user mode protection
Page 17
NXP Semiconductors
UM10858
PN7462 family HW user manual
UM10858
All information provided in this docum ent is subject to legal disclaimers.
• 2.8 ms maximum to write a page on the EEPROM, with a max. power consumption of
2 mA
• 2.5 ms to write a page on the Flash in typical condition
• 1.03 ms to write a page on the Flash with maximum clock speed, with a max. power
consumption of 3 mA
• Test support Unit with CRC computation of the EEPROM and flash
content
3.2 AHB interface
AMBA 3 AHB Lite slave interface is implemented to connect the CPU to the EECTRL.
The wait states are inserted with individual length for a read or write access.
3.3 Memory map
The memory map for the EECTRL module is divided into four parts:
• 0x0020_0000 - 0x0020_0FFF - EECTRL registers area
• 0x0020_1000 - 0x0020_1FFF - 4 kBytes DATA EEPROM Area
• 0x0020_2000 - 0x0020_2FFF - UNDEFINED area
• 0x0020_3000 - 0x0022_AFFF - 160 kBytes flash area
3.4 EEPROM controller
3.4.1 Write operation
Write operation cannot be handled within one AHB clock cycle, therefore wait states are
inserted by the AHB Slave Interface during page register write phase. The following table
gives an overview of minimum idle time for a write operation. The EEPROM controller
programs the data page by page. A page register for write access is used to internally
store the data in a quick way and then a programming cycle can start. The targeted
EEPROM is 16-bit oriented so 32-bit write access need additional processing to combine
two 16-bit access leading to additional wait states.
Table 2. Wait states for write access on EEPROM
width
The Write operation to the EEPROM has to be done in two steps:
1. Write the 64-Byte short term storage page register.
2. Program the page register in one row of the EEPROM matrix.
clock cycles
clock cycles
Page 18
NXP Semiconductors
UM10858
PN7462 family HW user manual
UM10858
All information provided in this docum ent is subject to legal disclaimers.
A read request cannot be handled within one AHB clock cycle, therefore wait states are
inserted by the AHB Slave Interface. The targeted EEPROM is 16-bit oriented so 32-bit
Read access need additional processing leading to additional wait states. Table 3
an overview of minimum idle time for a read operation.
Table 3. Wait states for read access on EEPROM
gives
cycles
3.5 Flash controller
The Flash is composed of two memory devices respectively controlled by one Flash
controller integrated twice in the EECTRL module. The main difference to the EEPROM
is a faster read access and a full-page program ming.
3.5.1 Write operation
Write Access is done only with 32-bit access. A write operation cannot be handled within
one AHB clock cycle, therefore wait states are inserted by the AHB Slave Interface
during page register write phase. The following table gives an overview of minimum idle
time for a write operation. The Flash controllers program the Flash_0 and Flash_1 data
page by page.
A page register for write access is used to internally store the data in a quick way and
then a programming cycle is necessary to store the data.
Flash_0 stores data corresponding to «even» AHB addresses with bit [2] = ’0’ and
Flash_1 stores data corresponding to «odd» AHB addresses with bit [2] = ’1’.
Table 4. Wait states for write access on EEPROM
cycles
A write operation to the Flash has to be done in two steps:
1. Write the 64-Byte short term storage page register.
2. Program the page register in one row of the Flash matrix.
3.5.2 Read Operation
Even if 32-bit, 16-bit and 8-bit Read Access are supported at system level, read access
is only done with 32-bit accesses at memory level because the Flash is 32-bit oriented.
The read access is similar as for the EEPROM.
The following table gives idle time with AHB wait states insertion for a read operation
cycles
cycles
Page 19
NXP Semiconductors
UM10858
PN7462 family HW user manual
UM10858
All information provided in this docum ent is subject to legal disclaimers.
power management unit (temperature sensor, TXLDO
overcurrent detection, overload, VBUS level)
10
SPIMaster
TX or RX buffer from SPI master module
11
I2CMaster
TX or RX buffer from I2C master module
12
PCR
high temperature from temperature sensor 0 and 1,
configured as inputs.
13
PCR
interrupt common GPIO 1 to 12
T_STATUS
4. Nested Vectored Inter rupt Controller (NVIC)
4.1 NVIC features
4.2 Interrupt sources
interrupt set status command
The NVIC is an integral part of the Cortex-M0. The tight coupling to the CPU allows for a
low interrupt latency and efficient processing of late arriving interrupts. The NVIC controls
system exceptions and peripheral interrupts. Its control registers are accessible as
memory-mapped devices.
• Controls system exceptions and peripheral interrupts
•
Supports 32 vectored interrupts
• Four interrupt priority levels, with hardware priority level masking
• Non-mask able interrupt (NMI) connected to the watchdog interrupt.
• Software interrupt generation
The following table lists the interrupt sources available in the PN7462 family
microcontroller
Table 28. External interrupt sources
interrupt to CPU from PCR to indicate wakeup from suspend
mode, out of standby, out of suspend, event on GPIO’s
Page 29
NXP Semiconductors
UM10858
PN7462 family HW user manual
UM10858
All information provided in this docum ent is subject to legal disclaimers.
Cortex-M0 processor-based devices use the Serial Wire ARM CoreSight™ debug
technology. The Serial Wire Debug (SWD) signals are connected to the pads via the
PCR (Power, Clock & Reset) described in Section 0
in order to have code (or data) read/write access protection.
4.4.1 SWD features
• Run Control of the processor allowing to start and stop programs
• Single Step one source or assembler line
• Set breakpoints while the processor is running
• Write memory contents and peripheral registers on-the-fly
• “Printf” like debug messages through the SWD.
4.4.2 SWD limitations
The PN7462 family does not allow breakpoint or single step debugging of ROM service
APIs and boot code. Breakpoint or single step debugging of ROM service APIs and Boot
code results into System reset.
. The SWD interface can be disabled
Breakpoint and single step debugging is only allowed in the customer Application area.
4.4.3 Hardware connection of SWD
For using SWD it is recommended to connect an external pull-up from SWDCLK and
SWDIO to PVDD_IN supply (see Table 31
Table 31. SWD pinning
5. SysTick Timer (SysTick)
The SysTick timer is a 24-bit timer that counts down to zero and ge nerates an int err upt.
The SysTick timer is clocked from the system clock or from the reference clock, which is
fixed to half the frequency of the system clock. In order to generate recurring interrupts at
a specific interval, the SYST_RVR register must be initialized with the correct value for
the desired interval. A default value is provided in the SYST_CALIB register and may be
changed by software.
In order to use the PN7462 family as microcontroller with host interface following
voltages (minimum requirements) need to be supplied:
• VBUS
• PVDD_IN (if PVDD_OUT is not used, it needs to be shorted to GND)
• DVDD pin must be connected to VDD and buffered with 1 µF capacitor to GND
The SPI/ I²C master interface requires additional supply:
• PVDD_M_IN
shows the power supply of the chip (VBUS), including the supply of the digital
Fig 10
blocks (DVDD). The host interface pads are supplied using PVDD_IN and master
interface pads are supplied using PVDD_M_IN. The pads can be supplied using an
internal LDO, or using an external supply. The internal LDO requires that VBUS > 4 V.
When PVDD_LDO is used, the maximum total current available from PVDD_OUT for the
pads supply is 30 mA.
When an external source is used for PVDD_IN and PVDD_IN_M, PVDD_OUT must be
connected to the ground with a ground resistance of less than 10 Ω.
Page 34
NXP Semiconductors
UM10858
PN7462 family HW user manual
UM10858
All information provided in this docum ent is subject to legal disclaimers.
The capacitance value must be chosen so that the capacitance value is correct at 5 V
Fig 12. Powering the contactless interface – using an external RF transmitter supply
PN7462 family
RF transmitter
supply
TVDD_OUT
VUP_TX
TVDD_IN
(1)
TX2
TX1
TVSS
6.8 µF
VBUS
PN7462 family
supply
antenna
supply
470 nF
1 µF
aaa
-021 144
PN
7462 family
RF transmitter
supply
TVDD_OUT
VUP_TX
TVDD_IN
(2)
TX2
TX1
TVSS
6.8 µF
VBUS
PN7462 family
supply
antenna
supply
470 nF
PN7462 family
PN7462 family
(1) Using the PN7462 family´s TXLDO
(2) Without using PN7462 family´s TXLDO
6.1.3 Contact reader supply
In order to use the contact reader functionality of the PN7462 family, following pads need
to be supplied:
• VBUS
• PVDD_IN (if PVDD_OUT is not used needs to be shorted to GND)
• VBUSP
• DVDD pin must be connected to VDD and buffered with 1 µF capacitor to GND
For SPI/ I²C master interface following supply is also needed
• PVDD_M_IN
The contact interface is powered through VBUSP which is connected to VBUS, as shown
on the schematic in Fig 13
The various ISO 7816 contact card classes (A, B, or C) require different voltages:
• VBUSP > 2.7 V: support of class B and class C contact cards
• VBUSP > 3 V: support of class A contact cards
.
Remark: To support Class A cards, DC-to-DC converter has to be used. To support
Class B cards with VB USP < 3.9 V, DC-to-DC converter also has to be used. The
13.shows how to connect the contact interface related pins, when no contact interface is
used.
Fig
Page 37
NXP Semiconductors
UM10858
PN7462 family HW user manual
UM10858
All information provided in this docum ent is subject to legal disclaimers.
The Integrated Power Management Unit (PMU) supplies internal analog modules,
internal digital logic, memories and pads. It also provides regulated voltages for the
contactless and the contact interfaces. The PMU automatically adjusts the internal
regulators to minimize the power consumption during all possible power modes. The
power management unit embeds also mechanisms to prevent the IC from overheat,
current overconsumption and overloading the DC-to-DC converter. For the RF
transmitter stage, a separated low-drop output regulator is embedded. This module also
integrates a temperature sensor and Power On Reset generator. The PMU is made of
analog modules and digital control unit embedding the registers
Table 33. Voltage and Supply pins connection overview
powered or
PVDD_OUT
interfaces
(1.8 V or 3.3 V)
Page 39
NXP Semiconductors
UM10858
PN7462 family HW user manual
UM10858
All information provided in this docum ent is subject to legal disclaimers.
The PMU embeds several Low Drop-Out regulators (LDO) in order to ensure the stability
of the power supply.
6.2.1.1 Main LDO
The Main LDO (MLDO) provides 1.8 V for all internal analog, digital and memory
modules. It draws its power from VBUS. It includes a current limiter to prevent damage of
output transistors. The output supply is available on the VDD pin, which must be
connected externally to the DVDD pin.
Page 41
NXP Semiconductors
UM10858
PN7462 family HW user manual
UM10858
All information provided in this docum ent is subject to legal disclaimers.
The PVDD_LDO provides 3.3 V for all digital pads. It is supplied by VBUS, and requires
a minimum voltage of 4 V to be functional. It delivers a maximum current of 30 mA. The
output of the PVDD_LDO is PVDD_OUT pin. This LDO is used to provide the necessary
supply to PVDD_IN (pad supply for host interface) and PVDD_M_IN (pad supply for
master interfaces). When an external power supply is used, the PVDD_OUT must be
connected to the ground. The ROM boot detects automatically that the LDO output is
connected to the ground, and switches it off. The PVDD LDO has a low power mode,
which is used automatically by the PN7462 family when the chip is in Stand-by mode or
Suspend mode. This enables to supply host pads and GPIOs, and to detect wake-up
signals coming from these interfaces.
6.2.1.3 TXLDO Transmitter supply
The PN7462 family integrates an internal transmitter LDO. The TXLDO can be used to
maintain a constant output voltage for the RF interface. The TXLDO is designed to
protect the chip from voltage ripple introduced by the power supply on the VUP_TX pin. It
is powered through VUP_TX pin. The programmable output voltages are: 3.0 V, 3.3 V,
3.6 V, 4.5 V, and 4.75 V. For a given output voltage, VUP_TX shall alwa ys be 0.3V
higher (i.e. to supply a 3 V output, the minimum voltage to be applied on VUP_TX is
3.3 V). If the voltage is no sufficient, then TVDD_OUT follows VUP_TX, lowered of 0.3 V.
When it is not used, TVDD_OUT shall be connected to TVDD_IN, and TX_LDO shall be
turned off. The TXLDO can be used in one of the following power modes
• Full power mode
• Low power mode
• Low power 2 mode
• Shutdown mode
• Standby mode
For corresponding register settings, please refer to Section 6.7.2
6.2.1.4 VCC LDO
The VCC LDO provides contact interface supply VCC.
6.2.1.5 SCLDO
The SCLDO provides a regulated voltage to the DC-to-DC converter, to enable class B
operation when 2.7 < VBUS < 3.9 V and class A operation.
6.2.1.6 DC-to-DC converter
The PN7462 family includes a DC-to-DC converter, in order to support Class A and
Class B cards, when the input voltage VBUSP is not sufficient. The DC-to-DC converter
is a switched capac it anc e volta ge converter. It takes its power from the SCLDO. The DCto-DC converter can be bypassed. Its output (VUP) is regulated from 3.3 to 5.5 V.
.
Page 42
NXP Semiconductors
UM10858
PN7462 family HW user manual
UM10858
All information provided in this docum ent is subject to legal disclaimers.
22 ms (including DC-to-DC converter, SCLDO and VCCLDO startup times)
500 µs (excluding DC-to-DC and SCLDO)
Fig 17. Block diagram of PMU
6.2.1.7 Start-up times of LDOs
Table 34. Start-up times of LDOs
6.3 PN7462 family PMU digital control unit
The PMU digital control unit of the PN7462 family is used in the system as the gateway
to configure all modes of supply for the product using the control registers. Note that
additional registers related to PMU control are located in the power clock and reset
(PCR) Unit for they need to be always powered up. The PMU digital control unit consists
of the AMBA 3.0 APB interface and the associated register bank to drive the analog part
of PMU, plus additional glue logic related to controlling the temperature, overcurrent, pad
voltage, interrupts and calibration of temperature sensors.
Main blocks (see Fig 17
) are:
• Register bank for PMU analog block (detailed description in Section 6.7)
• Temperature sensor controller
• 32-bit APB slave interface
Page 43
NXP Semiconductors
UM10858
PN7462 family HW user manual
UM10858
All information provided in this docum ent is subject to legal disclaimers.
Interrupt signals are generated in the analog part of the PMU as a result of:
• TXLDO 5 V monitoring
• VCC current limiter
• DC-to-DC converter current overload
• SCVDD current overload
• TXLDO current overload
• Temperature sensor
All interrupts are “ORed” in the digital part of the PMU to output one unique PMU
interrupt line. The software has to analyze the content of the
PMU_INTERRUPT_STATUS_REG register to know which of the seven conditions
caused the interrupt. All interrupts can be enabled or disabled (masked) separately using
the PMU_INTERRUPT_ENABLE_REG register. Clearing the status bit field of one
interrupt is performed by setting the corresponding bit field in the
PMU_INTERRUPT_CLR_STATUS_REG register high. All bit fields of all
PMU_INTERRU PT_CLR_STATU S_REG and PM U_ IN TERRUPT_SET_ ST ATUS_REG
registers are automatically cleared if set high after two system clock cycles.
6.5 Temperature sensors
The Power Management Unit of PN7462 family comprises two temperature sensors
associated with the contactless TXLDO and the contact DC-to-DC converter interfaces.
The main purpose of these sensors is to monitor the temperature and prevent the
overheating, which could potentially cause the damage of the chip and the customer
device. The triggering levels are configurable. Following temperatures can be chosen:
135°C, 130°C, 125°C or 120°C. By default, the temperature sensor is set to 120°C.
When one of the sensors detects a temperature issue, an interrupt is generated and the
microcontroller will be put by software into the standby mode or the suspend mode if the
USB interface is used. The registers indicate which of the two temperature sensors
(contact interface, or contactless interface) generated the interrupt. When the
temperature goes below the configured threshold temperature, the microcontroller wakes
up automatically. For a detailed description of the corresponding registers refer to
PCR_TEMP_REG.
6.6 Voltage monitoring
The voltage monitoring is used to check if the voltages are within the appropriaterange
specified fora proper operation of the IC. The following power supplies are monitored:
VBUS (2 voltage monitors) and VBUSP (1 voltage monitor). T able 35
voltage monitors with the selectable thresholds values.
Table 35. Voltage monitor - possible threshold configuration
summarizes the
Page 44
NXP Semiconductors
UM10858
PN7462 family HW user manual
UM10858
All information provided in this docum ent is subject to legal disclaimers.
The PN7462 family offers two selectable thresholds (2.3 V or 2.7 V) for monitoring the
voltage on the VBUS pin. When VBUS voltage falls below the selected threshold and
Auto Hard Power Down (HPD) feature is enabled in the Power, Clock and Reset unit
(described in Section 0
monitor the signal by reading a dedicated status register and decide to put the IC into the
HPD mode. The signal can be enabled for interrupt in Interrupt Enable register in the
PCR to cause a CPU interrupt. By default, the VBUS monitor is disabled during the
power-up.
), the IC will enter the HPD mode. Alternatively, the software can
6.6.2 PVDD LDO (VBUS2 ) monitor
The PN7462 family offers two selectable thresholds (VBUS2: 2.7 V or 4.0 V) for
monitoring the voltage of the PVDD LDO supply. The status of the VBUS2 monitor is
available in the status register. The software has to check whether the voltage is
sufficient before enabling the LDO. The PVDD LDO can be enabled when the input
supply VBUS2 > 4.0 V.
6.6.3 VBUSP monitor
VBUSP monitor is used for the Contact interface supply. Three levels (2.7, 3.0, and 3.9
V) can be selected for monitoring the voltage on the VBUSP pin. The threshold is
configured by firmware depending on the card type selected. (Class A, Class B, Class C)
When VBUSP < 2.7 V, no functionality is possible.
When VBUSP > 2.7 V, Class C type can be supported.
When VBUSP > 3.0 V, Class A type can be supported with DC-to-DC converter
configured in the doubler mode.
When VBUSP > 2.7 V and VBUSP < 3.9 V, Class B type is supported with DC-to-DC
converter configured in the doubler mode.
When VBUSP > 3.9 V, Class B type of card is supported with DC-to-DC converter
configured in the follower mode.
When the voltage falls below the selected threshold value and CT automatic deactivation
is enabled in the PCR System Register, the hard war e automatically de-activates the CT
interface. The signal can be enabled for interrupt in Interrupt Enable register in the PCR
to cause a CPU interrupt. The software must check VBUSP monitor levels by reading
dedicated status registers before starting card activation sequence.
Page 45
NXP Semiconductors
UM10858
PN7462 family HW user manual
UM10858
All information provided in this docum ent is subject to legal disclaimers.
In addition to the clock sources, the clock generator comprises a digital control unit,
which controls and monitors the signals coming from the clocks and integrated PLL. The
registers are accessed using an APB register interface.
7.1 Oscillators
The PN7462 family includes three independent oscillators. Each oscillator can be used
for more than one purposes. Upon reset, the PN74 62 f am il y will operate from the Internal
HFO until it is switched to a different clock source. This allows systems to operate
without any external crystal and the boot loader code to operate at a known frequency.
Page 56
NXP Semiconductors
UM10858
PN7462 family HW user manual
UM10858
All information provided in this docum ent is subject to legal disclaimers.
The 27.12 MHz crystal oscillator is used as a reference for all operations requiring high
stability of the clock frequency. This includes: contactless interface, contact interface, SPI
and I2C master interfaces, HSUART and USB PLL for the USB interface.
To ensure the stability of the clock frequency, it is recommended to adopt the circuit with
the external quartz and the trimming capacitors shown in Fig 19. Table 49
the requirements for the crystals.
summarizes
Table 49. Crystal requirements
CLK
CLK_ACC
LOAD
CLK
[1] This requirement is according FCC regulations requirements. To meet only ISO/IEC 14443 and ISO/IEC 18092 then +/-
14 kHz apply.
7.1.1.1 XTAL activation sequence
The XTAL is automatically activated by the digital control unit as soon as the system
reset is released. The LFO needs to be activated to start the XTAL Oscillator.
XTAL activation sequence description:
Page 57
NXP Semiconductors
UM10858
PN7462 family HW user manual
UM10858
All information provided in this docum ent is subject to legal disclaimers.
In case of error, the PCR can try to restart the XTAL activation sequence by activating the
system reset again or switching to another system clock source.
The XTAL can also be controlled by software when
CLKGEN_HFO_XTAL_REG.XTAL_CONTROL_SW is set to ’1’. Before activating the
XTAL software control, the system clock should be switched from the XTAL to another
clock. The following sequence must be followed step by step in order to activate XTAL
by SW.
1. Set CLKGEN_HFO_XTAL_REG.XTAL_CONTROL_SW is set to ’1’.
The PN7462 family integrates an internal low power High Frequency Oscillator (HFO),
generating a 20 MHz clock without using the PLL. The HFO can be used as a system
clock. The HFO is activated by default with the
CLKGEN_HFO_XTAL_REG.HFO_ENABLE register bit as soon as the system reset is
released.
7.1.3 Low Frequency Oscillator (LFO)
The PN7462 family integrates an internal low power Low Frequency Oscillator working at
380 kHz. The LFO is used by the EEPROM, POR sequencer, Contactless interface,
timers and watchdog. The LFO needs to be activated to start the XTAL Oscillator
7.2 Phase Locked Loop (USB PLL)
The PN7462 family integrates a dedicated USB PLL to generate a low-noise 48 MHz
clock signal from the 27.12 MHz input signal coming from the external crystal (XTAL).
The 48 MHz clock signal is used as the main clock for the USB interface.
Page 58
NXP Semiconductors
UM10858
PN7462 family HW user manual
UM10858
All information provided in this docum ent is subject to legal disclaimers.
CLKGEN_USB_PLL_CONTROL_REG.USB_PLL_CLKOUT_SELECT = ’10’
or ‘11’
7.2.3 USB PLL frequency calculation
The USB PLL soft decoder selects pre-defined divider ratios and corresponding
bandwidth of the PLL to guarantee stability. The soft decoder can only select two sets of
divider parameters in order to have a ~48 MHz output clock from a 27.12 MHz input clock
(Clkout=Clkinx(M/(NxP))).
The Soft Decoder can be bypassed in order to have the full control of the divider ratios.
When CLKGEN_USB_PLL_CONTROL_REG.usb_pll_mnp_dec_selection is set to ’1’
M,N,P divider ratios are coming from CLKGEN_USB_PLL_MDEC_WO_SOFTDEC and
CLKGEN_USB_PLL_NDEC_PDEC_WO_SOFTDEC registers.
7.2.4 USB PLL Activation Sequence
The Activation Sequence with default MNP parameters comprises following steps:
1. Put the PLL in Power Down Mode
CLKGEN_USB_PLL_CONTROL_REG.USB_PLL_PD = ’1’
3. Set the expected PLL input clock frequency for the clock detector by setting the
detection window length and the amount of expected detected input clock rising
edges in this detection window respectively defined by the following registers
CLKGEN_INPUT_CLOCK_DETECTOR_CONTROL_REG.
By default, these registers are set to detect a 27.12 MHz input clock.
Page 60
NXP Semiconductors
UM10858
PN7462 family HW user manual
UM10858
All information provided in this docum ent is subject to legal disclaimers.
4. Enable Input Clock Detector
CLKGEN_INPUT_CLOCK_DETECTOR_CONTROL_REG.USB_CLK_DETECT_EN
ABLE = ’1’.
5. Poll for CLKGEN_STATUS_REG.CLK_IN_DETECT_DONE = ’1’ (after ~5.2 us by
default). This will only indicate that the detection procedure is finished, not that there
is clock and/or the frequency is the expected one.
6. Check that CLKGEN_STATUS_REG.CLK_IN_OK = ’1’.
This will indicate if there is a clock of a frequency higher or equals to the expected one
(27.12 MHz by default) at the input of the PLL. If this bit is 0 while
CLK_IN_DETECT_DONE is high, this means either that there is no clock or that the
clock has a frequency lower than the expected one (27.12 MH z), which will hamper
the PLL functionality or give an unwanted PLL output frequency value.
9. Enable the PLL
CLKGEN_USB_PLL_CONTROL_REG.PLL_CLKEN = ’1’
10. Poll for CLKGEN_STATUS_REG.PLL_LOCK = ’1’ to confirm the lock status of the
PLL.
Software can start a new PLL input clock detection at any time by generating a low to
high transition on the
CLKGEN_INPUT_CLOCK_DETECTOR_CONTROL_REG.USB_CLK_DETECT_ENA
BLE register.
7.3 CLIF PLL
The integrated CLIF PLL is designed to generate a low-noise 27.12 MHz clock, which is
used as time reference for the Contactless Interface when PN7462 family is in reader
mode or acting as ISO/IEC 18092 initiator.
The frequency value of the reference clock that is fed, can be selected using
CLKGEN_CLIF_PLL_GLOBAL_CONTROL_REG register between:
1. Crystal oscillator output (default)
2. External clock input
The CLIF PLL output can be configured using
CLKGEN_CLIF_PLL_GLOBAL_CONTROL_REG registers as:
1. Fractional PLL output
2. XTAL oscillator output Clock
3. Regular PLL output
4. PLL input
The clock generator module provides a PLL/XTAL clock presence indicator signal to the
CLIF. This signal is active when the clock coming from the PLL or XTAL, or a
Page 61
NXP Semiconductors
UM10858
PN7462 family HW user manual
UM10858
All information provided in this docum ent is subject to legal disclaimers.
1: M,N,P divider ratio are not coming from the soft
23:19
USB_PLL_INSELP
R/W
0x1F
select the bandwidth (don't care if
18:15
USB_PLL_INSELI
R/W
0x02
select the bandwidth (don't care if
14:11
USB_PLL_INSELR
R/W
0x00
select the bandwidth (don't care if
10
USB_PLL_BANDSEL
R/W
0x00
bandwidth adjustment (to modify externally the
offset
C_WO_SOFTDEC_REG
(bits)
7.6.1 PLL Control Register (CLKGEN_USB_PLL_CONTROL_REG - 000Ch)
The CLKGEN_USB_PLL_CONTROL_REG register contains the bits that enable and
connect PLL1. Enabling USB PLL allows it to attempt to lock to the current settings of the
multiplier and divider values. Connecting USB PLL causes the USB subsystem to run
from the USB PLL output clock. The USB PLL must be set up, enabled, and lock
established before it may be used as a clock source for the USB.
Table 57. CLKGEN_USB_PLL_CONTROL_REG (a ddress 000Ch)
0: M=600,N=113,P=3
1: M=92,N=13,P=4
01: USB_PLL_clkin
10: tie '0'
11: tie '0'
ratio when the soft decoder is not
used
N
00: clk_input_buffer
01: clk_xtal
10: tie '0'
11: tie '0'
decoder but from the
CLKGEN_USB_PLL_MDEC_WO_SOFTDEC and
CLKGEN_USB_PLL_NDEC_PDEC_WO_SOFTDEC
registers
0: M, N, P divider ratio are taken from the Soft Decoder
USB_PLL_BANDSEL='0')
USB_PLL_BANDSEL='0')
USB_PLL_BANDSEL='0')
bandwidth of the USB_PLL)
Page 66
NXP Semiconductors
UM10858
PN7462 family HW user manual
UM10858
All information provided in this docum ent is subject to legal disclaimers.
divider ratio code for M-divider when soft decoder is
1: Request change of USB_PLL post-divider ratio (ratio
taken from register)
1: Request change of USB_PLL pre-divider ratio (ratio
taken from register)
1: Request change of USB_PLL feedback divid er ratio
(ratio taken from register)
1: Enable free running mode of USB PLL
1: Enable skew mode of USB_PLL
7.6.2 PLL M decoded divider ratio
The CLKGEN_USB_PLL_MDEC_WO_SOFTDEC_REG register contains the USB PLL
multiplier and divider values. Changes to
CLKGEN_USB_PLL_MDEC_WO_SOFTDEC_REG register do not take effect until a
correct USB feed sequence has been given (see Section 7.2
PLL frequency, and multiplier and divider values are found in Section 7.2.
divider ratio code for P-divider w hen soft decoder is not
9:0
USB_NDEC_WO_SOFTDEC
R/W
0x00
divider ratio code for N-divider w hen soft decoder is not
Name
Address
Width
Access
Reset value
Description
CLKGEN_CLIF_PLL1_CONTRO
0018h
32
R/W
02E3B190h
Clif pll usage configurations
CLKGEN_CLIF_PLL2_CONTRO
001Ch
32
R/W
02E121E0h
Clif pll usage configurations
CLKGEN_CLIF_PLL_GLOBAL_
0020h
32
R/W
000000C0h
Clif pll integration configurations
CLKGEN_INPUT_CLOCK_DETE
0024h
32
R/W
000011ADh
input clock detector control
CLKGEN_CLOCK_PRESENCE_
002Ch
32
R/W
0000000Fh
yes clock presence for clif_pll
7.6.3 PLL N and P decoded divider ratio
The CLKGEN_USB_PLL_NDEC_PDEC_WO_SOFTDEC_REG register contains the
USB PLL multiplier and divider values. Changes to
CLKGEN_USB_PLL_NDEC_PDEC_WO_SOFTDEC register do not take effect until a
correct USB feed sequence has been given (see Section 7.2
PLL frequency, and multiplier and divider values are found in Section 7.2.
CLIF PLL is controlled by the registers shown in Table 60. More detail ed desc r ipt ions
follow. Writes to any unused bits are ignored. A read of any unused bits will return a logic
zero.
Warning: Improper setting of CLIF PLL value s may result in incorrect operation of
the Contactless System!
Table 60. CLIF PLL register overview
offset
L_REG
L_REG
CONTROL_REG
CTOR_CONTROL_REG
BYPASS_REG
7.7.1 CLIF PLL CONTROL1 REG
(bits)
The CLKGEN_CLIF_PLL1_CONTROL_REG register contains the CLIF PLL multiplier
and divider values. Changes to CLKGEN_CLIF_PLL1_CONTROL_REG register do not
take effect until a correct CLIF PLL feed sequence has been given. Calculations for the
USB PLL frequency, and multiplier and di vi der va lues ar e found in Section 7.2
.
Page 68
NXP Semiconductors
UM10858
PN7462 family HW user manual
UM10858
All information provided in this docum ent is subject to legal disclaimers.
The CLKGEN_CLIF_PLL2_CONTROL_REG register contains the CLIF PLL multiplier
and divider values. Changes to CLKGEN_CLIF_PLL2_CONTROL_REG register do not
take effect until a correct CLIF PLL feed sequence has been given. Calculations for the
USB PLL frequency, and multiplier and di vi der va lues ar e found Section 7.2
1: Enable functional CLIF_PLL test chain of lock detector
0
CLIF_PLL_FUNC_TEST1_LOCK2
R/W
0x00
1: Enable functional divider test of lock detector 2
Bit
Symbol
Access
Value
Description
31:15
RESERVED
R/W
0x00
Reserved
14
CLIF_PLL_CLK_IN_OK_BYPASS
R/W
0x00
CLIF PLL clk_in detection override
13:12
CLIF_PLL_REF_CLK_SELECT
R/W
0x00
Select the reference clock for CLIF PLL
11
RESERVED
R/W
0x00
Reserved
10
CLIF_CLK_DETECT_ENABLE
R/W
0x00
1: Enable CLIF_PLL input clock detector (clk_in).
9:7
CLIF_PLL_INPUT_FREQ_SEL
R/W
0x01
Select input frequency for the CLIF_PLL: 13, 19.2, 24,
6:5
CLIF_PLL_CLOCK_SELECT
R/W
0x02
Selects output clock from CLIF_PLL
4
PLL_INPUT_BUFFER_BYPASS
R/W
0x00
Bypass PLL input buffer (the buffer for clock going into
3
PLL_INPUT_BUFFER_ENABLE
R/W
0x01
1: Enable the PLL Input Buffer (the buffer for clock
0: Disable the PLL input Buffer
2
CLIF_PLL_FUNC_TEST_N1
R/W
0x00
1: Enable functional divider test and CLIF_PLL test
1
CLIF_PLL_DIVN1
R/W
0x00
Pre-divider selection for CLIF PLL1
0
CLIF_PLL_ENABLE
R/W
0x00
1: Enable the CLIF_PLL
2
7.7.3 CLIF PLL GLOBAL CONTROL REG
The CLIF PLL GLOBAL CONTROL REG register contains the bits that enable and
connect CLIF PLL. Enabling CLIF PLL allows it to attempt to lock to the current settings
of the multiplier and divider values.
Table 63. CLKGEN_CLIF_PLL_GLOBAL_C O NTR O L_RE G (address 0020h)
1: Override pll_clk_in detection
00: Clk_input_buffer
01: clk_xtal
10: tie ‘0’
11: tie ‘0’
The Power, Clock & Reset Unit (PCR) handles the digital startup of the PN7462 family
and manages the behavior of the system in low power and active modes. The PCR unit
is the only digital block that is powered in the standby mode.
The PCR unit provides following functionalities:
• Reset management
• Power on, standby, USB suspend and power off management
• Wake-up management
• Clock gating management for power consumption reduction
• I/O pad management
shows the block diagram of the PCR Unit with its main blocks:
Fig 21
• Reset Generator
• Standby Control
• Clock Box
• Pad Control
Page 72
NXP Semiconductors
UM10858
PN7462 family HW user manual
UM10858
All information provided in this docum ent is subject to legal disclaimers.
Analog Reset Sources (Startup Por or leave
Rfld 1 RF Level Detector wakeup
wuc_cnt
2
Wakeup Timer
int_aux
3
Contact uart int_aux pad gives an interrupt
Ct 4 Contact card presence is detected
i2c 5 I2C address detected
RESERVED
6
Reserved
Spi 7 SPI slave received transaction
usb_resume
8
USB Resume signaling from Host
soft_reset
9
Soft reset given by software
Wdog
10
Watch dog timer timeout or ARM reset
Tvddmon
11
5V detected by TVDD monitor
hif_reset
12
VEN from low to high back (only for test
temp0
13
Neg-edge detected for Temperature error from
temp1
14
Neg-edge detected for Temperature error from
no_pvdd
15
PVDD dropped
pvdd_ilim
16
Pvdd current limiter input has become 01
gpio
17
Gpio interrupt
hsu
18
HSUART transaction detected
These reset sources trigger the reset generator that generates a global reset pulse. The
Reset Generator is active high-level sensitive to the reset sources. As long as one reset
source is high, the global reset will be active. After releasing the reset source, the res et
pulse will be prolonged to at least one cycle. The power-on reset sequence is asserted
when the device is powered up. It is used to keep the system in reset state until proper
supply conditions are established. This point is achieved when the internal supply voltage
reaches 1.55 V.
When the internal reset is removed, the processor begins executing at address 0, which
is initially the reset vector mapped from the boot block. At that point, all of the processor
and peripheral registers have been initialized to predetermined values.
8.2 Boot reason decoding
Table 67. Boot reason decoding
reflected in
register
from HPD or VEN)
purpose) Ii2c slave or smb slave requested for
reset
temperature sensor 0
temperature sensor 1
Page 74
NXP Semiconductors
UM10858
PN7462 family HW user manual
UM10858
All information provided in this docum ent is subject to legal disclaimers.
The PN7462 family offers four different power modes allowing customer to optimize its
energy consumption. These are:
• Active mode
• Standby mode
• USB suspend mode
• Hard Power Down mode
8.3.1 Full Power Mode (Active Mode)
In the active mode, all functionalities are available and all blocks are accessible. The
PN7462 family is powered from the VBUS supply.
8.3.2 Standby Mode
In this mode, only small part of the IC is powered to maintain operation of the Power
Control Unit, the LFO and a small set of registers for storing data during the standby
operation. The MLDO is set to the low power mode. The possible wake-up sources are
still powered. Depending on the application requirements, it is possible to put
PVDDL_LDO into active mode, low power mode (default) or shut down mode.
The standby mode is triggered by the application firmware. Before entering the standby
mode, the PN7462 family executes automatically the deactivation of the contact card.
An internal mechanism prevents from entering into the standby mode either when no
relevant wake up source is activated, or when conditions for a corresponding wakeup
source are not present. The IC goes to power on mode again when a wake up is
asserted.
8.3.2.1 Entering Standby Mode
To enter standby mode, the firmware needs to operate in an infinite while loop of:
1. Programming the standby bit in the PCR_CTRL_REG.
2. Checking if there is any standby prevention reason.
3. If any reason found, then cater to the reason preventing entry of standby
Go back to step 1.
This loop will be automatically broken when PN7462 family enters standby and comes
As this will reset PN7462 family and restart the boot.
out.
8.3.2.2 Standby prevention root causes
Table below summarizes conditions preventing PN7462 family from entering the standby
mode.
Table 68. Standby prevention root causes
Page 75
NXP Semiconductors
UM10858
PN7462 family HW user manual
UM10858
All information provided in this docum ent is subject to legal disclaimers.
Either RF level detector is activated as wakeup sour ce and R F level dete ctor is
4
Host Interface is selected as wakeup source and no PVDD is available
5
PVDD current limiter input has seen a 01
6
Negative-edge found on temperature error for temperature sensor 0,
7
Negative-edge found on temperature error for temperature sensor 1,
8
No host interface is selected
9
GPIO interrupt found
10
TVDD voltage has risen above 5 V
11
Card insertion or removal detected
12
Contact unart int_aux pin has given an interrupt
13
Contact deactivation is ongoing.
not enabled or RF field is already present
considering temperature sensor 0 is enabled for wakeup
considering temperature sensor 1 is enabled for wake-up
8.3.3 USB suspend mode
In this mode, only a few parts of USB are still active but not clocked. All clock sources
except LFO are stopped. PN7462 family will go into suspend state if there is no activity
on the USB bus for more than 3 ms.
8.3.3.1 Entering suspend mode
To enter suspend mode, the firmware needs to operate in an infinite while loop of :
1. Programming the suspend bit in the PCR_CTRL_REG
2. Wait for interrupt.
3. If the interrupt is SUSPEND_DEFAULTED then check for the standby prevention
reason (same register used for standby).
4. If any reason found, then cater to the prevention reason.
5. Now go back to step 1
If the interrupt is SUSPEND, then it means P7462 family has entered and come out of
suspend.
Page 76
NXP Semiconductors
UM10858
PN7462 family HW user manual
UM10858
All information provided in this docum ent is subject to legal disclaimers.
Standby/suspend mode is left if one of the following conditions is met:
• Host activity (SPI, I2C, HSU) for standby mode and USB Resume for suspend mode
with following pre-conditions:
− PVDD is available
− One of interfaces is selected (hif_selection is != 0 )
− In case of SPI being selected NSS==1
• Contact card insertion/removal detection
• Wake-up timer using a 6 bit counter and a match register with programmable
standby/suspend mode duration from 50ms to 2.5s; Used to timely check for any
contact or contactless card presence
• Active Reset Source: e.g. current overconsumption on the PVDD_OUT, voltage
above 5V on TVDD_IN
• Disappearance of PVDD: Voltage drop below 1.8 V triggers wak e-up; Always active
• RF level detection caused by activity on the CLIF interface e.g. by bringing card near
to CLIF
• Temperature sensor threshold reached: when the temperature goes below the
configured value, the microcontroller wakes-up automatically; Each temperature
sensor can be configured individually
• GPIO: transition from 0 to 1 on input GPIO pads can be used to wakeup
8.3.5 Hard Power Down Mode
This is the lowest power mode allowing for the highest reduction of the power
consumption. All clocks are turned off, all LDOs are turned off, except the MLDO which is
set to the low power mode
The PN7462 family enters the Hard Power Down mode when RST_N is set to zero or the
VBUS voltage is going below 2.3 V.
The PN7462 family exits the Hard Power Down mode, when RST_N pin is set to high
level and VBUS voltage goes above 2.3 V.
8.3.6 LDOs/PLLs in different power modes
Table 69. LDOs/PLLs in power modes
Low power mode Operational mode
software
Page 77
NXP Semiconductors
UM10858
PN7462 family HW user manual
UM10858
All information provided in this docum ent is subject to legal disclaimers.
The Clock Box is responsible for generating all clock signals for the system.
The PCR_CLK_CFG_REG and PCR_CLK_CFG2_REG are used by firmware to gate
system and IP clocks going to different modules.
The system clock source can be one among:
HFO 20 MHz
XTAL 27.12 MHz (internal test purpose)
CLK_USB/2 24 Mh z. (only internal test purpose)
System clock must be always 20 MHz
Page 79
NXP Semiconductors
UM10858
PN7462 family HW user manual
UM10858
All information provided in this docum ent is subject to legal disclaimers.
The selection is done using the PCR_SELECT_SYSTEMCLOCK [2:0]:
001 ... 20 MHz clkHFO (default)
010 ... 24 MHz clkUSBPLL/2 (internal test purpose)
100 ... 27.12 MHz clkXtal (internal test purpose)
Others ... INVALID, should not be programmed
8.5 Clock Gating
In order to reduce the overall power consumption, the PN7462 family enables adjusting
the system clock and integrates clock gating mechanisms.
The clocks of the following blocks can be activated or deactivated, depending on the
peripherals used (see Fig 23):
• Contactless interface
• Contact interface
• Host interfaces
2
C master interface
• I
• SPI master interface
• CRC engine
• Timers
• Random generator
• System Clock
• EEPROM
• Flash memory
To enable the clock for this part, the correspo ndi ng bit i n PCR_CL K_CF G_REG and
PCR_CLK_CFG2_REG needs to be set.
Page 80
NXP Semiconductors
UM10858
PN7462 family HW user manual
UM10858
All information provided in this docum ent is subject to legal disclaimers.
• Connecting the GPIO/I2C/SPI to a peripheral IO for device pins that are not
connected to a specific peripheral function
• Dynamic configuration as inputs or outputs or analog by FW
• Pull up, pull down or tri-state configuration
The GPIO read/write are made by the firmware using separate registers that allow
reading, setting or clearing outputs. The value of the output register may be read back as
well as the current state of the port pins. The pads controlled by the Pad Control Block
are summarized in T able 7 0
Table 70. All digital controlled pads
.
Page 81
NXP Semiconductors
UM10858
PN7462 family HW user manual
UM10858
All information provided in this docum ent is subject to legal disclaimers.
In the Hard Power Down mode, all digital pad signals will be masked.
8.6.2 Pad state in absence of PVDD
In absence of PVDD all input and output drivers will be disabled with a gate and all input
signals from the PAD will be clamped.
8.6.3 Selecting host interface
The PN7462 family connects to host through four pads: ATX_A/ATX_B/ATX_C/ATX_D.
There are three protocols by which PN7462 family connects to host through pads:
I2C/high-speed-UART/SPI. The selection of which protocol to connect with is done by
using configuration of PCR_SYS_REG.hif_selection bits in PCR_SYS_REG register
described in Table 75