參數(shù)資料
型號: ST6218CB6/XXX
廠商: STMICROELECTRONICS
元件分類: 微控制器/微處理器
英文描述: 8-BIT, MROM, 8 MHz, MICROCONTROLLER, PDIP20
封裝: 0.300 INCH, PLASTIC, DIP-20
文件頁數(shù): 30/82頁
文件大小: 937K
代理商: ST6218CB6/XXX
Obsolete
Product(s)
- Obsolete
Product(s)
36/82
ST62T18C/E18C
I/O PORTS (Cont’d)
4.1.1 Operating Modes
Each pin may be individually programmed as input
or output with various configurations.
This is achieved by writing the relevant bit in the
Data (DR), Data Direction (DDR) and Option reg-
isters (OR). Table 1 illustrates the various port
configurations which can be selected by user soft-
ware.
4.1.1.1 Input Options
Pull-up, High Impedance Option. All input lines
can be individually programmed with or without an
internal pull-up by programming the OR and DR
registers accordingly. If the pull-up option is not
selected, the input pin will be in the high-imped-
ance state.
4.1.1.2 Interrupt Options
All input lines can be individually connected by
software to the interrupt system by programming
the OR and DR registers accordingly. The inter-
rupt trigger modes (falling edge, rising edge and
low level) can be configured by software as de-
scribed in the Interrupt Chapter for each port.
4.1.1.3 Analog Input Options
Some pins can be configured as analog inputs by
programming the OR and DR registers according-
ly. These analog inputs are connected to the on-
chip 8-bit Analog to Digital Converter.
ONLY ONE
pin should be programmed as an analog input at
any time, since by selecting more than one input
simultaneously their pins will be effectively short-
ed.
Table 12. I/O Port Option Selection
Note: X = Don’t care
DDR
OR
DR
Mode
Option
0
Input
With pull-up, no interrupt
0
1
Input
No pull-up, no interrupt
0
1
0
Input
With pull-up and with interrupt
0
1
Input
Analog input (when available)
1
0
X
Output
Open-drain output (20mA sink when available)
1
X
Output
Push-pull output (20mA sink when available)
36
相關(guān)PDF資料
PDF描述
ST62P18CB1/XXX 8-BIT, MROM, 8 MHz, MICROCONTROLLER, PDIP20
ST6327B1 8-BIT, MROM, 8 MHz, MICROCONTROLLER, PDIP42
ST6375B1/XXX 8-BIT, MROM, 8 MHz, MICROCONTROLLER, PDIP42
ST6367B1/XXX 8-BIT, MROM, 8 MHz, MICROCONTROLLER, PDIP42
ST6382B1/XXX 8-BIT, MROM, MICROCONTROLLER, PDIP42
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
ST6218CM1 制造商:STMICROELECTRONICS 制造商全稱:STMicroelectronics 功能描述:8-BIT MCUs WITH A/D CONVERTER, AUTO-RELOAD TIMER, UART, OSG, SAFE RESET AND 20-PIN PACKAGE
ST6218CM1/XXX 制造商:未知廠家 制造商全稱:未知廠家 功能描述:8-Bit Microcontroller
ST6218CM3 制造商:STMICROELECTRONICS 制造商全稱:STMicroelectronics 功能描述:8-BIT MCUs WITH A/D CONVERTER, AUTO-RELOAD TIMER, UART, OSG, SAFE RESET AND 20-PIN PACKAGE
ST6218CM3/XXX 制造商:未知廠家 制造商全稱:未知廠家 功能描述:8-Bit Microcontroller
ST6218CM6 制造商:STMICROELECTRONICS 制造商全稱:STMicroelectronics 功能描述:8-BIT MCUs WITH A/D CONVERTER, AUTO-RELOAD TIMER, UART, OSG, SAFE RESET AND 20-PIN PACKAGE