| 数据搜索系统,热门电子元器件搜索 |
|
ADE5166 数据表(PDF) 144 Page - Analog Devices |
|
|
|||||||||||||||||||||||||||||
ADE5166 数据表(HTML) 144 Page - Analog Devices |
|
144 / 148 page ![]() ADE5166/ADE5169/ADE5566/ADE5569 Preliminary Technical Data Rev. PrB | Page 144 of 148 Table 162. Port 0 Alternate Functions Pin No. Alternate Function Alternate Function Enable P0.0 BCTRL external battery control input Set INT1PROG[2:0] = x01 in the interrupt pins configuration SFR (INTPR, 0xFF). INT1 external interrupt Set EX1 in the Interrupt Enable SFR (IE, 0xA8). INT1 wake-up from PSM2 operating mode Set INT1PROG[2:0] = 11x in the interrupt pins configuration SFR (INTPR, 0xFF). P0.1 FP19 LCD segment pin Set FP19EN in the LCD Segment Enable 2 SFR (LCDSEGE2, 0xED). P0.2 CF1 ADE calibration frequency output Clear the DISCF1 bit in the ADE energy measurement internal MODE1 register (0x0B). P0.3 CF2 ADE calibration frequency output Clear the DISCF2 bit in the ADE energy measurement internal MODE1 register (0x0B). P0.4 MOSI SPI data line Set the SCPS bit in the configuration SFR (CFG, 0xAF) and set the SPIEN bit in SPI Configuration SFR 2 (SPIMOD2, 0xE9). SDATA I2C data line Clear the SCPS bit in the configuration SFR (CFG, 0xAF) and set the I2CEN bit in the I2C mode SFR (I2CMOD, 0xE8). P0.5 MISO SPI data line Set the SCPS bit in the configuration SFR (CFG, 0xAF) and set the SPIEN bit in SPI Configuration SFR 2 (SPIMOD2, 0xE9). Zero Crossing Detection 2 Set the ZX2 bit in the MODE3 energy measurement SFR (MODE3, 0x2B) P0.6 SCLK serial clock for I2C or SPI Set the I2CEN bit in the I2C mode SFR (I2CMOD, 0xE8) or the SPIEN bit in SPI Configuration SFR 2 (SPIMOD2, 0xE9) to enable the I2C or SPI interface. T0 Timer0 input Set the C/T0 bit in the Timer/Counter 0 and Timer/Counter 1 mode SFR (TMOD, 0x89) to enable T0 as an external event counter. P0.7 SS SPI slave select input for SPI in slave mode Set the SS_EN bit in SPI Configuration SFR 1 (SPIMOD1, 0xE8). SS SPI slave select output for SPI in master mode Set the SPIMS_b bit in SPI Configuration SFR 2 (SPIMOD2, 0xE9). T1 Timer 1 input Set the C/T1 bit in the Timer/Counter 0 and Timer/Counter 1 mode SFR (TMOD, 0x89) to enable T1 as an external event counter. RxD2 receiver data input for UART2 Set the REN2 bit in the Serial Communications Control SFR (SCON2, 0xE1). Table 163. Port 1 Alternate Functions Pin No. Alternate Function Alternate Function Enable P1.0 RxD receiver data input for UART Set the REN bit in the serial communications control register SFR (SCON, 0x98). Rx Edge wake-up from PSM2 operating mode Set RXPROG[1:0] = 11 in the peripheral configuration SFR (PERIPH, 0xF4). P1.1 TxD transmitter data output for UART This pin becomes TxD as soon as data is written into SBUF. P1.2 FP25 LCD segment pin Set FP25EN in the LCD segment enable SFR (LCDSEGE, 0x97). Zero-Crossing Detection 1 Set the ZX1 bit in the MODE3 Energy Measurement SFR (MODE3, 0x2B) P1.3 FP24 LCD segment pin Set FP24EN in the LCD segment enable SFR (LCDSEGE, 0x97). T2EX Timer 2 control input Set EXEN2 in the Timer/Counter 2 control SFR (T2CON, 0xC8). P1.4 FP23 LCD segment pin Set FP23EN in the LCD segment enable SFR (LCDSEGE, 0x97). T2 Timer 2 input Set the C/T2 bit in the Timer/Counter 2 control SFR (T2CON, 0xC8) to enable T2 as an external event counter. P1.5 FP22 LCD segment pin Set FP22EN in the LCD segment enable SFR (LCDSEGE, 0x97). P1.6 FP21 LCD segment pin Set FP21EN in the LCD segment enable SFR (LCDSEGE, 0x97). P1.7 FP20 LCD segment pin Set FP20EN in the LCD segment enable SFR (LCDSEGE, 0x97). Table 164. Port 2 Alternate Functions Pin No. Alternate Function Alternate Function Enable P2.0 FP18 LCD segment pin Set FP18EN in the LCD Segment Enable 2 SFR (LCDSEGE2, 0xED). P2.1 FP17 LCD segment pin Set FP17EN in the LCD Segment Enable 2 SFR (LCDSEGE2, 0xED). P2.2 FP16 LCD segment pin Set FP16EN in the LCD Segment Enable 2 SFR (LCDSEGE2, 0xED). P2.3 SDEN serial download pin sampled on reset. P2.3 is an output only. TxD2 transmitter data output for UART2. Enabled by default. This pin becomes TxD2 as soon as data is written into SBUF2. |
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |