
411
CHAPTER 20 CALENDAR MACROS
20.3 Calendar Macro Operation
This section describes the reset of calendar macros for initialization and explains how
to set and read calendar values.
■
Initialization reset
Only the CAC and CAS registers can be initialized by a normal reset (CPU reset signal, such as
reset by TST pin).
To initialize the calendar circuit, the control system must be reset by setting the CAC register to
80H in a writing operation. CA1-7 and the counter are not reset in this case.
■
Setting calendar values
Before setting a calendar value, Write mode (CAC register MD1 = 1, CAC register MD0 = 0)
must be selected.
Because the counter continues to run in Write mode, the contents of the counter cannot be
written directly.
After setting the contents of the registers (CA1-7), control returns to normal mode (CAC register
D2 = 0). In this case, the register value for a normal return is loaded into the counter, which
continues to run.
Notes:
•
The counter continues to run during Write operation. Counting stops only when data is
written to the CA1 register. When data is written to CA1, the counter starts from 0 when
control returns to normal mode.
•
When the power fails in Write mode or during the four CPU cycles after Write mode ends,
the data may become invalid.
•
A wait period of one CPU cycle is required to enter Write mode again after Write mode has
been released.
•
Do not write values into the registers CA1 to 7 that would exceed the respective maximum
count value.
■
Reading calendar values
Before reading any calendar value, select Read mode (CAC register MD1 = 0, CAC register
MD0 = 1).
When Read mode is selected, the current counter value is loaded into the respective internal
register (CA1-7) and remains fixed.
Because the contents of the internal registers will be read back later on, the counter continues
to run.
Note:
Unless a time of at least 35
µ
s is provided from when Read mode ends until Read mode is
entered the next time, the values to be read might not have changed.
Содержание MB91150 Series
Страница 1: ......
Страница 2: ......
Страница 3: ...FUJITSU LIMITED FR30 32 BIT MICROCONTROLLER MB91150 Series HARDWARE MANUAL ...
Страница 4: ......
Страница 10: ...vi ...
Страница 112: ...96 CHAPTER 3 MEMORY SPACE CPU AND CONTROL UNIT ...
Страница 174: ...158 CHAPTER 5 I O PORTS Note DDRI bit 6 is a test bit Always set the bit to 0 The value read from this bit is always 0 ...
Страница 178: ...162 CHAPTER 5 I O PORTS ...
Страница 214: ...198 CHAPTER 7 16 BIT RELOAD TIMER ...
Страница 240: ...224 CHAPTER 8 PPG TIMER ...
Страница 310: ...294 CHAPTER 13 8 10 BIT A D CONVERTER ...
Страница 318: ...302 CHAPTER 14 8 BIT D A CONVERTER ...
Страница 362: ...346 CHAPTER 15 UART ...
Страница 420: ...404 CHAPTER 19 PERIPHERAL STOP CONTROL ...
Страница 428: ...412 CHAPTER 20 CALENDAR MACROS ...
Страница 503: ...487 INDEX INDEX The index follows on the next page This is listed in alphabetic order ...
Страница 510: ...494 INDEX ...
Страница 512: ......