EasyManuals Logo

Atmel AVR ATtiny10 Series User Manual

Atmel AVR ATtiny10 Series
77 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #37 background imageLoading...
Page #37 background image
ATtiny10/11/12
37
When the pins PB2..0 are used for the alternate function, the DDRB and PORTB register has to be set according to the
alternate function description. When PB5..3 are used for alternate functions, the values in the corresponding DDRB and
PORTB bits are ignored.
Port B Data Register PORTB
Port B Data Direction Register DDRB
Note: DDB5 is only available in ATtiny12.
Port B Input Pins 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.
PB2
T0 (Timer/Counter0 External Counter Input) ATtiny10/11/12
SCK (Serial Clock Input for Serial Programming) ATtiny12
PB3 XTAL1 (Oscillator Input) ATtiny10/11/12
PB4 XTAL2 (Oscillator Output) ATtiny10/11/12
PB5 RESET
(External Reset Pin) ATtiny10/11/12
Bit 76543210
$18 - - - PORTB4 PORTB3 PORTB2 PORTB1 PORTB0 PORTB
Read/Write R R R R/W R/W R/W R/W R/W
Initial value 0 0 0 0 0 0 0 0
Bit 76543210
$17 --(DDB5) DDB4 DDB3 DDB2 DDB1 DDB0 DDRB
Read/Write R R R(/W) R/W R/W R/W R/W R/W
Initial value 0 0 0 0 0 0 0 0
Bit 76543210
$16 - - PINB5 PINB4 PINB3 PINB2 PINB1 PINB0 PINB
Read/WriteRRRRRRRR
Initial value 0 0 N/A N/A N/A N/A N/A N/A
Table 19. Port B Pins Alternate Functions (Continued)
Port Pin Alternate Functions Device

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Atmel AVR ATtiny10 Series and is the answer not in the manual?

Atmel AVR ATtiny10 Series Specifications

General IconGeneral
BrandAtmel
ModelAVR ATtiny10 Series
CategoryMicrocontrollers
LanguageEnglish

Related product manuals