参数资料
型号: IT80C32E-30R
厂商: TEMIC SEMICONDUCTORS
元件分类: 微控制器/微处理器
英文描述: 8-BIT, 30 MHz, MICROCONTROLLER, PQFP44
文件页数: 68/109页
文件大小: 10824K
代理商: IT80C32E-30R
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描述
IT80C154-16R 8-BIT, 16 MHz, MICROCONTROLLER, PQFP44
IT83C154CXXX-16 8-BIT, MROM, 16 MHz, MICROCONTROLLER, PQFP44
IV83C154DCXXX-L16R 8-BIT, MROM, 16 MHz, MICROCONTROLLER, PQFP44
IQ83C154DXXX-16D 8-BIT, MROM, 16 MHz, MICROCONTROLLER, CQFP44
IF283C154DTXXX-25R 8-BIT, MROM, 25 MHz, MICROCONTROLLER, PQFP44
相关代理商/技术参数
参数描述
IT80C32-L16 制造商:未知厂家 制造商全称:未知厂家 功能描述:8-Bit Microcontroller
IT80C32-L16R 制造商:未知厂家 制造商全称:未知厂家 功能描述:8-Bit Microcontroller
IT80C51-12 制造商:未知厂家 制造商全称:未知厂家 功能描述:8-Bit Microcontroller
IT80C51-16 制造商:未知厂家 制造商全称:未知厂家 功能描述:8-Bit Microcontroller
IT80C51-20 制造商:未知厂家 制造商全称:未知厂家 功能描述:8-Bit Microcontroller