전자부품 데이터시트 검색엔진
  Korean  ▼
ALLDATASHEET.CO.KR

X  

PIC18F4331 데이터시트(PDF) 133 Page - Microchip Technology

부품명 PIC18F4331
상세설명  28/40/44-Pin Enhanced Flash Microcontrollers with nanoWatt Technology, High Performance PWM and A/D
PDF  400 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
제조업체  MICROCHIP [Microchip Technology]
홈페이지  http://www.microchip.com
Logo MICROCHIP - Microchip Technology

PIC18F4331 데이터시트(HTML) 133 Page - Microchip Technology

Back Button PIC18F4331 Datasheet HTML 129Page - Microchip Technology PIC18F4331 Datasheet HTML 130Page - Microchip Technology PIC18F4331 Datasheet HTML 131Page - Microchip Technology PIC18F4331 Datasheet HTML 132Page - Microchip Technology PIC18F4331 Datasheet HTML 133Page - Microchip Technology PIC18F4331 Datasheet HTML 134Page - Microchip Technology PIC18F4331 Datasheet HTML 135Page - Microchip Technology PIC18F4331 Datasheet HTML 136Page - Microchip Technology PIC18F4331 Datasheet HTML 137Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 133 / 400 page
background image
© 2007 Microchip Technology Inc.
Preliminary
DS39616C-page 131
PIC18F2331/2431/4331/4431
10.5
PORTE, TRISE and LATE
Registers
PORTE is a 4-bit wide bidirectional port. Three pins
(RE0/AN6, RE1/AN67 and RE2/AN8) are individually
configurable as inputs or outputs. These pins have
Schmitt Trigger input buffers. When selected as an
analog input, these pins will read as ‘0’s.
The corresponding 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).
TRISE controls the direction of the RE pins, even when
they are being used as analog inputs. The user must
make sure to keep the pins configured as inputs when
using them as analog inputs.
The Data Latch register (LATE) is also memory
mapped. Read-modify-write operations on the LATE
register read and write the latched output value for
PORTE.
The fourth pin of PORTE (MCLR/VPP/RE3) is an input
only pin. Its operation is controlled by the MCLRE
Configuration bit in Configuration Register 3H
(CONFIG3H<7>). When selected as a port pin
(MCLRE = 0), it functions as a digital input-only pin. As
such, it does not have TRIS or LAT bits associated with
its operation. Otherwise, it functions as the device’s
master clear input. In either configuration, RE3 also
functions as the programming voltage input during
programming.
EXAMPLE 10-5:
INITIALIZING PORTE
10.5.1
PORTE IN 28-PIN DEVICES
For PIC18F2331/2431 devices, PORTE is only
available when master clear functionality is disabled
(CONFIG3H<7> = 0). In these cases, PORTE is a
single bit, input-only port comprised of RE3 only. The
pin operates as previously described.
Note:
PORTE is only available on PIC18F4331/
4431 devices.
Note:
On a Power-on Reset, RE2:RE0 are
configured as analog inputs.
Note:
On a Power-on Reset, RE3 is enabled as a
digital input only if Master Clear functionality
is disabled.
CLRF
PORTE
; Initialize PORTE by
; clearing output
; data latches
CLRF
LATE
; Alternate method
; to clear output
; data latches
MOVLW
0x3F
; Configure A/D
MOVWF
ANSEL0
; for digital inputs
BCF
ANSEL1, 0
;
MOVLW
0x03
; Value used to
; initialize data
; direction
MOVWF
TRISE
; Set RE<0> as input
; RE<1> as output
; RE<2> as input



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


데이터시트 다운로드

Go To PDF Page


링크 URL



ALLDATASHEET 가 귀하에 도움이 되셨나요?  [ DONATE ] 

Alldatasheet는?   |   광고문의   |   운영자에게 연락하기   |   개인정보취급방침   |   링크 투 데이터시트    |   링크교환   |   제조사별 검색
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
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