668-0003-C Rabbit Semiconductor, 668-0003-C Datasheet - Page 179

no-image

668-0003-C

Manufacturer Part Number
668-0003-C
Description
IC CPU RABBIT2000 30MHZ 100PQFP
Manufacturer
Rabbit Semiconductor
Datasheet

Specifications of 668-0003-C

Rohs Status
RoHS non-compliant
Processor Type
Rabbit 2000 8-Bit
Speed
30MHz
Voltage
2.7V, 3V, 3.3V, 5V
Mounting Type
Surface Mount
Package / Case
100-MQFP, 100-PQFP
Features
-
Other names
316-1004
668-0003

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
668-0003-C
Manufacturer:
Rabbit Semiconductor
Quantity:
10 000
Two library functions are provided to read and write the real-time clock:
However, it is not intended that the real-time clock be read and written frequently. The
procedure to read it is lengthy and has an uncertain execution time. The procedure for
writing the clock is even more complicated. Instead, Dynamic C software maintains a long
variable
when the Virtual Driver starts, and updated every second by the periodic interrupt. It may
be read or written directly by the user’s programs. Since
same oscillator as the real-time clock there is no relative gain or loss of time between the
two. A millisecond timer variable,
Two utility routines are provided that can be used to convert times between the traditional
format (10-Jan-2000 17:34:12) and the seconds since 1-Jan-1980 format.
The format of the structure used is the following
The day of the week is not used to compute the long seconds, but it is generated when
computing from long seconds to the structure. A utility program,
able to set the date and time in the real-time clock from the Dynamic C
Chapter 17 Other Rabbit Software
unsigned long int read_rtc(void)
void write_rtc(unsigned long int time) ; // write bits 15-46
// note: bits 0-14 and bit 47 are zeroed
// converts time structure to seconds
unsigned long mktime(struct tm *timeptr);
// seconds to structure
unsigned int mktm(struct tm *timeptr, unsigned long time);
struct tm {
char tm_sec;
char tm_min;
char tm_hour;
char tm_mday;
char tm_mon;
char tm_year;
char tm_wday;
};
SEC_TIMER
in memory.
SEC_TIMER
// seconds 0-59
// 0-59
// 0-59
// 1-31
// 1-12
// 00-150 (1900-2050)
// 0-6 0==sunday
MS_TIMER
, is also maintained by the Virtual Driver.
is synchronized with the real-time clock
; // read bits 15-46 rtc
SEC_TIMER
setclock.c
is driven by the
STDIO
, is avail-
console.
173

Related parts for 668-0003-C