On the Epson RX8901CE, EVINMON reports the current logic level of an input, not the level saved when a prior entry was triggered. A pulse recognized as a rising-edge event can fall again before the host reads EVINMON. A low result does not cancel the earlier rising edge. Separate event enable, the event flag and timestamp storage. Epson specifies that setting EVINnF does not depend on writing the data into the buffer, so one observation does not answer all three questions.
Why can a low monitor value coexist with an event flag?
Epson defines the input monitor bits as current high or low. They are not a latched copy of the last triggered event. A separate edge configuration determines which transitions qualify. A source can return to its idle state after the RTC recognizes a pulse. The host may simply observe it after that return.
For example, start from low and generate one high pulse that meets the configured input conditions. Return low before the host reads the monitor. With rising-only detection and the corresponding event interrupt enabled, a historical event flag and a current low may coexist. A low monitor value does not allow relabeling the original event as a falling edge. The fall was a later transition in this example. Document what triggered the event and when you observed the pin.
Four observations answer different questions
| Observation | What it answers | What not to infer |
|---|---|---|
| Channel bit in EVINMON | High or low at inspection | Level at the last event |
| EVINnF | Whether the configured channel event was flagged | An entry was necessarily saved |
| Timestamp record | Time and trigger evidence for a retained entry | The pin is still in that state |
| Source waveform or event sequence | Independent ordering of edges and reads | Exact equivalence with RTC event qualification |
Give each timestamp an entry identity, trigger source and mode. Epson separates EVINnIEN for the event interrupt from EVINnCPEN for capture; EVINnEN enables the input as an event source. Enabling the interrupt without enabling capture for that channel can produce a flag without producing a corresponding timestamp. If other triggers are active, identify the source under the chosen mode instead of assigning every new entry to the input being investigated.
An application may only need to display whether a switch is currently closed. Label that as the polled state and display detected changes separately. Refreshing current state should not clear event history, and an earlier event should not make a display permanently retain an obsolete pin state. They are separate observations with separate lifetimes.
What should you check if there is a flag but no record?
Preserve configuration and the software path before blaming the crystal. Check input enable, selected edge, event interrupt enable and capture enable for the channel. Then check the mode, whether the right record was inspected and whether overwrite or retrieval failure is known. If capture was deliberately disabled, a current status and historical flag can exist without a timestamp. If capture was enabled but the entry is unavailable, inspect the buffer state and raw data for the cause.
Conversely, polling EVINMON may see low at both ends of an interval containing a pulse. Whether the RTC qualifies that pulse depends on input conditions, so seeing a transition in an external trace alone does not prove a record should exist. Acceptance can separately assess whether the wire changed, the RTC recognized the event and the application saved a valid record. Settings and observation windows can make these answers differ.
Reproduce the low state and a rising event on the bench
Generate a recognizable valid pulse under permitted electrical conditions. Select rising-only detection. On one run, read the state while the pulse is high; on another, wait until it returns low. Clear relevant prior flags under the applicable procedure and keep register-read order and a separate waveform. Then repeat while changing only capture enable to verify that notification and storage follow their own conditions. Do not change several fields and retain only a final screenshot.
Record time of the external transition, host observation of the flag, host read of current level and retrieval of the retained entry. Sequential bus transactions do not become a simultaneous snapshot. A late read need not change the captured time into the read time; verify the retained record independently instead of inferring physical order from console output. If validating edges very close to the read cycle, characterize sampling uncertainty separately.
Test a held-high signal and a pulse that returns low. Both can create a rising-edge event, but the monitor observations can differ. If the product must display the physical switch position, the difference should be visible. If it must report that a switch action occurred, both runs should preserve the corresponding event. Sign off those requirements separately.
For a handover, map the waveform and interface status to the same channel. Several inputs may change, while event handling remains source-specific. Do not retain just a monitor byte without the mapping to physical inputs, or use a neighboring waveform to explain a notification. An identified stimulus, configuration snapshot and readback are much more reproducible than an isolated high or low.
Common questions
Does EVINMON low rule out an earlier rising edge?
No. It shows the monitored state when read. A qualifying pulse can generate a rising edge and then fall. Use the configured event flag, retained entry or independent waveform to check history.
Can I log the current level as the level that caused the interrupt?
Do not do so automatically. The interrupt reports a configured event; it does not turn a later current-level read into a historical sample. Use the retained trigger evidence or a validated external acquisition when event history is needed.
