欢迎访问ic37.com |
会员登录 免费注册
发布采购

PIC18LF6620-I/PT 参数 Datasheet PDF下载

PIC18LF6620-I/PT图片预览
型号: PIC18LF6620-I/PT
PDF下载: 下载PDF文件 查看货源
内容描述: 八十〇分之六十四引脚高性能1 Mbit的增强型闪存微控制器与A / D [64/80-Pin High Performance 1 Mbit Enhanced FLASH Microcontrollers with A/D]
分类和应用: 闪存微控制器和处理器外围集成电路PC时钟
文件页数/大小: 366 页 / 6797 K
品牌: MICROCHIP [ MICROCHIP ]
 浏览型号PIC18LF6620-I/PT的Datasheet PDF文件第112页浏览型号PIC18LF6620-I/PT的Datasheet PDF文件第113页浏览型号PIC18LF6620-I/PT的Datasheet PDF文件第114页浏览型号PIC18LF6620-I/PT的Datasheet PDF文件第115页浏览型号PIC18LF6620-I/PT的Datasheet PDF文件第117页浏览型号PIC18LF6620-I/PT的Datasheet PDF文件第118页浏览型号PIC18LF6620-I/PT的Datasheet PDF文件第119页浏览型号PIC18LF6620-I/PT的Datasheet PDF文件第120页  
PIC18FXX20  
10.5 PORTE, TRISE and LATE  
Registers  
Note: For PIC18F8X20 (80-pin) devices operat-  
ing in Extended Microcontroller mode,  
PORTE defaults to the system bus on  
Power-on Reset.  
PORTE is an 8-bit wide, bi-directional port. The corre-  
sponding data direction register is TRISE. Setting a  
TRISE bit (= 1) will make the corresponding PORTE  
pin an input (i.e., put the corresponding output driver in  
a High-Impedance mode). Clearing a TRISE bit (= 0)  
will make the corresponding PORTE pin an output (i.e.,  
put the contents of the output latch on the selected pin).  
EXAMPLE 10-5:  
INITIALIZING PORTE  
; Initialize PORTE by  
; clearing output  
; data latches  
CLRF  
PORTE  
Read-modify-write operations on the LATE register,  
read and write the latched output value for PORTE.  
PORTE is an 8-bit port with Schmitt Trigger input buff-  
ers. Each pin is individually configurable as an input or  
output. PORTE is multiplexed with the CCP module  
(Table 10-9).  
CLRF  
LATE  
; Alternate method  
; to clear output  
; data latches  
; Value used to  
; initialize data  
; direction  
MOVLW  
MOVWF  
0x03  
TRISE  
; Set RE1:RE0 as inputs  
; RE7:RE2 as outputs  
On PIC18F8X20 devices, PORTE is also multiplexed  
with the system bus as the external memory interface;  
the I/O bus is available only when the system bus is dis-  
abled, by setting the EBDIS bit in the MEMCON regis-  
ter (MEMCON<7>). If the device is configured in  
Microprocessor or Extended Microcontroller mode,  
then the PORTE<7:0> becomes the high byte of the  
address/data bus for the external program memory  
interface. In Microcontroller mode, the PORTE<2:0>  
pins become the control inputs for the Parallel Slave  
Port when bit PSPMODE (PSPCON<4>) is set. (Refer  
to Section 4.1.1 for more information on Program  
Memory modes.)  
When the Parallel Slave Port is active, three PORTE  
pins (RE0/RD/AD8, RE1/WR/AD9, and RE2/CS/AD10)  
function as its control inputs. This automatically occurs  
when the PSPMODE bit (PSPCON<4>) is set. Users  
must also make certain that bits TRISE<2:0> are set to  
configure the pins as digital inputs, and the ADCON1  
register is configured for digital I/O. The PORTE PSP  
control functions are summarized in Table 10-9.  
Pin RE7 can be configured as the alternate peripheral  
pin for CCP module 2, when the device is operating in  
Microcontroller mode. This is done by clearing the con-  
figuration bit CCP2MX in configuration register,  
CONFIG3H (CONFIG3H<0>).  
DS39609A-page 114  
Advance Information  
2003 Microchip Technology Inc.  
 复制成功!