参数资料
型号: ST72652C4T1/XXX
厂商: STMICROELECTRONICS
元件分类: 微控制器/微处理器
英文描述: 8-BIT, MROM, MICROCONTROLLER, PQFP48
封装: 7 X 7 MM, ROHS COMPLIANT, TQFP-48
文件页数: 106/161页
文件大小: 2656K
代理商: ST72652C4T1/XXX
ST72651AR6
49/161
Doc ID 7215 Rev 4
I/O PORTS (Cont’d)
9.2.5 Bit manipulation on Open Drain Outputs
As mentioned in Section 9.2.2, software should
avoid using bit manipulation instructions on the DR
register in open drain output mode, but must al-
ways access it using byte instructions. If bit manip-
ulation is needed, the solution is to use a copy of
the DR register in RAM, change the bits (using
BRES or BCLR instructions for example) and copy
the whole byte into the DR register each time the
value has to be output on a port. This way, no bit
manipulation is performed on the DR register but
each bit of the DR register can be controlled sepa-
rately.
9.3 I/O PORT IMPLEMENTATION
The hardware implementation on each I/O port de-
pends on the settings in the DDR and OR registers
and specific feature of the I/O port such as ADC In-
put or true open drain.
Switching these I/O ports from one state to anoth-
er should be done in a sequence that prevents un-
wanted side effects. Recommended safe transi-
tions are illustrated in Figure 32 Other transitions
are potentially risky and should be avoided, since
they are likely to present unwanted side-effects
such as spurious interrupt generation.
Figure 32. Interrupt I/O Port State Transitions
The I/O port register configurations are summa-
rized as follows.
Port B (without Option Register)
PB[7:0]
Table 14. Port Configuration (with Option Register)
01
floating/pull-up
interrupt
INPUT
00
floating
(reset state)
INPUT
10
open-drain
OUTPUT
11
push-pull
OUTPUT
XX
= DDR, OR
MODE
DDR
floating input
0
push-pull output
1
Port
Pin name
Input
Output
OR = 0
OR = 1
OR = 0
OR = 1
High-Sink
Port A
PA7:0
floating
with interrupt
open drain
push-pull
No
Port C
PC7:4
floating
with interrupt
push-pull
No
PC3:0
floating
with interrupt
push-pull
Yes
Port D
PD7:0
floating
with interrupt
open drain
push-pull
No
Port E
PE7:6
floating
open drain
push-pull
Yes
PE5
floating
with pull-up, if se-
lected by option
byte see Section
open drain (with
pull-up, if select-
ed by option byte
push-pull
Yes
PE4:3
floating
open drain
push-pull
No
PE2:0
floating
open drain
push-pull
Yes
Port F
PF6:4
floating
True open drain
Yes
PF3:2
floating
push-pull
No
PF1:0
floating
True open drain
Yes
1
相关PDF资料
PDF描述
ST7267R8T1L/XXX 16-BIT, MROM, 30 MHz, RISC MICROCONTROLLER, PQFP64
ST7267C8T1/XXX 16-BIT, MROM, 30 MHz, RISC MICROCONTROLLER, PQFP48
ST72774S9T1/XXX 8-BIT, MROM, 8 MHz, MICROCONTROLLER, PQFP44
ST72E734J6D0 8-BIT, UVPROM, 8 MHz, MICROCONTROLLER, CDIP42
ST72T774S9T1 8-BIT, OTPROM, 8 MHz, MICROCONTROLLER, PQFP44
相关代理商/技术参数
参数描述
ST7265X-EVAL/MS 制造商:STMicroelectronics 功能描述:ST6 EVAL BD - Bulk
ST7265X-EVAL/PFD 制造商:STMicroelectronics 功能描述:USB FLASH EVAL - Bulk
ST7266 制造商:6940 功能描述:ST7266
ST7267C8T1L 制造商:STMicroelectronics 功能描述:
ST72681/R12 制造商:STMicroelectronics 功能描述:CONTROLLER FOR HIGH-PERFORMANCE BUS-POWERED USB 2.0 FLASH DR - Trays