AN202
V1.0 | Page 34/73
www.cmostek.com
4.1.26
EEDAT
(
Addr:0x9A
)
Table 4-49. EEDAT Register
Name
Bit7
Bit6
Bit5
Bit4
Bit3
Bit2
Bit1
Bit0
EEDAT
EEDAT<7:0>
Reset
0x00
Type
RW
4.1.27
EEADR
(
Addr:0x9B
)
Table 4-50. EEADR Register
Name
Bit7
Bit6
Bit5
Bit4
Bit3
Bit2
Bit1
Bit0
EEADR
EEADR<7:0>
Reset
0x00
Type
RW
4.1.28
EECON1
(
Addr:0x9C
)
Table 4-51. EECON1 Register
Name
Bit7
Bit6
Bit5
Bit4
Bit3
Bit2
Bit1
Bit0
EECON1
-
-
WREN3
WREN2
WRERR
WREN1
-
RD
Reset
-
-
0
0
X
0
-
0
Type
-
-
RW
RW
RW
RW
-
W
Table 4-52. EECON1 Bit Function Description
3:0
VR[4:0]
CVref Value Select Control bit
When VRR = 1
,
CVref =
(
VR<4:0>
÷
24
)×
VDD
When VRR = 0
,
CVref =
(
VDD
÷
4
)
+
(
VR<4:0>
÷
32
)×
VDD
Bit
Name
Function
5,4
,2
WREN<
2:0>
EEPROM Write Enable bit
111 = Allow write to the data EEPROM. After the program is completed, each bit will
automatically return to 0.
Other values=Inhibit write to the data EEPROM
3
WRERR
EEPROM Write Error Flag bit
1 = A write operation is prematurely terminated (any /MCLR Reset, any WDT Reset during
EEPROM programming period)
0 = The write operation completed during EEPROM programming period.
0
RD
EEPROM Read Control bit. This bit is written only, reading will always return to 0.
1 = Initiate an EEPROM read cycle
0 = Does not initiate an EEPROM read cycle
Содержание CMT2189C
Страница 32: ...AN202 V1 0 Page 32 73 www cmostek com...