参数资料
型号: ST62P00CB3/XXX
厂商: STMICROELECTRONICS
元件分类: 微控制器/微处理器
英文描述: 8-BIT, MROM, 8 MHz, MICROCONTROLLER, PDIP16
封装: 0.300 INCH, PLASTIC, DIP-16
文件页数: 33/100页
文件大小: 1713K
代理商: ST62P00CB3/XXX
ST6200C ST6201C ST6203C
38/100
I/O PORTS (Cont’d)
7.2.5 Instructions NOT to be used to access
Port Data registers (SET, RES, INC and DEC)
DO NOT USE READ-MODIFY-WRITE INSTRUC-
TIONS (SET, RES, INC and DEC) ON PORT
DATA REGISTERS IF ANY PIN OF THE PORT IS
CONFIGURED IN INPUT MODE.
These instructions make an implicit read and write
back of the entire register. In port input mode,
however, the data register reads from the input
pins directly, and not from the data register latch-
es. Since data register information in input mode is
used to set the characteristics of the input pin (in-
terrupt, pull-up, analog input), these may be unin-
tentionally reprogrammed depending on the state
of the input pins.
As a general rule, it is better to only use single bit
instructions on data registers when the whole (8-
bit) port is in output mode. In the case of inputs or
of mixed inputs and outputs, it is advisable to keep
a copy of the data register in RAM. Single bit in-
structions may then be used on the RAM copy, af-
ter which the whole copy register can be written to
the port data register:
SET bit, datacopy
LD a, datacopy
LD DRA, a
7.2.6 Recommendations
1. Safe I/O State Switching Sequence
Switching the I/O ports from one state to another
should be done in a sequence which ensures that
no unwanted side effects can occur. The recom-
mended safe transitions are illustrated in Figure 24
The Interrupt Pull-up to Input Analog transition
(and vice-vesra) is potentially risky and should be
avoided when changing the I/O operating mode.
2. Handling Unused Port Bits
On ports that have less than 8 external pins con-
nected:
– Leave the unbonded pins in reset state and do
not change their configuration.
– Do not use instructions that act on a whole port
register (INC, DEC, or read operations). Unavail-
able bits must be masked by software (AND in-
struction). Thus, when a read operation
performed on an incomplete port is followed by a
comparison, use a mask.
3. High Impedance Input
On any CMOS device, it is not recommended to
connect high impedance on input pins. The choice
of these impedance has to be done with respect to
the maximum leakage current defined in the da-
tasheet. The risk is to be close or out of specifica-
tion on the input levels applied to the device.
7.3 LOW POWER MODES
The WAIT and STOP instructions allow the
ST62xx to be used in situations where low power
consumption is needed. The lowest power con-
sumption is achieved by configuring I/Os in output
push-pull low mode.
7.4 INTERRUPTS
The external interrupt event generates an interrupt
if the corresponding configuration is selected with
DDR, DR and OR registers (see Table 8) and the
GEN-bit in the IOR register is set.
Figure 24. Diagram showing Safe I/O State Transitions
Note *. xxx = DDR, OR, DR Bits respectively
Mode
Description
WAIT
No effect on I/O ports. External interrupts
cause the device to exit from WAIT mode.
STOP
No effect on I/O ports. External interrupts
cause the device to exit from STOP mode.
Interrupt
pull-up
Output
Open Drain
Output
Push-pull
Input
pull-up (Reset
state)
Input
Analog
Output
Open Drain
Output
Push-pull
Input
010*
000
100
110
011
001
101
111
1
相关PDF资料
PDF描述
ST62T00CM6 8-BIT, OTPROM, 8 MHz, MICROCONTROLLER, PDSO16
ST62T00CM1 8-BIT, OTPROM, 8 MHz, MICROCONTROLLER, PDSO16
ST62T00CN1 8-BIT, OTPROM, 8 MHz, MICROCONTROLLER, PDSO16
ST62T00CN6 8-BIT, OTPROM, 8 MHz, MICROCONTROLLER, PDSO16
ST62T01CB3 8-BIT, OTPROM, 8 MHz, MICROCONTROLLER, PDIP16
相关代理商/技术参数
参数描述
ST62P03CM1/MAM 制造商:STMicroelectronics 功能描述:
ST62P08CM6/MHH/TR 制造商:STMicroelectronics 功能描述:
ST62P08CM6/RCFTR 制造商:STMicroelectronics 功能描述:
ST62P09CM1/REXTR 制造商:STMicroelectronics 功能描述:
ST62P10CM6/FBS 制造商:STMicroelectronics 功能描述: