PIC16F946T-I/PT Microchip Technology, PIC16F946T-I/PT Datasheet - Page 49

Microcontroller

PIC16F946T-I/PT

Manufacturer Part Number
PIC16F946T-I/PT
Description
Microcontroller
Manufacturer
Microchip Technology
Series
PIC® 16Fr

Specifications of PIC16F946T-I/PT

Core Processor
PIC
Core Size
8-Bit
Speed
20MHz
Connectivity
I²C, SPI, UART/USART
Peripherals
Brown-out Detect/Reset, LCD, POR, PWM, WDT
Number Of I /o
53
Program Memory Size
14KB (8K x 14)
Program Memory Type
FLASH
Eeprom Size
256 x 8
Ram Size
336 x 8
Voltage - Supply (vcc/vdd)
2 V ~ 5.5 V
Data Converters
A/D 8x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Package / Case
64-TFQFP
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With
MA160011 - DAUGHTER BOARD PICDEM LCD 16F91X
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Lead free / RoHS Compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC16F946T-I/PT
Manufacturer:
MICROCHIP
Quantity:
12 000
Part Number:
PIC16F946T-I/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
3.4
PORTC is an 8-bit bidirectional port. PORTC is
multiplexed with several peripheral functions. PORTC
pins have Schmitt Trigger input buffers.
All PORTC pins have latch bits (PORTC register).
They, when written, will modify the contents of the
PORTC latch; thus, modifying the value driven out on
a pin if the corresponding TRISC bit is configured for
output.
REGISTER 3-7:
REGISTER 3-8:
© 2005 Microchip Technology Inc.
Note:
PORTC and TRISC Registers
bit 7-0
bit 7-0
Analog lines that carry LCD signals
(i.e., SEGx, VLCDy, where x and y are
segment and LCD bias voltage identifiers)
are shown as direct connections to the
device pins. The signals are outputs from
the LCD module and may be tri-stated,
depending on the configuration of the LCD
module.
PORTC – PORTC REGISTER (ADDRESS: 07h)
TRISC – PORTC TRI-STATE REGISTER (ADDRESS: 87h)
bit 7
RC<7:0>: PORTC I/O Pin bits
1 = Port pin is >V
0 = Port pin is <V
Legend:
R = Readable bit
- n = Value at POR
bit 7
TRISC<7:0>: PORTC Tri-State Control bits
1 = PORTC pin configured as an input (tri-stated)
0 = PORTC pin configured as an output
Legend:
R = Readable bit
- n = Value at POR
TRISC7
Note:
R/W-x
R/W-1
RC7
TRISC<7:6> always reads ‘1’ in XT, HS and LP OSC modes.
TRISC6
R/W-x
R/W-1
RC6
IH
IL
TRISC5
R/W-x
R/W-1
RC5
Preliminary
W = Writable bit
‘1’ = Bit is set
W = Writable bit
‘1’ = Bit is set
TRISC4
R/W-x
R/W-1
RC4
EXAMPLE 3-3:
BCF
BCF
CLRF
BSF
BCF
MOVLW
MOVWF
BCF
BSF
CLRF
BCF
BCF
TRISC3
R/W-x
U = Unimplemented bit, read as ‘0’
‘0’ = Bit is cleared
R/W-1
U = Unimplemented bit, read as ‘0’
‘0’ = Bit is cleared
STATUS,RP0 ;Bank 0
STATUS,RP1 ;
PORTC
STATUS,RP0 ;Bank 1
STATUS,RP1 ;
FFh
TRISC
STATUS,RP0 ;Bank 2
STATUS,RP1 ;
LCDCON
STATUS,RP0 ;Bank 0
STATUS,RP1 ;
RC3
TRISC2
R/W-x
R/W-1
RC2
INITIALIZING PORTC
;Init PORTC
;Set RC<7:0> as inputs
;
;Disable VLCD<3:1>
;inputs on RC<2:0>
PIC16F946
x = Bit is unknown
x = Bit is unknown
TRISC1
R/W-x
R/W-1
RC1
DS41265A-page 47
TRISC0
R/W-x
R/W-1
RC0
bit 0
bit 0

Related parts for PIC16F946T-I/PT