参数资料
型号: ST6382B1/XXX
厂商: STMICROELECTRONICS
元件分类: 微控制器/微处理器
英文描述: 8-BIT, MROM, MICROCONTROLLER, PDIP42
封装: PLASTIC, SDIP-42
文件页数: 25/82页
文件大小: 1651K
代理商: ST6382B1/XXX
Obsolete
Product(s)
- Obsolete
Product(s)
31/82
ST6388, ST63E88, ST63T88
I/O PORTS (Cont’d)
4.1.2 I/O Pin Programming
Each pin can be individually programmed as input
or output with different input and output configura-
tions. This is achieved by writing to the relevant bit
in the data (DR) and data direction register (DDR).
Table 11 shows all the port configurations that can
be selected by the user software.
4.1.3 Input/Output Configurations
The Table 9 shows the I/O lines hardware configu-
ration for the different options.
Notes: The WAIT instruction allows the ST638x to
be used in situations where low power consump-
tion is needed. This can only be achieved however
if the I/O pins either are programmed as inputs
with well defined logic levels or have no power
consuming resistive loads in output mode. As the
same die is used for the different ST638x versions
the unavailable I/O lines of ST638x should be pro-
grammed in output mode.
Single-bit operations on I/O registers are possible
but care is necessary because reading in input
mode is made from I/O pins while writing will di-
rectly affect the Port data register causing an un-
desired changes of the input configuration.
Table 11. I/O Port Options Selection (Port C)
Note: X. Means don’t care.
4.1.4 I/O Port Registers
4.1.4.1 Data Registers
Ports A, B, C Data Register
Address: C0h (PA), C1h (PB), C2h (PC) - Read/
Write
Reset Value: 00h
PA7-PA0. These are the I/O port A data bits. Re-
set at power-on.
PB6-PB0. These are the I/O port B data bits. Re-
set at power-on.
PC7-PC0. Set to 04h at power-on. Bit 2 (PC2 pin)
is set to one (open drain therefore high imped-
ance).
4.1.4.2 Data Direction Registers
Port A, B, C Data Direction Register
Address: C4h (PA), C5h (PB), C6h (PC) - Read/
Write
Reset value:00h
PA7-PA0. These are the I/O port A data direction
bits. When a bit is cleared to zero the related I/O
line is in input mode, if bit is set to one the related
I/O line is in output mode. Reset at power-on.
PB6-PB0. These are the I/O port B data direction
bits. When a bit is cleared to zero the related I/O
line is in input mode, if bit is set to one the related
I/O line is in output mode. Reset at power-on.
PC7-PC0. These are the I/O port C data direction
bits. When a bit is cleared to zero the related I/O
line is in input mode, if bit is set to one the related
I/O line is in output mode. Set to 04h at power-on.
Bit 2 (PC2 pin) is set to one (output mode select-
ed).
4.1.4.3 Data Direction Registers
Port B Option Register
Address: CDh - Read/Write
Reset value:00h
PB6-PB0. These are the I/O port B data direction
bits. If bit is set to one the related I/O line is in an-
alog input mode. Reset at power-on.
DDR
DR
Mode
Option
0
Input
With on-chip pull-up resistor
0
1
Input
Without on-chip pull-up resistor
1
X
Output
Open-drain
70
PA/
PC7
PA/
PB/
PC6
PA/
PB/
PC5
PA/
PB/
PC4
PA/
PB/
PC3
PA/
PB/
PC2
PA/
PB/
PC1
PA/
PB/
PC0
70
PA/
PC7
PA/
PB/
PC6
PA/
PB/
PC5
PA/
PB/
PC4
PA/
PB/
PC3
PA/
PB/
PC2
PA/
PB/
PC1
PA/
PB/
PC0
70
PB6
PB5
PB4
PB3
PB2
PB1
PB0
相关PDF资料
PDF描述
ST6386B1 8-BIT, MROM, 8 MHz, MICROCONTROLLER, PDIP42
ST6388B1 8-BIT, MROM, 8 MHz, MICROCONTROLLER, PDIP42
ST6387B1 8-BIT, MROM, 8 MHz, MICROCONTROLLER, PDIP42
ST6394B1 8-BIT, MROM, 8 MHz, MICROCONTROLLER, PDIP42
ST6399B1 8-BIT, MROM, 8 MHz, MICROCONTROLLER, PDIP42
相关代理商/技术参数
参数描述
ST6382B4 制造商:STMICROELECTRONICS 制造商全称:STMicroelectronics 功能描述:8-BIT MCUs WITH ON-SCREEN-DISPLAY FOR TV TUNING
ST6383 制造商:STMICROELECTRONICS 制造商全称:STMicroelectronics 功能描述:8-BIT MCUs WITH ON-SCREEN-DISPLAY FOR TV TUNING
ST6383B1 制造商:STMICROELECTRONICS 制造商全称:STMicroelectronics 功能描述:8-BIT MCUs WITH ON-SCREEN-DISPLAY FOR TV TUNING
ST6383B4 制造商:STMICROELECTRONICS 制造商全称:STMicroelectronics 功能描述:8-BIT MCUs WITH ON-SCREEN-DISPLAY FOR TV TUNING
ST6385 制造商:STMICROELECTRONICS 制造商全称:STMicroelectronics 功能描述:8-BIT MCUs WITH ON-SCREEN-DISPLAY FOR TV TUNING