PCD COMMAND LINE COMPILER Custom Computer Services Inc (CCS), PCD COMMAND LINE COMPILER Datasheet - Page 96

PCD C-COMPILER PIC24, DSPIC

PCD COMMAND LINE COMPILER

Manufacturer Part Number
PCD COMMAND LINE COMPILER
Description
PCD C-COMPILER PIC24, DSPIC
Manufacturer
Custom Computer Services Inc (CCS)
Type
Compilerr
Datasheet

Specifications of PCD COMMAND LINE COMPILER

For Use With/related Products
Microchip PIC24/dsPIC®
Lead Free Status / RoHS Status
Not applicable / Not applicable
Other names
429-1007
RTCC
The Real Time Clock and Calendar (RTCC) module is intended for applications where accurate
time must be maintained for extended periods of time with minimum or no intervention from the
CPU. The key features of the module are:
Relevant Functions:
setup_rtc (options, calibration);
rtc_write(rtc_time_t datetime)
rtc_read( rtc_time_t datetime)
setup_rtc_alarm(options, mask, repeat);
rtc_alarm_write( rtc_time_t datetime);
rtc_alarm_read( rtc_time_t datetime);
Relevant Preprocessor:
None
Relevant Interrupts :
#INT_RTC
Relevant Include Files:
None, all functions built-in
Relevant getenv() parameters:
None
Example Code:
setup_rtc(RTC_ENABLE |
RTC_OUTPUT_SECONDS, 0x00);
rtc_write(&datetime);
rtc_read(&datetime);
82
· Time: Hour, Minute and Seconds.
· 24-hour format (Military Time)
· Calendar: Weekday, Date, Month and Year.
· Alarm Configurable.
· Requirements: External 32.768 kHz Clock Crystal.
Enable RTCC module with seconds clock and no
calibration.
Write the value of Date and Time to the RTC module
Reads the value to a structure rtc_time_t.
This will setup the RTCC module for operation and also
allows for calibration setup.
Writes the date and time to the RTCC module.
Reads the current value of Time and Date from the RTCC
module.
Configures the alarm of the RTCC module.
Writes the date and time to the alarm in the RTCC module.
Reads the date and time to the alarm in the RTCC module.
Interrupt on Alarm Event or half alarm frequency.

Related parts for PCD COMMAND LINE COMPILER