PIC16LC923-04I/L Microchip Technology, PIC16LC923-04I/L Datasheet - Page 35
![IC,MICROCONTROLLER,8-BIT,PIC CPU,CMOS,LDCC,68PIN,PLASTIC](/photos/12/13/121323/c04-049_l_sml.jpg)
PIC16LC923-04I/L
Manufacturer Part Number
PIC16LC923-04I/L
Description
IC,MICROCONTROLLER,8-BIT,PIC CPU,CMOS,LDCC,68PIN,PLASTIC
Manufacturer
Microchip Technology
Series
PIC® 16Cr
Datasheet
1.PIC16C923-04L.pdf
(189 pages)
Specifications of PIC16LC923-04I/L
Rohs Compliant
YES
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
-40°C ~ 85°C
Package / Case
68-PLCC
Processor Series
PIC16LC
Core
PIC
Data Bus Width
8 bit
Data Ram Size
176 B
Interface Type
I2C, SPI
Maximum Clock Frequency
8 MHz
Number Of Programmable I/os
25
Number Of Timers
3
Operating Supply Voltage
2.5 V to 6 V
Maximum Operating Temperature
+ 85 C
Mounting Style
SMD/SMT
3rd Party Development Tools
52715-96, 52716-328, 52717-734
Development Tools By Supplier
ICE2000
Minimum Operating Temperature
- 40 C
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Eeprom Size
-
Data Converters
-
Lead Free Status / Rohs Status
Details
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
PIC16LC923-04I/L
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)