PIC18C658 MICROCHIP [Microchip Technology], PIC18C658 Datasheet - Page 104
![no-image](/images/no-image-200.jpg)
PIC18C658
Manufacturer Part Number
PIC18C658
Description
High-Performance Microcontrollers with CAN Module
Manufacturer
MICROCHIP [Microchip Technology]
Datasheet
1.PIC18C658.pdf
(366 pages)
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
PIC18C658-1/CL
Manufacturer:
Microchip
Quantity:
6
Company:
Part Number:
PIC18C658-1/L
Manufacturer:
Microchip
Quantity:
6
Company:
Part Number:
PIC18C658-E/L
Manufacturer:
Microchip Technology
Quantity:
10 000
Company:
Part Number:
PIC18C658-E/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
Company:
Part Number:
PIC18C658-ES
Manufacturer:
Microchip
Quantity:
131
Company:
Part Number:
PIC18C658-I/L
Manufacturer:
Microchip
Quantity:
385
Company:
Part Number:
PIC18C658-I/L
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC18C658-I/L
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Company:
Part Number:
PIC18C658-I/PT
Manufacturer:
Microchip
Quantity:
601
Company:
Part Number:
PIC18C658-I/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
Company:
Part Number:
PIC18C658T-E/L
Manufacturer:
Microchip Technology
Quantity:
10 000
- Current page: 104 of 366
- Download datasheet (7Mb)
PIC18CXX8
8.8
PORTH is a 5-bit wide, bi-directional port available only
on the PIC18C858 devices. The corresponding Data
Direction register is TRISH. Setting a TRISH bit (=1)
will make the corresponding PORTH pin an input (i.e.,
put the corresponding output driver in a hi-impedance
mode). Clearing a TRISH bit (=0) will make the corre-
sponding PORTH pin an output (i.e., put the contents
of the output latch on the selected pin).
Read-modify-write operations on the LATH register
read and write the latched output value for PORTH.
Pins RH0-RH3 on the PIC18C858 are bi-directional I/O
pins with ST input buffers. Pins RH4-RH7 on all devices
are multiplexed with A/D converter inputs.
FIGURE 8-16: RH3:RH0 PINS BLOCK
DS30475A-page 104
WR TRISH
WR LATH
or
WR PORTH
Data Bus
Note:
Note:
Note:
PORTH, LATH, and TRISH Registers
I/O pins have diode protection to V
This port is available on PIC18C858.
On a Power-on Reset, the RH7:RH4 pins
are configured as inputs and read as ’0’.
RD
PORTH
TRIS Latch
Data Latch
D
D
CK
CK
RD LATH
RD TRISH
DIAGRAM
Q
Q
Q
Q
Q
EN
D
DD
Schmitt
Trigger
and V
Advanced Information
V
V
N
P
SS
DD
SS
.
I/O Pin
EXAMPLE 8-8:
FIGURE 8-17: RH7:RH4 PINS BLOCK
CLRF
CLRF
MOVLW
MOVWF
MOVLW
MOVWF
WR TRISH
WR LATH
or
WR PORTH
Note:
Data
Bus
RD PORTH
To A/D Converter
PORTH
LATH
0x0F
ADCON1
0xCF
TRISH
I/O pins have diode protection to V
D
D
Data Latch
TRIS Latch
CK
CK
DIAGRAM
INITIALIZING PORTH
RD LATH
; Initialize PORTH by
; Alternate method
;
;
; RH5:RH4 as outputs
; RH7:RH6 as inputs
; clearing output
; data latches
; to clear output
; data latches
; Value used to
; initialize data
; direction
; Set RH3:RH0 as inputs
RD TRISH
Q
Q
Q
Q
2000 Microchip Technology Inc.
Q
Analog
Input
Mode
EN
D
DD
V
V
P
N
DD
SS
and V
SS
I/O Pin
ST
Input
Buffer
.
Related parts for PIC18C658
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![PIC18F452I/L](/images/manufacturer_photos/0/4/439/microchip_technology_tmb.jpg)
Part Number:
Description:
IC, 8BIT MCU, PIC18F, 40MHZ, LCC-44
Manufacturer:
Microchip Technology
Datasheet:
![PIC18LF8680-I/PT](/images/manufacturer_photos/0/4/439/microchip_technology_tmb.jpg)
Part Number:
Description:
IC, 8BIT MCU, PIC18LF, 40MHZ, PLCC-64
Manufacturer:
Microchip Technology
Datasheet:
![PIC18F85K22-I/PT](/images/manufacturer_photos/0/4/439/microchip_technology_tmb.jpg)
Part Number:
Description:
IC, 8BIT MCU, PIC18F, 64MHZ, TQFP-80
Manufacturer:
Microchip Technology
Datasheet:
![AC164130-2](/photos/15/88/158849/ac164130_tmb.jpg)
Part Number:
Description:
MCU, MPU & DSP Development Tools CAN/LIN PICtail Plus Daughter Board
Manufacturer:
Microchip Technology
Datasheet:
![PIC18F46K20-E/P](/photos/6/61/66192/150-40-dip_tmb.jpg)
Part Number:
Description:
IC, 8BIT MCU, PIC18F, 64MHZ, DIP-40
Manufacturer:
Microchip Technology
Datasheet:
![PIC18LF6680-I/L](/photos/12/13/121323/c04-049_l_tmb.jpg)
Part Number:
Description:
IC, 8BIT MCU, PIC18LF, 40MHZ, PLCC-64
Manufacturer:
Microchip Technology
Datasheet:
![PIC18F66K90-I/PT](/images/manufacturer_photos/0/4/439/microchip_technology_tmb.jpg)
Part Number:
Description:
IC, 8BIT MCU, PIC18F, 64MHZ, TQFP-64
Manufacturer:
Microchip Technology
![PIC18F85K90-I/PT](/images/manufacturer_photos/0/4/439/microchip_technology_tmb.jpg)
Part Number:
Description:
IC, 8BIT MCU, PIC18F, 64MHZ, TQFP-80
Manufacturer:
Microchip Technology
![PIC18F43K20-E/MV](/photos/16/15/161538/qfn-40_tmb.jpg)
Part Number:
Description:
8KB, Flash, 768bytes-RAM, 36I/O, 8-bit Family,nanowatt XLP 40 UQFN 5x5x0.5mm TUB
Manufacturer:
Microchip Technology
Datasheet:
![PIC18F43K20-I/MV](/photos/16/15/161538/qfn-40_tmb.jpg)
Part Number:
Description:
8KB, Flash, 768bytes-RAM, 36I/O, 8-bit Family,nanowatt XLP 40 UQFN 5x5x0.5mm TUB
Manufacturer:
Microchip Technology
![PIC18F44K20-E/MV](/photos/16/15/161538/qfn-40_tmb.jpg)
Part Number:
Description:
16KB, Flash, 768bytes-RAM, 36I/O, 8-bit Family,nanowatt XLP 40 UQFN 5x5x0.5mm TU
Manufacturer:
Microchip Technology
Datasheet:
![PIC18F44K20-I/MV](/photos/16/15/161538/qfn-40_tmb.jpg)
Part Number:
Description:
16KB, Flash, 768bytes-RAM, 36I/O, 8-bit Family,nanowatt XLP 40 UQFN 5x5x0.5mm TU
Manufacturer:
Microchip Technology
![PIC18F45K20-E/MV](/photos/16/15/161538/qfn-40_tmb.jpg)
Part Number:
Description:
32KB, Flash, 1536bytes-RAM, 36I/O, 8-bit Family,nanowatt XLP 40 UQFN 5x5x0.5mm T
Manufacturer:
Microchip Technology
Datasheet:
![PIC18F45K20-I/MV](/photos/16/15/161538/qfn-40_tmb.jpg)
Part Number:
Description:
32KB, Flash, 1536bytes-RAM, 36I/O, 8-bit Family,nanowatt XLP 40 UQFN 5x5x0.5mm T
Manufacturer:
Microchip Technology
![PIC18F46K20-E/MV](/photos/16/15/161538/qfn-40_tmb.jpg)
Part Number:
Description:
64KB, Flash, 3968bytes-RAM, 36I/O, 8-bit Family,nanowatt XLP 40 UQFN 5x5x0.5mm T
Manufacturer:
Microchip Technology
Datasheet: