PIC16LC923-04/PT Microchip Technology, PIC16LC923-04/PT Datasheet - Page 35

IC MCU OTP 4KX14 LCD DVR 64TQFP

PIC16LC923-04/PT

Manufacturer Part Number
PIC16LC923-04/PT
Description
IC MCU OTP 4KX14 LCD DVR 64TQFP
Manufacturer
Microchip Technology
Series
PIC® 16Cr
Datasheet

Specifications of PIC16LC923-04/PT

Core Processor
PIC
Core Size
8-Bit
Speed
4MHz
Connectivity
I²C, SPI
Peripherals
LCD, POR, PWM, WDT
Number Of I /o
25
Program Memory Size
7KB (4K x 14)
Program Memory Type
OTP
Ram Size
176 x 8
Voltage - Supply (vcc/vdd)
2.5 V ~ 6 V
Oscillator Type
External
Operating Temperature
0°C ~ 70°C
Package / Case
64-TFQFP
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Eeprom Size
-
Data Converters
-

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC16LC923-04/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
5.3
PORTC is an 6-bit bi-directional port. Each pin is indi-
vidually configurable as an input or output through the
TRISC register. PORTC is multiplexed with several
peripheral functions (Table 5-5). PORTC pins have
Schmitt Trigger input buffers.
When enabling peripheral functions, care should be
taken in defining TRIS bits for each PORTC pin. Some
peripherals override the TRIS bit to make a pin an out-
put, while other peripherals override the TRIS bit to
make a pin an input. Since the TRIS bit override is in
effect while the peripheral is enabled, read-mod-
ify-write instructions (BSF, BCF, XORWF) with TRISC
as destination should be avoided. The user should refer
to the corresponding peripheral section for the correct
TRIS bit settings.
EXAMPLE 5-3:
BCF
BCF
CLRF
BSF
MOVLW
MOVWF
TABLE 5-5: PORTC FUNCTIONS
TABLE 5-6: SUMMARY OF REGISTERS ASSOCIATED WITH PORTC
Name
RC0/T1OSO/T1CKI
RC1/T1OSI
RC2/CCP1
RC3/SCK/SCL
RC4/SDI/SDA
RC5/SDO
Legend: ST = Schmitt Trigger input
Address Name
07h
87h
Legend: x = unknown, u = unchanged, - = unimplemented, read as '0'. Shaded cells are not used by PORTC.
1997 Microchip Technology Inc.
STATUS,RP0 ; Select Bank0
STATUS,RP1
PORTC
STATUS,RP0 ;
0xCF
TRISC
PORTC and TRISC Register
PORTC
TRISC
INITIALIZING PORTC
; Initialize PORTC
; Value used to
; initialize data
; direction
; Set RC<3:0> as inputs
; RC<5:4> as outputs
; RC<7:6> always read 0
Bit 7
Bit#
bit0
bit1
bit2
bit3
bit4
bit5
Buffer Type
Bit 6
ST
ST
ST
ST
ST
ST
PORTC Data Direction Control Register
Bit 5
RC5
Function
Input/output port pin or Timer1 oscillator output or Timer1 clock input
Input/output port pin or Timer1 oscillator input
Input/output port pin or Capture input/Compare output/PWM output
Input/output port pin or the synchronous serial clock for both SPI and
I
Input/output port pin or the SPI Data In (SPI mode) or data I/O (I
mode).
Input/output port pin or Synchronous Serial Port data out
2
C modes.
Bit 4
RC4
Bit 3
RC3
FIGURE 5-5: PORTC BLOCK DIAGRAM
Data bus
WR TRIS
WR Port
RBPU
RB0/INT
Note 1: I/O pins have diode protection to V
Bit 2
RC2
(2)
2: To enable weak pull-ups, set the appropriate TRIS bit(s)
and clear the RBPU bit (OPTION<7>).
Bit 1
RC1
(PERIPHERAL OUTPUT
OVERRIDE)
RD TRIS
RD Port
Data Latch
TRIS Latch
D
D
Bit 0
RC0
CK
CK
Schmitt Trigger
Buffer
PIC16C9XX
Q
Q
--xx xxxx
--11 1111
Power-on
Value on
Reset
DD
DS30444E - page 35
Q
and V
EN
TTL
Input
Buffer
D
other resets
Value on all
--uu uuuu
--11 1111
SS
.
V
P
RD Port
DD
weak
pull-up
2
C
I/O
pin
(1)

Related parts for PIC16LC923-04/PT