| 数据搜索系统,热门电子元器件搜索 |
|
ADE7166 数据表(PDF) 137 Page - Analog Devices |
|
|
|||||||||||||||||||||||||||||
ADE7166 数据表(HTML) 137 Page - Analog Devices |
|
137 / 144 page ![]() ADE7566/ADE7569/ADE7166/ADE7169 Rev. A | Page 137 of 144 I/O PORTS Weak Internal Pull-Ups Enabled PARALLEL I/O A pin with weak internal pull-up enabled is used as an input by writing a 1 to the pin. The pin is pulled high by the internal pull- ups, and the pin is read using the circuitry shown in The ADE7566/ADE7569/ADE7166/ADE7169 use three input/output ports to exchange data with external devices. In addition to performing general-purpose I/O, some are capable of driving an LCD or performing alternate functions for the peripherals available on-chip. In general, when a peripheral is enabled, the pins associated with it cannot be used as a general- purpose I/O. The I/O port can be configured through the SFRs in Figure 114. If the pin is driven low externally, it sources current because of the internal pull-ups. A pin with internal pull-up enabled is used as an output by writing a 1 or a 0 to the pin to control the level of the output. If a 0 is written to the pin, it drives a logic low output voltage (VOL) and is capable of sinking 1.6 mA. Table 148. Table 148. I/O Port SFRs Open Drain (Weak Internal Pull-Ups Disabled) SFR Address Bit Addressable Description When the weak internal pull-up on a pin is disabled, the pin becomes open drain. Use this open-drain pin as a high impedance input by writing a 1 to the pin. The pin is read using the circuitry shown in P0 0x80 Yes Port 0 Register. P1 0x90 Yes Port 1 Register. P2 0xA0 Yes Port 2 Register. Figure 114. The open-drain option is preferable for inputs because it draws less current than the internal pull-ups that were enabled. EPCFG 0x9F No Extended Port Configuration. PINMAP0 0xB2 No Port 0 Weak Pull-Up Enable. 38 kHz Modulation PINMAP1 0xB3 No Port 1 Weak Pull-Up Enable. Every ADE7566/ADE7569/ADE7166/ADE7169 provides a 38 kHz modulation signal. The 38 kHz modulation is accomplished by internally XOR’ing the level written to the I/O pin with a 38 kHz square wave. Then, when a 0 is written to the I/O pin, it is modulated as shown in PINMAP2 0xB4 No Port 2 Weak Pull-Up Enable. The three bidirectional I/O ports have internal pull-ups that can be enabled or disabled individually for each pin. The internal pull-ups are enabled by default. Disabling an internal pull-up causes a pin to become open drain. Weak internal pull-ups are configured through the PINMAPx SFRs. Figure 115. 38kHz MODULATION SIGNAL OUTPUT AT MOD38 PIN LEVEL WRITTEN TO MOD38 Figure 114 shows a typical bit latch and I/O buffer for an I/O pin. The bit latch (one bit in each port’s SFR) is represented as a Type D flip-flop, which clocks in a value from the internal bus in response to a write-to-latch signal from the CPU. The Q output of the flip-flop is placed on the internal bus in response to a read latch signal from the CPU. The level of the port pin itself is placed on the internal bus in response to a read pin signal from the CPU. Some instructions that read a port activate the read latch signal, and others activate the read pin signal. See the Figure 115. 38 kHz Modulation Uses for this 38 kHz modulation include IR modulation of a UART transmit signal or a low power signal to drive an LED. The modulation can be enabled or disabled with the MOD38EN bit in the CFG SFR. The 38 kHz modulation is available on eight pins, selected by the MOD38[7:0] bits in the Extended Port Configuration SFR (EPCFG, 0x9F). Read-Modify-Write Instructions section for details. READ LATCH INTERNAL BUS WRITE TO LATCH READ PIN D CL Q LATCH DVDD Px.x PIN INTERNAL PULL-UP ALTERNATE OUTPUT FUNCTION ALTERNATE INPUT FUNCTION Q CLOSED: PINMAPx.x = 0 OPEN: PINMAPx.x = 1 Figure 114. Port 0 Bit Latch and I/O Buffer |
|
链接网址 |
| 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 |