The Epson RA8000CE can run its binary seconds and BCD calendar counters separately or together. An advancing binary reading does not prove that calendar alarms and time-update interrupts are available. Epson requires the BCD counter for both functions. ACCBCD in CNTSEL selects which counter the shared buffer accesses; it does not enable calendar counting. If an application needs binary reporting and calendar wakeup, initialize both paths and verify alarm behavior separately.
Which bit selects access, and which ones enable counting?
BCD counters maintain calendar fields from years to seconds. The BIN counter accumulates seconds from an application epoch. Their data share a clocking buffer, with ACCBCD selecting the counter view for access. BINCNTEN and BCDCNTEN independently control whether the respective counters operate. A host accessing BIN can still have a running BCD calendar for alarms. A running BIN counter alone cannot supply a calendar interrupt.
Some software names the selected view “operating mode.” Replacing the entire CNTSEL value to add binary reads can disable an existing calendar path. Conversely, selecting the BCD view does not initialize a calendar that was not running. Keep access selection and counter enables independently reviewable rather than hiding them in a single broad setting.
Check four separate items
| Field or path | Epson function | What to verify |
|---|---|---|
| ACCBCD | Select access to BCD or BIN | Preserve both counter enables when switching |
| BINCNTEN | Enable the BIN counter | Observe binary seconds advancing |
| BCDCNTEN | Enable BCD calendar counters | Check the calendar path used by alarms |
| Event flags and interrupt output | Governed by separate alarm and update settings | Check flags and pin behavior, not merely time readback |
Considering the three CNTSEL fields alone, 02h selects BIN access with BIN enabled and BCD disabled; 03h selects BIN access with both running; 07h selects BCD access with both running. These illustrate the bit roles, not complete initialization instructions. Rewriting a value on a running board does not show that both time representations are valid. Epson's read procedures preserve counter enable settings when selecting a view.
For example, changing a whole byte to 02h to read binary time on a dual-counter system changes more than the view. It also changes an enable. Review the actual register write instead of the software comment. Retain previous and new values so an engineer need not infer enable state from a screen.
A correct binary count does not clear alarm requirements
Epson says the time-update function cannot operate normally with BCD disabled, and its alarm description also requires BCDCNTEN=1. Turning on calendar counting only meets one requirement. Initialize calendar values, comparison conditions and interrupt settings and handle the relevant flags. When wakeup fails, distinguish whether the RTC set a flag, whether the notification pin changed and whether the host handled it. A plausible binary value does not show a pin fault.
Similarly, a working calendar alarm does not initialize the binary counter to the host's epoch. Counters can run together but require appropriate initial values. Switching buffer access is not conversion or synchronization. For a product with a legacy calendar interface and a new reporting protocol, verify the paths independently and document their shared time reference and allowed difference if they must agree.
Reproduce advancing seconds and a silent alarm
Use an isolated board that can be initialized again. First run BIN only and observe that two separated binary reads advance. This shows counter operation, not alarm operation. Then follow Epson's dual-counter initialization and establish a valid calendar and observable alarm condition. Read BIN, BCD and alarm state separately. Document changes to interrupt permissions or wiring instead of using one final pass to cover the previous configuration.
For concurrent host tasks, check that selecting a view and retrieving its data form one controlled operation. If tasks race to change ACCBCD, one may interpret the other counter's fields. Preserve raw registers, view and access order before describing a clock fault. Do not stop the counters merely to read time; Epson warns this increases time error.
Leave a reusable test record showing counter enables, view switching and the alarm or update event actually observed. Agreement at one instant only supports that initialization and read. Verify both paths again after representative reset or synchronization. If the product deliberately runs BIN only, document the excluded calendar interrupts so support staff do not treat that expectation as a failure.
Keep other timer sources unchanged during the BIN-only control. Otherwise a wakeup does not identify its cause. In the dual-counter run, interleave both read tasks and record the expected calendar match and the observed event. Where the host normally sleeps, check flags with the host awake first, then test actual sleep exit separately. The first isolates the device configuration; the second validates integration. Repeat a known event after new firmware, restart or synchronization so factory tests cover more than an apparently correct display. Later, support can distinguish a disabled calendar, an unmet compare condition, lack of pin notification and a host reaction problem. If the interrupt line is shared, use the status registers to separate calendar alarm and time update instead of treating any low level as proof that the intended event occurred.
Common questions
Does selecting BIN access stop an already running BCD calendar?
Not by itself. Preserve BCDCNTEN and BINCNTEN when changing ACCBCD. An accidental whole-register write can change an enable, so check the actual byte.
Does enabling BCDCNTEN immediately restore a scheduled alarm?
Not necessarily. Check calendar values, compare conditions, interrupt permissions and initialization. BCD enable is necessary for the alarm, not sufficient acceptance evidence.
