Rtc Driver - Freescale Semiconductor DSP56800E User Manual

Hide thumbs Also See for DSP56800E:
Table of Contents

Advertisement

5.26

RTC Driver

This section describes the API of MC56F800x Real-Timer Counter (RTC) on-chip module. The
functionality of the RTC module itself is described in the 56F800x Peripheral Reference
Manual.
5.26.1
Introduction
The MC56F800x devices have one Real-Time Counter module. The RTC module contains a 8-bit
up counter, a modulo register, and a control register. The modulo and control registers are
read/writable. The counter is read only. The modulo register is loaded with a value to count to and
the pre-scaler is set to determine the counting rate. When enabled, the counter counts up to the
modulo value and sets a flag (and an interrupt request if enabled), then it resets to $00, and
resumes counting.
This section describes the RTC driver software, providing the low level software layer interfacing
hardware with software.
5.26.2
Quick Reference
This section is intended as a source of quick access information, while the details are discussed in
Section 5.26.3.
Module base address
of / for
RTC (RTC_BASE)
5.26.2.1
API Definition
The following header files are needed in order to use the RTC device driver:
Required Header File(s):
#include "qs.h"
#include "rtc.h"
The following information may be found in the header file rtc.h.
Public Data Structure(s):
None
FREESCALE SEMICONDUCTOR
Table 5-925. RTC Module Base Address
MC56F800x
MC56F801x
0xF320
Targeting 56F8xxx Platform
MC56F802x/3x
N/A
N/A
MC56F83xx
N/A
5-1089

Advertisement

Table of Contents
loading

Table of Contents