参数资料
型号: Q80C32E-20:D
厂商: ATMEL CORP
元件分类: 微控制器/微处理器
英文描述: 8-BIT, 20 MHz, MICROCONTROLLER, CQFP44
封装: CERAMIC, QFP-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描述
Q80C32E-20SHXXX:D 8-BIT, 20 MHz, MICROCONTROLLER, CQFP44
Q80C32E-20SHXXX:R 8-BIT, 20 MHz, MICROCONTROLLER, CQFP44
Q80C32E-30:D 8-BIT, 30 MHz, MICROCONTROLLER, CQFP44
Q80C32E-30:R 8-BIT, 30 MHz, MICROCONTROLLER, CQFP44
Q80C32E-36:R 8-BIT, 36 MHz, MICROCONTROLLER, CQFP44
相关代理商/技术参数
参数描述
Q80N-5 制造商:POWERBOX 制造商全称:Powerbox 功能描述:0.5 WATTS - 100 - 10KV SINGLE OUTPUT DC/DC INDUSTRIAL
Q-810 功能描述:交流电源插头和插座 NEMA L5-15P LOCKING DEVICE RoHS:否 制造商:Hirose Connector 产品:Plugs 系列: 电流额定值:3 A 电压额定值:30 V 安装角:Straight 安装风格:Cable 颜色: 端口数量:
Q81022511000000 制造商:Epson Electronics America Inc 功能描述:TF2-J4DB1 184.3200MHZ
Q811 制造商:Captive Fastener Corporation 功能描述:
Q-812 制造商:Qualtek Electronics Corporation 功能描述:NEMA TWIST-LOCK 制造商:Qualtek Electronics Corporation 功能描述:Nema St Blade Twist Lock