參數(shù)資料
型號(hào): AT32UC3A0512
廠商: Atmel Corp.
英文描述: AVR32 32-Bit Microcontroller
中文描述: AVR32 32位微控制器
文件頁(yè)數(shù): 68/109頁(yè)
文件大?。?/td> 10824K
代理商: AT32UC3A0512
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
...
相關(guān)PDF資料
PDF描述
AT32UC3A1128 AVR32 32-Bit Microcontroller
AT32UC3A1256 AVR32 32-Bit Microcontroller
AT32UC3A1512 AVR32 32-Bit Microcontroller
AT32UC3B0128 32-Bit Microcontroller
AT32UC3B0256 32-Bit Microcontroller
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
AT32UC3A0512_08 制造商:ATMEL 制造商全稱:ATMEL Corporation 功能描述:AVR32 32-Bit Microcontroller
AT32UC3A0512_09 制造商:ATMEL 制造商全稱:ATMEL Corporation 功能描述:AVR 32 32-Bit Microcontroller
AT32UC3A0512_1 制造商:ATMEL 制造商全稱:ATMEL Corporation 功能描述:AVR32 32-Bit Microcontroller
AT32UC3A0512-ALTES 制造商:ATMEL 制造商全稱:ATMEL Corporation 功能描述:AVR32 32-Bit Microcontroller
AT32UC3A0512-ALTR 功能描述:MCU AVR32 512K FLASH 144LQFP RoHS:是 類別:集成電路 (IC) >> 嵌入式 - 微控制器, 系列:AVR®32 UC3 A0 標(biāo)準(zhǔn)包裝:1,500 系列:AVR® ATtiny 核心處理器:AVR 芯體尺寸:8-位 速度:16MHz 連通性:I²C,LIN,SPI,UART/USART,USI 外圍設(shè)備:欠壓檢測(cè)/復(fù)位,POR,PWM,溫度傳感器,WDT 輸入/輸出數(shù):16 程序存儲(chǔ)器容量:8KB(4K x 16) 程序存儲(chǔ)器類型:閃存 EEPROM 大小:512 x 8 RAM 容量:512 x 8 電壓 - 電源 (Vcc/Vdd):2.7 V ~ 5.5 V 數(shù)據(jù)轉(zhuǎn)換器:A/D 11x10b 振蕩器型:內(nèi)部 工作溫度:-40°C ~ 125°C 封裝/外殼:20-SOIC(0.295",7.50mm 寬) 包裝:帶卷 (TR)