参数资料
型号: IP80C32-30
厂商: TEMIC SEMICONDUCTORS
元件分类: 微控制器/微处理器
英文描述: 8-BIT, 30 MHz, MICROCONTROLLER, PDIP40
文件页数: 68/109页
文件大小: 10824K
代理商: IP80C32-30
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描述
IP80C32E-30SHXXX:D 8-BIT, 30 MHz, MICROCONTROLLER, PDIP40
IC80C52TXXX-25SHXXX:D 8-BIT, MROM, 25 MHz, MICROCONTROLLER, CDIP40
IC80C52XXX-16:D 8-BIT, MROM, 16 MHz, MICROCONTROLLER, CDIP40
ID80C52CXXX-25SHXXX:D 8-BIT, MROM, 25 MHz, MICROCONTROLLER, CDIP40
IJ80C32E-12SHXXX:R 8-BIT, 12 MHz, MICROCONTROLLER, PQCC44
相关代理商/技术参数
参数描述
IP80C32-36 制造商:未知厂家 制造商全称:未知厂家 功能描述:8-Bit Microcontroller
IP80C32-L16 制造商:未知厂家 制造商全称:未知厂家 功能描述:8-Bit Microcontroller
IP80C32T2-1 制造商:未知厂家 制造商全称:未知厂家 功能描述:MICROCONTROLLER|8-BIT|8051 CPU|CMOS|DIP|40PIN|PLASTIC
IP80C51-12 制造商:未知厂家 制造商全称:未知厂家 功能描述:8-Bit Microcontroller
IP80C51-16 制造商:未知厂家 制造商全称:未知厂家 功能描述:8-Bit Microcontroller