534
CY8C28xxx PSoC Programmable System-on-Chip TRM, Document No. 001-52594 Rev. *G
Real Time Clock (RTC)
34.1.4
General Timer
As shown in
, there are two clock sources for
counter65536. When VC1 is selected as the clock source,
the RTC can be used as a general timer based on VC1 clock
period. When used as a general timer, the programmed time
period can be from
(65536*VC1)
to
(24*60*60)*(65536*VC1)
by setting different start values of RTC_H, RTC_M, and
RTC_S.
34.2
Register Definitions
The following registers are associated with the real-time clock and are listed in address order within their system resource
configuration. For a complete table of the real-time clock registers, refer to the
“Summary Table of the System Resource Reg-
. Each register description has an associated register table showing the bit structure for that register. Reg-
ister bits that are grayed out throughout this document are reserved bits and are not detailed in the register descriptions that
follow. Reserved bits should always be written with a value of ‘0’.
34.2.1
RTC_H
This register is used to read and write the current hour value
in BCD format. Writing to this register will reset count65536
to all zeros. (Will be displayed as “XY”; the legal range is
from 00 to 23.)
Bits 5 and 4.
X value of hour
Bits 3 to 0.
Y value of hour
34.2.2
RTC_M
This register is used to read and write the current minute
value in BCD format. Writing to this register will reset
count65536 to all zeros. (Will be displayed as “XY”; the legal
range is from 00 to 59.)
Bits 6 to 4.
X value of minute
Bits 3 to 0.
Y value of minute
34.2.3
RTC_S
This register is used to read and write the current second
value in BCD format. Writing to this register will reset
count65536 to all zeros. (Will be displayed as “XY”; the legal
range is from 00 to 59.)
Bits 6 to 4.
X value of second
Bits 3 to 0.
Y value of second
Address
Name
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Access
1,A4h
HR1[1:0]
HR0[3:0]
R : 00
Address
Name
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Access
1,A5h
MIN1[2:0]
MIN0[3:0]
R : 00
Address
Name
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Access
1,A6h
SEC[2:0]
SEC[3:0]
RW : 00
Summary of Contents for CY8C28 series
Page 65: ...64 CY8C28xxx PSoC Programmable System on Chip TRM Document No 001 52594 Rev G RAM Paging ...
Page 125: ...124 CY8C28xxx PSoC Programmable System on Chip TRM Document No 001 52594 Rev G ...
Page 311: ...310 CY8C28xxx PSoC Programmable System on Chip TRM Document No 001 52594 Rev G IDAC_CR0 1 FDh ...
Page 317: ...316 CY8C28xxx PSoC Programmable System on Chip TRM Document No 001 52594 Rev G ...
Page 393: ...392 CY8C28xxx PSoC Programmable System on Chip TRM Document No 001 52594 Rev G ...
Page 477: ...476 CY8C28xxx PSoC Programmable System on Chip TRM Document No 001 52594 Rev G Digital Clocks ...
Page 561: ...560 CY8C28xxx PSoC Programmable System on Chip TRM Document No 001 52594 Rev G ...