MFRC52201HN1/TRAYB NXP [NXP Semiconductors], MFRC52201HN1/TRAYB Datasheet - Page 29

no-image

MFRC52201HN1/TRAYB

Manufacturer Part Number
MFRC52201HN1/TRAYB
Description
Contactless reader IC
Manufacturer
NXP [NXP Semiconductors]
Datasheet
NXP Semiconductors
MFRC522_33
Product data sheet
PUBLIC
8.5 Timer unit
The ComIrqReg register’s ErrIRq bit indicates an error detected by the contactless UART
during send or receive. This is indicated when any bit is set to logic 1 in register ErrorReg.
Table 18.
The MFRC522A has a timer unit which the external host can use to manage timing tasks.
The timer unit can be used in one of the following timer/counter configurations:
The timer unit can be used to measure the time interval between two events or to indicate
that a specific event occurred after a specific time. The timer can be triggered by events
explained in the paragraphs below. The timer does not influence any internal events, for
example, a time-out during data reception does not automatically influence the reception
process. Furthermore, several timer-related bits can be used to generate an interrupt.
The timer has an input clock of 6.78 MHz derived from the 27.12 MHz quartz crystal
oscillator. The timer consists of two stages: prescaler and counter.
The prescaler (TPrescaler) is a 12-bit counter. The reload values (TReloadVal_Hi[7:0] and
TReloadVal_Lo[7:0]) for TPrescaler can be set between 0 and 4095 in the TModeReg
register’s TPrescaler_Hi[3:0] bits and TPrescalerReg register’s TPrescaler_Lo[7:0] bits.
The reload value for the counter is defined by 16 bits between 0 and 65535 in the
TReloadReg register.
The current value of the timer is indicated in the TCounterValReg register.
When the counter reaches 0, an interrupt is automatically generated, indicated by the
ComIrqReg register’s TimerIRq bit setting. If enabled, this event can be indicated on
pin IRQ. The TimerIRq bit can be set and reset by the host. Depending on the
configuration, the timer will stop at 0 or restart with the value set in the TReloadReg
register.
The timer status is indicated by the Status1Reg register’s TRunning bit.
Interrupt flag
TimerIRq
TxIRq
CRCIRq
RxIRq
IdleIRq
HiAlertIRq
LoAlertIRq
ErrIRq
Timeout counter
Watchdog counter
Stop watch
Programmable one shot
Periodical trigger
Interrupt sources
Interrupt source
timer unit
transmitter
CRC coprocessor
receiver
ComIrqReg register
FIFO buffer
FIFO buffer
contactless UART
Rev. 3 — 26 October 2009
112133
Trigger action
the timer counts from 1 to 0
a transmitted data stream ends
all data from the FIFO buffer has been processed
a received data stream ends
command execution finishes
the FIFO buffer is almost full
the FIFO buffer is almost empty
an error is detected
Contactless reader IC
MFRC522
© NXP B.V. 2009. All rights reserved.
29 of 96

Related parts for MFRC52201HN1/TRAYB