參數資料
型號: R5F2L387CDFP
元件分類: 微控制器/微處理器
英文描述: 8-BIT, FLASH, 20 MHz, MICROCONTROLLER, PQFP80
封裝: 12 X 12 MM, 0.50 MM PITCH, PLASTIC, LQFP-80
文件頁數: 51/74頁
文件大?。?/td> 959K
代理商: R5F2L387CDFP
56
2588F–AVR–06/2013
ATtiny261/461/861
10.1
Ports as General Digital I/O
The ports are bi-directional I/O ports with optional internal pull-ups. Figure 10-2 shows a func-
tional description of one I/O-port pin, here generically called Pxn.
Figure 10-2. General Digital I/O
Note:
1. WRx, WPx, WDx, RRx, RPx, and RDx are common to all pins within the same port. clk
I/O,
SLEEP, and PUD are common to all ports.
10.1.1
Configuring the Pin
Each port pin consists of three register bits: DDxn, PORTxn, and PINxn. As shown in “Register
Description” on page 69, the DDxn bits are accessed at the DDRx I/O address, the PORTxn bits
at the PORTx I/O address, and the PINxn bits at the PINx I/O address.
The DDxn bit in the DDRx Register selects the direction of this pin. If DDxn is written logic one,
Pxn is configured as an output pin. If DDxn is written logic zero, Pxn is configured as an input
pin.
If PORTxn is written logic one when the pin is configured as an input pin, the pull-up resistor is
activated. To switch the pull-up resistor off, PORTxn has to be written logic zero or the pin has to
clk
RPx
RRx
RDx
WDx
PUD
SYNCHRONIZER
WDx:
WRITE DDRx
WRx:
WRITE PORTx
RRx:
READ PORTx REGISTER
RPx:
READ PORTx PIN
PUD:
PULLUP DISABLE
clk
I/O:
I/O CLOCK
RDx:
READ DDRx
D
L
Q
RESET
Q
D
Q
D
CLR
PORTxn
Q
D
CLR
DDxn
PINxn
D
ATA
B
U
S
SLEEP
SLEEP:
SLEEP CONTROL
Pxn
I/O
WPx
0
1
WRx
WPx:
WRITE PINx REGISTER
相關PDF資料
PDF描述
R5F2L387CNFP 8-BIT, FLASH, 20 MHz, MICROCONTROLLER, PQFP80
R5F2L368CDFP 8-BIT, FLASH, 20 MHz, MICROCONTROLLER, PQFP64
R5F2L3AACDFA 8-BIT, FLASH, 20 MHz, MICROCONTROLLER, PQFP100
R5F2L3ACCDFA 8-BIT, FLASH, 20 MHz, MICROCONTROLLER, PQFP100
R5F2L38CCNFA 8-BIT, FLASH, 20 MHz, MICROCONTROLLER, PQFP80
相關代理商/技術參數
參數描述
R5F2L387CNFA#V0 制造商:Renesas Electronics Corporation 功能描述:IC MCU 16BIT 48KB FLASH
R5F2L387CNFP#30 制造商:Renesas Electronics Corporation 功能描述:R8C/L38C FL-48K, PLQP0080KB-A - Trays 制造商:Renesas Electronics Corporation 功能描述:IC MCU 16BIT 48KB FLASH 80LQFP
R5F2L387MDFA#V0 制造商:Renesas Electronics Corporation 功能描述:IC MCU 16BIT 48KB FLASH
R5F2L387MNFA#V0 制造商:Renesas Electronics Corporation 功能描述:R8C/L38M 48+4/6 80LQFP 14X14 -20 TO +85 - Trays 制造商:Renesas Electronics Corporation 功能描述:IC MCU 16BIT 48KB FLASH 80LQFP
R5F2L387MNFP#30 制造商:Renesas Electronics Corporation 功能描述:IC MCU 16BIT 48KB FLASH 80LQFP