Datenblatt-Suchmaschine für elektronische Bauteile
  German  ▼
ALLDATASHEETDE.COM

X  

PIC18F44J10-E/ML Datenblatt(PDF) 96 Page - Microchip Technology

Teilenummer PIC18F44J10-E/ML
Bauteilbeschribung  28/40/44-Pin High-Performance RISC Microcontrollers with nanoWatt Technology
PDF  358 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Hersteller  MICROCHIP [Microchip Technology]
Direct Link  http://www.microchip.com
Logo MICROCHIP - Microchip Technology

PIC18F44J10-E/ML Datenblatt(HTML) 96 Page - Microchip Technology

Back Button PIC18F44J10-E/ML Datasheet HTML 92Page - Microchip Technology PIC18F44J10-E/ML Datasheet HTML 93Page - Microchip Technology PIC18F44J10-E/ML Datasheet HTML 94Page - Microchip Technology PIC18F44J10-E/ML Datasheet HTML 95Page - Microchip Technology PIC18F44J10-E/ML Datasheet HTML 96Page - Microchip Technology PIC18F44J10-E/ML Datasheet HTML 97Page - Microchip Technology PIC18F44J10-E/ML Datasheet HTML 98Page - Microchip Technology PIC18F44J10-E/ML Datasheet HTML 99Page - Microchip Technology PIC18F44J10-E/ML Datasheet HTML 100Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 96 / 358 page
background image
PIC18F45J10 FAMILY
DS39682C-page 94
Preliminary
© 2007 Microchip Technology Inc.
9.1.3
INTERFACING TO A 5V SYSTEM
Though the VDDMAX of the PIC18F45J10 family is 3.6V,
these devices are still capable of interfacing with 5V
systems, even if the VIH of the target system is above
3.6V. This is accomplished by adding a pull-up resistor
to the port pin (Figure 9-2), clearing the LAT bit for that
pin and manipulating the corresponding TRIS bit
(Figure 9-1) to either allow the line to be pulled high or
to drive the pin low. Only port pins that are tolerant of
voltages up to 5.5V can be used for this type of
interface (refer to Section 9.1.2 “Input Pins and
Voltage Considerations”).
FIGURE 9-2:
+5V SYSTEM HARDWARE
INTERFACE
EXAMPLE 9-1:
COMMUNICATING WITH
THE +5V SYSTEM
9.2
PORTA, TRISA and LATA Registers
PORTA is a 5-bit wide, bidirectional port. The corre-
sponding data direction register is TRISA. Setting a
TRISA bit (= 1) will make the corresponding PORTA pin
an input (i.e., put the corresponding output driver in a
high-impedance mode). Clearing a TRISA bit (= 0) will
make the corresponding PORTA pin an output (i.e., put
the contents of the output latch on the selected pin).
Reading the PORTA register reads the status of the
pins, whereas writing to it, will write to the port latch.
The Data Latch (LATA) register is also memory mapped.
Read-modify-write operations on the LATA register read
and write the latched output value for PORTA.
The other PORTA pins are multiplexed with analog
inputs, the analog VREF+ and VREF- inputs and the com-
parator voltage reference output. The operation of pins
RA3:RA0 and RA5 as A/D converter inputs is selected
by clearing or setting the control bits in the ADCON1
register (A/D Control Register 1).
Pins RA0 and RA3 may also be used as comparator
inputs and RA5 may be used as the C2 comparator
output by setting the appropriate bits in the CMCON
register. To use RA3:RA0 as digital inputs, it is also
necessary to turn off the comparators.
All PORTA pins have TTL input levels and full CMOS
output drivers.
The TRISA register controls the direction of the PORTA
pins, even when they are being used as analog inputs.
The user must ensure the bits in the TRISA register are
maintained set when using them as analog inputs.
EXAMPLE 9-2:
INITIALIZING PORTA
RD7
+5V Device
PIC18F45J10
+5V
BCF
LATD, 7
; set up LAT register so
; changing TRIS bit will
; drive line low
BCF
TRISD, 7
; send a 0 to the 5V system
BCF
TRISD, 7
; send a 1 to the 5V system
Note:
On a Power-on Reset, RA5 and RA3:RA0
are configured as analog inputs and read
as ‘0’.
CLRF
PORTA
; Initialize PORTA by
; clearing output
; data latches
CLRF
LATA
; Alternate method
; to clear output
; data latches
MOVLW
07h
; Configure A/D
MOVWF
ADCON1
; for digital inputs
MOVWF
07h
; Configure comparators
MOVWF
CMCON
; for digital input
MOVLW
0CFh
; Value used to
; initialize data
; direction
MOVWF
TRISA
; Set RA<3:0> as inputs
; RA<5:4> as outputs



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


Datenblatt Download

Go To PDF Page


Link URL



War ALLDATASHEET hilfreich?  [ DONATE ] 

Über Alldatasheet   |   Werbung   |   Kontakt   |   Privatsphäre und Datenschutz   |   Link zum Datenblatt    |   Linktausch   |   Hersteller
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