18.11.2014 Views

The Microcontroller Idea Book - Jan Axelson's Lakeview Research

The Microcontroller Idea Book - Jan Axelson's Lakeview Research

The Microcontroller Idea Book - Jan Axelson's Lakeview Research

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Clocks and Calendars<br />

Table 10-1. Register functions for the DS1286 Watchdog Timekeeper<br />

Register Function Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0<br />

0 Clock 0.1 seconds 0.01 seconds<br />

1 0 10 seconds seconds<br />

2 0 10 minutes minutes<br />

3 Alarm MASK 10 minutes alarm minutes alarm<br />

4 Clock 0 12/24 10hr or 10hr hours<br />

AM/PM<br />

5 Alarm MASK 12/24 10hr or 10hr hour alarm<br />

AM/PM<br />

6 Calendar 0 0 0 0 0 days<br />

7 Alarm MASK 0 0 0 0 day alarm<br />

8 Calendar, 0 0 10 date date<br />

9<br />

Oscillator<br />

EOSC ESQW 0 10 mo months<br />

A 10 years years<br />

B Command TE IPSW IBH/LO PU/LVL WAM TDM WAF TDF<br />

C Watchdog 0.1 seconds 0.01 seconds<br />

D 10 seconds seconds<br />

E-3F User free for any use<br />

Time of Day Alarm Mask Bits<br />

Minutes Hours Day Alarm Frequency<br />

1 1 1 Once per minute<br />

0 1 1 When minutes match<br />

0 0 1 When hours and minutes match<br />

0 0 0 When hours, minutes, and days match<br />

Symbol Function Symbol Function<br />

EOSC Enable Oscillator PU/LVL Pulse/Level Triggered Interrupts<br />

ESQW Enable Square Wave Out WAM Watchdog Alarm Mask<br />

TE Transfer Enable TDM Time-of-day Mask<br />

IPSW Interrupt Switch WAF Watchdog Alarm Flag<br />

IBH/LO Interrupt B High/Low Trigger TDF Time-of-day Flag<br />

<strong>The</strong> <strong>Microcontroller</strong> <strong>Idea</strong> <strong>Book</strong> 177

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!