參數(shù)資料
型號: SC80C52XXX-36/883
廠商: TEMIC SEMICONDUCTORS
元件分類: 微控制器/微處理器
英文描述: 8-BIT, MROM, 36 MHz, MICROCONTROLLER, CDIP40
封裝: SIDE BRAZED, 40 PIN
文件頁數(shù): 68/109頁
文件大小: 10824K
代理商: SC80C52XXX-36/883
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描述
S83C154TXXX-25 8-BIT, MROM, 25 MHz, MICROCONTROLLER, PQCC44
S83C154XXX-25R 8-BIT, MROM, 25 MHz, MICROCONTROLLER, PQCC44
SC80C32XXX-36SV 8-BIT, 36 MHz, MICROCONTROLLER, CDIP40
SJ80C32XXX-12SV 8-BIT, 12 MHz, MICROCONTROLLER, CQCC44
S80C52EXXX-20SHXXX:D 8-BIT, MROM, 20 MHz, MICROCONTROLLER, PQCC44
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
SC80-M30/5 制造商:GardTec Inc 功能描述:SC Series 80 mm Steel Bright Nickel Chrome 4 Place Screw Mount Fan Guard
SC80-P10 制造商:GardTec Inc 功能描述:SC Series 80 mm Steel Bright Nickel Chrome 4 Place Screw Mount Fan Guard
SC80-P15/30 制造商:GardTec Inc 功能描述:SC Series Gardtec Fan guard
SC80-P15/45 制造商:GardTec Inc 功能描述:SC Series 80 mm Plastic Polyurethane Foam 4 Place Screw Mount Fan Guard
SC80-P40 制造商:GardTec Inc 功能描述:Plastic Fan Guard