参数资料
型号: S80C32-25SHXXX:RD
厂商: ATMEL CORP
元件分类: 微控制器/微处理器
英文描述: 8-BIT, 25 MHz, MICROCONTROLLER, PQCC44
封装: PLASTIC, LCC-44
文件页数: 68/109页
文件大小: 10824K
47
ATtiny20 [DATASHEET]
8235E–AVR–03/2013
10.2.7 Program Example
The following code example shows how to set port B pin 0 high, pin 1 low, and define the port pins from 2 to 3 as input
with a pull-up assigned to port pin 2. The resulting pin values are read back again, but as previously discussed, a nop
instruction is included to be able to read back the value recently assigned to some of the pins.
Note:
10.3
Alternate Port Functions
Most port pins have alternate functions in addition to being general digital I/Os. In Figure 10-6 below is shown how the
port pin control signals from the simplified Figure 10-2 on page 43 can be overridden by alternate functions.
Assembly Code Example
...
; Define pull-ups and set outputs high
; Define directions for port pins
ldi
r16,(1<<PUEB2)
ldi
r17,(1<<PB0)
ldi
r18,(1<<DDB1)|(1<<DDB0)
out
PUEB,r16
out
PORTB,r17
out
DDRB,r18
; Insert nop for synchronization
nop
; Read port pins
in
r16,PINB
...
相关PDF资料
PDF描述
S80C52XXX-20:RD 8-BIT, MROM, 20 MHz, MICROCONTROLLER, PQCC44
S80C52XXX-36:RD 8-BIT, MROM, 36 MHz, MICROCONTROLLER, PQCC44
MC80C32E-30:D 8-BIT, 30 MHz, MICROCONTROLLER, CDIP40
MR80C32E-20 8-BIT, 20 MHz, MICROCONTROLLER, CQCC44
MR80C32E-20 8-BIT, 20 MHz, MICROCONTROLLER, CQCC44
相关代理商/技术参数
参数描述
S80C32-30 制造商:未知厂家 制造商全称:未知厂家 功能描述:8-Bit Microcontroller
S80C32-30R 制造商:未知厂家 制造商全称:未知厂家 功能描述:8-Bit Microcontroller
S80C32-33 制造商:INTEL 制造商全称:Intel Corporation 功能描述:CHMOS SINGLE-CHIP 8-BIT MICROCONTROLLER
S-80C32-36 制造商:TEMIC 功能描述:
S80C32-36 制造商:未知厂家 制造商全称:未知厂家 功能描述:8-Bit Microcontroller