![NXP Semiconductors LPC43Sxx Скачать руководство пользователя страница 1111](http://html1.mh-extra.com/html/nxp-semiconductors/lpc43sxx/lpc43sxx_user-manual_17218271111.webp)
UM10503
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2015. All rights reserved.
User manual
Rev. 2.1 — 10 December 2015
1111 of 1441
NXP Semiconductors
UM10503
Chapter 39: LPC43xx/LPC43Sxx Event monitor/recorder
The CPU may at any time check the ERSTATUS register for events. If, for instance the
EV0 bit is set, the corresponding ERFIRSTSTAMP0 and ERLASTSTAMP0 registers
contain valid timestamps. The ERCOUNTER0 will also contain a valid count of the total
number of events on channel 0 (up to a maximum of seven).
Once the (private) timestamps have been read, the CPU can clear the ERSTATUS.EVx
bits by writing a 1 to it.
The CPU should ignore the timestamp registers if the ERSTATUS.EVx bit is cleared.
There is no mechanism to clear or invalidate the timestamps after the event flag in the
status register has been cleared. The timestamp registers will keep their old values until a
new qualified event updates them. Such a qualified event will set the ERSTATUS.EVx bit
and inform the CPU that the timestamp registers contain new values.
An event channel can be qualified as a wake-up trigger signal by setting the
INTWAKE_ENAx bit in the ERCONTROL register. An event in that channel will then wake
up the device from a power saving mode.
Fig 126. Event Monitor/Recorder block diagram
WAKEUP0
WAKEUP1
WAKEUP2
Timestamp value
doy:h:m:s
To wakeup/interrupt
Control
Block
ERCONTROL
ERSTATUS
RTC
ERFIRSTSTAMP0
ERLASTSTAMP 0
ERFIRSTSTAMP1
ERLASTSTAMP 1
ERFIRSTSTAMP2
ERLASTSTAMP 2