Datasheet

Table Of Contents
PN532_C1 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2017. All rights reserved.
Product data sheet
COMPANY PUBLIC
Rev. 3.6 — 28 November 2017
115436 28 of 222
NXP Semiconductors
PN532/C1
Near Field Communication (NFC) controller
Each increment or decrement of Timer2 occurs in state S1 except when in baud rate
generation mode and configured as a counter. In this mode, Timer2 increments on each
clock cycle. When configured as a timer, Timer2 is incremented every machine cycle.
Since a machine cycle consists of 6 clock periods, the count rate is 1/6 of the CPU clock
frequency.
8.1.7.2 T2CON register
The register is used to control Timer2 and report its status.
Table 35. Timer2 T2CON register (SFR address C8h) bit allocation
Bit 7 6 5 4 3 2 1 0
Symbol TF2 - RCLK0 TCLK0 - TR2 C/T2 -
Reset 00000000
Access R R/W R/W R/W R/W R/W R/W R/W
Table 36. Description of T2CON bits
Bit Symbol Description
7TF2 Timer2 overflow
Set to logic 1 by a Timer2 overflow.
Set to logic 0 by firmware. TF2 is not set when in baud rate generation mode.
The bit IE0_5 of register IE0 (see Table 11 on page 17
) has to be set to logic
1 to enable the corresponding CPU interrupt.
6 - Reserved.
5 RCLK0 Timer2 Debug UART Receive Clock selector. Set by firmware only.
When set to logic 1, Debug UART uses Timer2 overflow pulses.
When set to logic 0, Debug UART uses overflow pulses from another source
(e.g. Timer1 in a standard configuration).
4TCLK0Timer2 Debug UART Transmit Clock selector. Set by firmware only.
When set to logic 1, Debug UART uses Timer2 overflow pulses.
When set to logic 0, Debug UART uses overflow pulses from another source
(e.g. Timer1 in a standard configuration).
3 - Reserved.
2TR2 Timer2 Run control. Set by firmware only.
When set to logic 1, Timer2 is started.
When set to logic 0, Timer2 is stopped.
1C/T2 Timer2 Counter/Timer selector. Set by firmware only.
When set to logic 1, Timer2 is set to counter operation.
When set to logic0, Timer2 is set to timer operation.
0- Reserved. This bit must be set to logic 0 by firmware.