参数资料
型号: ST6228CN3
厂商: 意法半导体
英文描述: CB 5C 5#16S PIN RECP WALL
中文描述: 8位单片机与微控制器/ D转换器,自动重加载定时器,UART的秘书长办公室,安全复位和28引脚封装
文件页数: 36/84页
文件大小: 561K
代理商: ST6228CN3
36/84
36
ST62T28C/E28C
I/O PORTS
(Cont’d)
4.1.2 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
23. All other transitions are potentially risky and
should be avoided when changing the I/O operat-
ing mode, as itis most likely that undesirable side-
effects willbe experienced, such asspurious inter-
rupt generation or two pins shorted together by the
analog multiplexer.
Single bit instructions (SET, RES, INC and DEC)
should be used with great caution on Ports Data
registers, since theseinstructions make an implicit
read and write back of the entire register. In port
input mode, however, the data registerreads from
the input pins directly, and not from the data regis-
ter latches. Since data registerinformation in input
mode is used to set the characteristics of the input
pin (interrupt, pull-up, analog input), these may be
unintentionally reprogrammed depending on the
state of the input pins.As a general rule, itis better
to limit the use of single bit instructions on data
registers to 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 instructions may then
be used on the RAM copy, after which the whole
copy register can be written to the port data regis-
ter:
SET bit, datacopy
LD a, datacopy
LD DRA, a
Warning:
Care must also be taken to not use in-
structions that act on a whole port register (INC,
DEC, or read operations) when all 8 bits are not
available on the device. Unavailable bits must be
masked by software (AND instruction).
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 input
mode with well-defined logic levels.
The user must take care not to switch outputs with
heavy loads during the conversion of one of the
analog inputs in order to avoid any disturbance to
the conversion.
Figure 23. Diagram showingSafe I/O State Transitions
Note *.
xxx = DDR, OR, DR Bits respectively
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
相关PDF资料
PDF描述
ST6228CN6 ER 5C 5#16S PIN RECP WALL
ST6391 8-BIT HCMOS MCUs FOR TV FREQUENCY SYNTHESIS WITH OSD
ST6392B1 8-BIT HCMOS MCUs FOR TV FREQUENCY SYNTHESIS WITH OSD
ST6393B1 8-BIT HCMOS MCUs FOR TV FREQUENCY SYNTHESIS WITH OSD
ST6395B1 8-BIT HCMOS MCUs FOR TV FREQUENCY SYNTHESIS WITH OSD
相关代理商/技术参数
参数描述
ST6228CN3/XXX 制造商:未知厂家 制造商全称:未知厂家 功能描述:8-Bit Microcontroller
ST6228CN6 制造商:STMICROELECTRONICS 制造商全称:STMicroelectronics 功能描述:8-BIT MCUs WITH A/D CONVERTER, AUTO-RELOAD TIMER, UART, OSG, SAFE RESET AND 28-PIN PACKAGE
ST6228CN6/XXX 制造商:未知厂家 制造商全称:未知厂家 功能描述:8-Bit Microcontroller
ST622X 制造商:STMICROELECTRONICS 制造商全称:STMicroelectronics 功能描述:8/16-Bit Micros
ST622XC-KIT 制造商:未知厂家 制造商全称:未知厂家 功能描述:STARTER KIT DATASHEET FOR ST620X. ST621X AND ST622X