PIC18F458T-I/PT Microchip Technology, PIC18F458T-I/PT Datasheet - Page 104

IC MCU FLASH 16KX16 W/CAN 44TQFP

PIC18F458T-I/PT

Manufacturer Part Number
PIC18F458T-I/PT
Description
IC MCU FLASH 16KX16 W/CAN 44TQFP
Manufacturer
Microchip Technology
Series
PIC® 18Fr

Specifications of PIC18F458T-I/PT

Core Processor
PIC
Core Size
8-Bit
Speed
40MHz
Connectivity
CAN, I²C, SPI, UART/USART
Peripherals
Brown-out Detect/Reset, LVD, POR, PWM, WDT
Number Of I /o
33
Program Memory Size
32KB (16K x 16)
Program Memory Type
FLASH
Eeprom Size
256 x 8
Ram Size
1.5K x 8
Voltage - Supply (vcc/vdd)
4.2 V ~ 5.5 V
Data Converters
A/D 8x10b
Oscillator Type
External
Operating Temperature
-40°C ~ 85°C
Package / Case
44-TQFP, 44-VQFP
Lead Free Status / RoHS Status
Lead free / RoHS Compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC18F458T-I/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
9.4
PORTD is an 8-bit wide, bidirectional port. The corre-
sponding Data Direction register for the port is TRISD.
Setting a TRISD bit (= 1) will make the corresponding
PORTD pin an input (i.e., put the corresponding output
driver in a high-impedance mode). Clearing a TRISD
bit (= 0) will make the corresponding PORTD pin an
output (i.e., put the contents of the output latch on the
selected pin).
Read-modify-write operations on the LATD register
read and write the latched output value for PORTD.
PORTD uses Schmitt Trigger input buffers. Each pin is
individually configurable as an input or output.
FIGURE 9-9:
DS41159E-page 102
PIC18FXX8
Note:
PORTD, TRISD and LATD
Registers
This port is only available on the
PIC18F448 and PIC18F458.
Note 1: I/O pins have diode protection to V
PORT/PSP Select
PSP Data Out
RD LATD
Data Bus
WR LATD
or
PORTD
RD TRISD
PSP Read
RD PORTD
PSP Write
C1IN+
WR TRISD
PORTD BLOCK DIAGRAM IN I/O PORT MODE
Data Latch
TRIS Latch
D
D
CK
CK
Q
Q
Q
Q
DD
and V
Q
PORTD can be configured as an 8-bit wide, micro-
processor port (Parallel Slave Port or PSP) by setting
the control bit PSPMODE (TRISE<4>). In this mode,
the input buffers are TTL. See Section 10.0 “Parallel
Slave Port” for additional information.
PORTD is also multiplexed with the analog comparator
module and the ECCP module.
EXAMPLE 9-4:
CLRF
CLRF
MOVLW
MOVWF
MOVLW
MOVWF
SS
.
EN
D
PORTD
LATD
07h
CMCON
0CFh
TRISD
Schmitt
Trigger
V
N
Vss
P
DD
INITIALIZING PORTD
; Initialize PORTD by
; clearing output
; data latches
; Alternate method
; to clear output
; data latches
; comparator off
; Value used to
; initialize data
; direction
; Set RD3:RD0 as inputs
; RD5:RD4 as outputs
; RD7:RD6 as inputs
© 2006 Microchip Technology Inc.
C1IN+ pin
RD0/PSP0/
(1)

Related parts for PIC18F458T-I/PT