Operation Setting Example - Panasonic MN101L Series User Manual

Lsi
Table of Contents

Advertisement

Chapter 11
RTC Time Base Timer (RTC-TBT)
11.3.2

Operation Setting Example

Interrupt of RTC-TBT
128-Hz periodic interrupt by RTC-TBT is generated.
The setup procedure and the description of each step are shown below.
Step
1
Disable all maskable interrupts
Set the interrupt level
2
Set output of RTC-TBT interrupt TBTCNT0
3
Enable output of RTC-TBT
4
interrupt
5
Enable RTC-TBT interrupt
6
Enable the maskable interrupt
* For PERI0ICR and PERI0EN, refer to [Chapter 3 Interrupts].
For PSW, refer to [Chapter 2 CPU].
XI - 10
RTC-TBT Operation
Setting
Symbol
PSW *
PERI0ICR *
TBTCNT0
PERI0EN *
PSW *
Description
Set the MIE bit to "0".
Set the PERI0LV1-0 bits to "00".
Clear the corresponding interrupt request bit of
PERI0DT register, if it may have already been set.
Refer to [Chapter 3 3.1.3 Maskable Interrupt Control
Register Setup].
Set the TBTIRQSEL2-0 bits of TBTCNT0 register to
"000".
Set the TBTIRQEN bit of TBTCN0 register to "1".
Set the PERI0EN3 bit to "1".
Set the MIE bit to "1".

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mn101lr05dMn101lr04dMn101lr03dMn101lr02d

Table of Contents