Programming the RTC
The time-of-day, alarm, and calendar bytes can be written
in either the BCD or binary format (see Table 2).
These steps may be followed to program the time, alarm,
and calendar:
1.
Modify the contents of register B:
a.
Write a 1 to the UTI bit to prevent trans-
fers between RTC bytes and user buffer.
b.
Write the appropriate value to the data for-
mat (DF) bit to select BCD or binary format
for all time, alarm, and calendar bytes.
c.
Write the appropriate value to the hour
format (HF) bit.
2.
Write new values to all the time, alarm, and
calendar locations.
3.
Clear the UTI bit to allow update transfers.
On the next update cycle, the RTC updates all 10 bytes
in the selected format.
Square-Wave Output
The bq4285E/L divides the 32.768kHz oscillator fre-
quency to produce the 1 Hz update frequency for the
clock and calendar. Thirteen taps from the frequency di-
vider are fed to a 16:1 multiplexer circuit. The output of
this mux is fed to the SQW output and periodic inter-
rupt generation circuitry. The four least-significant bits
of register A, RS0–RS3, select among the 13 taps (see
Table 3). The square-wave output is enabled by writing
a 1 to the square-wave enable bit (SQWE) in register B.
A 32.768kHz output may be selected by setting
OSC2–OSC0 in register A to 011 while SQWE=1and
32KE = 1.
5
bq4285E/L
Address
RTC Bytes
Range
Decimal
Binary
Binary-Coded
Decimal
0
Seconds
0–59
00H–3BH
00H–59H
1
Seconds alarm
0–59
00H–3BH
00H–59H
2
Minutes
0–59
00H–3BH
00H–59H
3
Minutes alarm
0–59
00H–3BH
00H–59H
4
Hours, 12-hour format
1–12
01H–OCH AM;
81H–8CH PM
01H–12H AM;
81H–92H PM
Hours, 24-hour format
0–23
00H–17H
00H–23H
5
Hours alarm, 12-hour format
1–12
01H–OCH AM;
81H–8CH PM
01H–12H AM;
81H–92H PM
Hours alarm, 24-hour format
0–23
00H–17H
00H–23H
6
Day of week (1=Sunday)
1–7
01H–07H
7
Day of month
1–31
01H–1FH
01H–31H
8
Month
1–12
01H–0CH
01H–12H
9
Year
0–99
00H–63H
00H–99H
Table 2. Time, Alarm, and Calendar Formats
相关PDF资料
BQ4847YMT IC RTC W/NVSRAM CONTROL T-MOD
BU2280FV-E2 IC CLOCK GEN DVD-VIDEO SSOP-B24
BU2363FV-E2 IC CLOCK GEN DVD-VIDEO SSOP-B16
BU2365FV-E2 IC CLOCK GEN W/VCXO SSOP-B24
BU2505FV-E2 IC DAC 10BIT 10-CHAN SSOP-B20
BU2508FV-E2 IC DAC 10BIT 4-CHAN SSOP14
BU3076HFV-TR IC CLOCK GEN 1CH HVSOF6
CA3338AMZ96 IC DAC 8BIT 50MSPS R-R 16-SOIC
相关代理商/技术参数
BQ4285ES 制造商:未知厂家 制造商全称:未知厂家 功能描述:
BQ4285L 制造商:未知厂家 制造商全称:未知厂家 功能描述:Enhanced RTC With NVRAM Control
BQ4285LP 制造商:TI 制造商全称:Texas Instruments 功能描述:Enhanced RTC With NVRAM Control
BQ4285LQ 制造商:未知厂家 制造商全称:未知厂家 功能描述:
BQ4285LS 制造商:Rochester Electronics LLC 功能描述:- Bulk
BQ4285LSTR 制造商:TI 制造商全称:Texas Instruments 功能描述:Enhanced RTC With NVRAM Control
BQ4285P- 制造商:TI 制造商全称:Texas Instruments 功能描述:Real-Time Clock RTC With NVRAM Control
BQ4285P-SB2 功能描述:实时时钟 RTC IC: 114x8 NVSRAM & NVSRAM Control RoHS:否 制造商:Microchip Technology 功能:Clock, Calendar. Alarm RTC 总线接口:I2C 日期格式:DW:DM:M:Y 时间格式:HH:MM:SS RTC 存储容量:64 B 电源电压-最大:5.5 V 电源电压-最小:1.8 V 最大工作温度:+ 85 C 最小工作温度: 安装风格:Through Hole 封装 / 箱体:PDIP-8 封装:Tube