atmega103 ATMEL Corporation, atmega103 Datasheet - Page 88
atmega103
Manufacturer Part Number
atmega103
Description
Atmega103 8-bit With 128k Bytes Of In-system Programmable Flash
Manufacturer
ATMEL Corporation
Datasheet
1.ATMEGA103.pdf
(141 pages)
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
atmega103-6AC
Manufacturer:
ATMEL
Quantity:
1
Company:
Part Number:
atmega103-6AI
Manufacturer:
ATMEL
Quantity:
586
- Current page: 88 of 141
- Download datasheet (3Mb)
Port B Data Register – PORTB
Port B Data Direction Register
– DDRB
Port B Input Pins Address –
PINB
Port B as General Digital I/O
88
ATmega103(L)
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 29.
Table 29. Port B Pin Alternate Functions
When the pins are used for the alternate function, the DDRB and PORTB Registers
have to be set according to the alternate function description.
The Port B Input Pins address (PINB) is not a register; 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.
All eight pins in Port B have equal functionality when used as digital I/O pins.
PBn, general I/O pin: The DDBn bit in the DDRB Register selects the direction of this
pin. If DDBn is set (one), PBn is configured as an output pin. If DDBn is cleared (zero),
PBn is configured as an input pin. If PORTBn is set (one) when the pin configured as an
input pin, the MOS pull-up resistor is activated. To switch the pull-up resistor off, the
PORTBn has to be cleared (zero) or the pin has to be configured as an output pin. The
port pins are tri-stated when a reset condition becomes active, even if the clock is not
running.
Bit
$18 ($38)
Read/Write
Initial Value
Bit
$17 ($37)
Read/Write
Initial Value
Bit
$16 ($36)
Read/Write
Initial Value
Port Pin
PB0
PB1
PB2
PB3
PB4
PB5
PB6
PB7
PORTB7
Alternate Functions
SS (SPI Slave Select input)
SCK (SPI Bus Serial Clock)
MOSI (SPI Bus Master Output/Slave Input)
MISO (SPI Bus Master Input/Slave Output)
OC0/PWM0 (Output Compare and PWM Output for Timer/Counter0)
OC1A/PWM1A (Output Compare and PWM Output A for Timer/Counter1)
OC1B/PWM1B (Output Compare and PWM Output B for Timer/Counter1)
OC2/PWM2 (Output Compare and PWM Output for Timer/Counter2)
PINB7
DDB7
R/W
R/W
N/A
R
7
0
7
0
7
PORTB6
PINB6
DDB6
R/W
R/W
N/A
R
6
0
6
0
6
PORTB5
PINB5
DDB5
R/W
R/W
N/A
5
0
5
0
5
R
PORTB4
PINB4
DDB4
R/W
R/W
N/A
R
4
0
4
0
4
PORTB3
PINB3
DDB3
R/W
R/W
N/A
R
3
0
3
0
3
PORTB2
PINB2
DDB2
R/W
R/W
N/A
R
2
0
2
0
2
PORTB1
PINB1
DDB1
R/W
R/W
N/A
R
1
0
1
0
1
PORTB0
PINB0
DDB0
R/W
R/W
N/A
R
0
0
0
0
0
0945I–AVR–02/07
PORTB
DDRB
PINB
Related parts for atmega103
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
Part Number:
Description:
INTERVAL AND WIPE/WASH WIPER CONTROL IC WITH DELAY
Manufacturer:
ATMEL Corporation
Datasheet:
Part Number:
Description:
Low-Voltage Voice-Switched IC for Hands-Free Operation
Manufacturer:
ATMEL Corporation
Datasheet:
Part Number:
Description:
MONOLITHIC INTEGRATED FEATUREPHONE CIRCUIT
Manufacturer:
ATMEL Corporation
Datasheet:
Part Number:
Description:
AM-FM Receiver IC U4255BM-M
Manufacturer:
ATMEL Corporation
Datasheet:
Part Number:
Description:
Monolithic Integrated Feature Phone Circuit
Manufacturer:
ATMEL Corporation
Datasheet:
Part Number:
Description:
Multistandard Video-IF and Quasi Parallel Sound Processing
Manufacturer:
ATMEL Corporation
Datasheet:
Part Number:
Description:
High-performance EE PLD
Manufacturer:
ATMEL Corporation
Datasheet:
Part Number:
Description:
8-bit Flash Microcontroller
Manufacturer:
ATMEL Corporation
Datasheet:
Part Number:
Description:
2-Wire Serial EEPROM
Manufacturer:
ATMEL Corporation
Datasheet:
Part Number:
Description:
U6046BREAR WINDOW HEATING TIMER / LONG-TERM TIMER
Manufacturer:
ATMEL Corporation
Datasheet: