參數(shù)資料
型號: AT89C5115-TISIM
廠商: ATMEL CORP
元件分類: 微控制器/微處理器
英文描述: 8-BIT, FLASH, 40 MHz, MICROCONTROLLER, PDSO28
封裝: GREEN, SOIC-28
文件頁數(shù): 68/109頁
文件大?。?/td> 10824K
代理商: AT89C5115-TISIM
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描述
AT90CAN128-15MT 8-BIT, FLASH, 16 MHz, RISC MICROCONTROLLER, QCC64
ABM8-FREQ-18-R050-D-7-H-T QUARTZ CRYSTAL RESONATOR, 30 MHz - 60 MHz
ABM3B-FREQ-18-R050 QUARTZ CRYSTAL RESONATOR, 16 MHz - 60 MHz
ABM3B-FREQ-18-R070-1-X QUARTZ CRYSTAL RESONATOR, 12 MHz - 15.999 MHz
ABM3B-FREQ-18-R070-1-Z QUARTZ CRYSTAL RESONATOR, 12 MHz - 15.999 MHz
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
AT89C5115-TISUM 功能描述:8位微控制器 -MCU 16K Flash ADC RoHS:否 制造商:Silicon Labs 核心:8051 處理器系列:C8051F39x 數(shù)據(jù)總線寬度:8 bit 最大時鐘頻率:50 MHz 程序存儲器大小:16 KB 數(shù)據(jù) RAM 大小:1 KB 片上 ADC:Yes 工作電源電壓:1.8 V to 3.6 V 工作溫度范圍:- 40 C to + 105 C 封裝 / 箱體:QFN-20 安裝風(fēng)格:SMD/SMT
AT89C51-16AA 制造商:ATMEL 制造商全稱:ATMEL Corporation 功能描述:8-Bit Microcontroller with 4K Bytes Flash
AT89C51-16AC 功能描述:8位微控制器 -MCU Microcontroller RoHS:否 制造商:Silicon Labs 核心:8051 處理器系列:C8051F39x 數(shù)據(jù)總線寬度:8 bit 最大時鐘頻率:50 MHz 程序存儲器大小:16 KB 數(shù)據(jù) RAM 大小:1 KB 片上 ADC:Yes 工作電源電壓:1.8 V to 3.6 V 工作溫度范圍:- 40 C to + 105 C 封裝 / 箱體:QFN-20 安裝風(fēng)格:SMD/SMT
AT89C51-16AI 制造商:ATMEL 制造商全稱:ATMEL Corporation 功能描述:8-Bit Microcontroller with 4K Bytes Flash
AT89C51-16JA 制造商:ATMEL 制造商全稱:ATMEL Corporation 功能描述:8-Bit Microcontroller with 4K Bytes Flash