EasyManuals Logo

Atmel AVR XMEGA AU series User Manual

Atmel AVR XMEGA AU series
512 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #223 background imageLoading...
Page #223 background image
223
8331B–AVR–03/12
Atmel AVR XMEGA AU
18.3.4 INTFLAGS Interrupt Flag register
Bit 7:2 – Reserved
These bits are unused and reserved for future use. For compatibility with future devices, always
write these bits to zero when this register is written.
Bit 1 – COMPIF: Compare Match Interrupt Flag
This flag is set on the next count after a compare match condition occurs. It is cleared automati-
cally when the RTC compare match interrupt vector is executed. The flag can also be cleared by
writing a one to its bit location.
Bit 0 – OVFIF: Overflow Interrupt Flag
This flag is set on the next count after an overflow condition occurs. It is cleared automatically
when the RTC overflow interrupt vector is executed. The flag can also be cleared by writing a
one to its bit location.
18.3.5 TEMP – Temporary Register
Bit 7:0 – TEMP[7:0]: Real-Time Counter Temporary Register
This register is used for 16-bit access to the counter value, compare value, and TOP value reg-
isters. The low byte of the 16-bit register is stored here when it is written by the CPU. The high
byte of the 16-bit register is stored when the low byte is read by the CPU. For more details, refer
to ”Accessing 16-bit Registers” on page 13.
18.3.6 CNTL – Counter Register Low
The CNTH and CNTL register pair represents the 16-bit value, CNT. CNT counts positive clock
edges on the prescaled RTC clock. Reading and writing 16-bit values requires special attention.
Refer to ”Accessing 16-bit Registers” on page 13 for details.
Due to synchronization between the RTC clock and system clock domains, there is a latency of
two RTC clock cycles from updating the register until this has an effect. Application software
needs to check that the SYNCBUSY flag in the ”STATUS – Status register” on page 222 is
cleared before writing to this register.
Bit 76543210
+0x03 COMPIF OVFIF INTFLAGS
Read/WriteRRRRRRR/WR/W
Initial Value00000000
Bit 76543210
+0x04 TEMP[7:0] TEMP
Read/Write R/W R/W R/W R/W R/W R/W R/W R/W
Initial Value00000000
Bit 76543210
+0x08 CNT[7:0] CNTL
Read/Write R/W R/W R/W R/W R/W R/W R/W R/W
Initial Value 0 0 0 0 0 0 0 0

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Atmel AVR XMEGA AU series and is the answer not in the manual?

Atmel AVR XMEGA AU series Specifications

General IconGeneral
BrandAtmel
ModelAVR XMEGA AU series
CategoryMicrocontrollers
LanguageEnglish

Related product manuals