| Electronic Components Datasheet Search |
|
PIC18F6X2X Datasheet(PDF) 118 Page - Microchip Technology |
|
|
|||||||||||||||||||||||||||||
PIC18F6X2X Datasheet(HTML) 118 Page - Microchip Technology |
|
118 / 386 page ![]() PIC18F6X2X/8X2X DS39612A-page 116 Advance Information 2003 Microchip Technology Inc. 10.5 PORTE, TRISE and LATE Registers 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). 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). On PIC18F8X2X 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 disabled by setting the EBDIS bit in the MEMCON register (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/AD8/RD, RE1/AD9/WR, and RE2/AD10/CS) 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 the CCP2 module when the device is operating in Microcontroller mode. This is done by clearing the configuration bit CCP2MX in the CONFIG3H Configuration register (CONFIG3H<0>). EXAMPLE 10-5: INITIALIZING PORTE Note: For PIC18F8X2X (80-pin) devices operat- ing in Extended Microcontroller mode, PORTE defaults to the system bus on Power-on Reset. CLRF PORTE ; Initialize PORTE by ; clearing output ; data latches CLRF LATE ; Alternate method ; to clear output ; data latches MOVLW 0x03 ; Value used to ; initialize data ; direction MOVWF TRISE ; Set RE1:RE0 as inputs ; RE7:RE2 as outputs |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |