參數(shù)資料
型號: 90S1200
廠商: Atmel Corp.
元件分類: 8位微控制器
英文描述: -bit AVR Microcontroller with 8K Bytes In- System Programmable Flash
中文描述: 位AVR微控制器具有8K字節(jié)的系統(tǒng)內(nèi)可編程閃存
文件頁數(shù): 29/71頁
文件大?。?/td> 1416K
代理商: 90S1200
29
AT90S1200
0838H
AVR
03/02
I/O Ports
All AVR ports have true Read-Modify-Write functionality when used as general digital
I/O ports. This means that the direction of one port pin can be changed without uninten-
tionally changing the direction of any other pin with the SBI and CBI instructions. The
same applies for changing drive value (if configured as output) or enabling/disabling of
pull-up resistors (if configured as input).
Port B
Port B is an 8-bit bi-directional I/O port.
Three I/O memory address locations are allocated for the Port B, one each for the Data
Register
PORTB ($18), Data Direction Register
DDRB ($17), and the Port B Input
Pins
PINB ($16). The Port B Input Pins address is read-only, while the Data Register
and the Data Direction Register are read/write.
All port pins have individually selectable pull-up resistors. The Port B output buffers can
sink 20 mA and thus drive LED displays directly. When pins PB0 to PB7 are used as
inputs and are externally pulled low, they will source current if the internal pull-up resis-
tors are activated.
The Port B pins with alternate functions are shown in Table 8.
When the pins are used for the alternate function, the DDRB and PORTB register has to
be set according to the alternate function description.
Port B Data Register
PORTB
Port B Data Direction Register
DDRB
Port B Input Pin Address
PINB
The Port B Input Pins address (PINB) is not a register, and this address enables access
to the physical value on each Port B pin. When reading PORTB, the Port B Data Latch
is read, and when reading PINB, the logical values present on the pins are read.
Table 8.
Port B Pin Alternate Functions
Port Pin
Alternate Functions
PB0
AIN0 (Analog Comparator positive input)
PB1
AIN1 (Analog Comparator negative input)
PB5
MOSI (Data Input line for memory downloading)
PB6
MISO (Data Output line for memory uploading)
PB7
SCK (Serial Clock input)
Bit
7
6
5
4
3
2
1
0
$18
PORTB7
PORTB6
PORTB5
PORTB4
PORTB3
PORTB2
PORTB1
PORTB0
PORTB
Read/Write
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Initial Value
0
0
0
0
0
0
0
0
Bit
7
6
5
4
3
2
1
0
$17
DDB7
DDB6
DDB5
DDB4
DDB3
DDB2
DDB1
DDB0
DDRB
Read/Write
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Initial Value
0
0
0
0
0
0
0
0
Bit
7
6
5
4
3
2
1
0
$16
PINB7
PINB6
PINB5
PINB4
PINB3
PINB2
PINB1
PINB0
PINB
Read/Write
R
R
R
R
R
R
R
R
Initial Value
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
相關(guān)PDF資料
PDF描述
90S2313 -bit AVR Microcontroller with 8K Bytes In- System Programmable Flash
90S2343 -bit AVR Microcontroller with 8K Bytes In- System Programmable Flash
90S4414 16 Characters x 2 Lines, 5x7 Dot Matrix Character and Cursor
90S8535 -bit AVR Microcontroller with 8K Bytes In- System Programmable Flash
90SCFM 20SCFM
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
90S2313 制造商:ATMEL 制造商全稱:ATMEL Corporation 功能描述:8-Bit Microcontroller with 2K bytes In-System Programmable Flash
90S2343 制造商:ATMEL 制造商全稱:ATMEL Corporation 功能描述:8-Bit Microcontroller with 2K Bytes of In-System Programmable Flash
90S4414 制造商:ATMEL 制造商全稱:ATMEL Corporation 功能描述:8-Bit Microcontroller with 4K bytes In-System Programmable Flash
90S7A 制造商:QUARTZCOM 制造商全稱:QUARTZCOM the communications company 功能描述:-20 ~ +70 °C commercia l application -30 ~ +75 °C on request
90S8535 制造商:ATMEL 制造商全稱:ATMEL Corporation 功能描述:8-Bit Microcontroller with 4K/8K Bytes In-System Programmable Flash