ade7169f16 Analog Devices, Inc., ade7169f16 Datasheet - Page 136

no-image

ade7169f16

Manufacturer Part Number
ade7169f16
Description
Single-phase Energy Measurement Ic With 8052 Mcu, Rtc And Lcd Driver
Manufacturer
Analog Devices, Inc.
Datasheet
ADE7169F16
Bit Location
7
6
5
4
3
2
1
0
Table 139. Port 1 SFR (P1, 0x90)
Note: When an alternate function is chosen for a pin of this port, the bit controlling this pin should always be set
Bit Location
7
6
5
4
3
2
1
0
Table 140. Port 2 SFR (P2, 0xA0)
Note: When an alternate function is chosen for a pin of this port, the bit controlling this pin should always be set
Bit Location
7 - 2
1
0
Table 141. Port 0 Alternate Functions
Pin
No.
P0.0
P0.1
P0.2
P0.3
P0.4
Alternate Function
BCTRL external battery control input
INT1 external interrupt
INT1 wakeup from PSM2 operating mode
FP19 LCD Segment Pin
CF1 ADE Calibration Frequency output
CF2 ADE Calibration Frequency output
MOSI SPI Data line
SDATA I
Bit
Addr.
0x87
0x86
0x85
0x84
0x83
0x82
0x81
0x80
Bit
Addr.
0x97
0x96
0x95
0x94
0x93
0x92
0x91
0x90
Bit
Addr.
0x97 –
0x92
0x91
0x90
2
C Data line
Bit
Name
T1
T0
CF2
CF1
INT1
Bit
Name
T2
T2EX
TxD
RxD
Bit
Name
P2.1
P2.0
Default
Value
1
1
1
1
1
1
1
1
Default
Value
0x3F
1
1
Default
value
1
1
1
1
1
1
1
1
Description
This bit reflects the state of P0.7/SS/T1 pin. It can be written or read.
This bit reflects the state of P0.6/SCLK/T0 pin. It can be written or read.
This bit reflects the state of P0.5/MISO pin. It can be written or read.
This bit reflects the state of P0.4/MOSI/SDATA pin. It can be written or read.
This bit reflects the state of P0.3/CF2 pin. It can be written or read.
This bit reflects the state of P0.2/CF1 pin. It can be written or read.
This bit reflects the state of P0.1 pin. It can be written or read.
This bit reflects the state of P0.0/INT1/BCTRL pin. It can be written or read.
Description
This bit reflects the state of P1.7 pin. It can be written or read.
This bit reflects the state of P1.6 pin. It can be written or read.
This bit reflects the state of P1.5 pin. It can be written or read.
This bit reflects the state of P1.4/T2 pin. It can be written or read.
This bit reflects the state of P1.3/T2EX pin. It can be written or read.
This bit reflects the state of P1.2 pin. It can be written or read.
This bit reflects the state of P1.1/TxD pin. It can be written or read.
This bit reflects the state of P1.0/RxD pin. It can be written or read.
Description
These bits are unused and should be left set
This bit reflects the state of P2.1 pin. It can be written or read.
This bit reflects the state of P2.0 pin. It can be written or read.
Rev. PrD | Page 136 of 140
Alternate Function Enable
Set INT1PROG[2:0]=X01 in the Interrupt pins configuration
SFR (INTPR, 0xFF)
Set EX1 in the Interrupt Enable SFR (IE, 0xA8).
Set INT1PROG[2:0]=11X in the Interrupt pins configuration
SFR (INTPR, 0xFF)
Set FP19EN in the LCD Segment Enable 2 SFR (LCDSEGE2,
0xED)
Clear the DISCF1 bit in the ADE energy measurement
internal MODE1 register (0x0B)
Clear the DISCF2 bit in the ADE energy measurement
internal MODE1 register (0x0B)
Set the SCPS bit in the CFG SFR and set the SPIEN bit in the
SPI Configuration Register SFR (SPIMOD1, 0xE8).
Clear the SCPS bit in the Configuration SFR (CFG, 0xAF) and
set the I2CEN bit in the I2C Mode Register SFR (I2CMOD,
0xE8).
Preliminary Technical Data

Related parts for ade7169f16