PIC17LC756-08I/L Microchip Technology, PIC17LC756-08I/L Datasheet - Page 74

no-image

PIC17LC756-08I/L

Manufacturer Part Number
PIC17LC756-08I/L
Description
MICRO CTRL 16K LOW PWR 68PLCC
Manufacturer
Microchip Technology
Series
PIC® 17Cr
Datasheets

Specifications of PIC17LC756-08I/L

Core Processor
PIC
Core Size
8-Bit
Speed
8MHz
Connectivity
I²C, SPI, UART/USART
Peripherals
Brown-out Detect/Reset, POR, PWM, WDT
Number Of I /o
50
Program Memory Size
32KB (16K x 16)
Program Memory Type
OTP
Ram Size
902 x 8
Voltage - Supply (vcc/vdd)
3 V ~ 6 V
Data Converters
A/D 12x10b
Oscillator Type
External
Operating Temperature
-40°C ~ 85°C
Package / Case
68-PLCC
Lead Free Status / RoHS Status
Request inventory verification / Request inventory verification
Eeprom Size
-
PIC17C7XX
10.2
PORTB is an 8-bit wide, bi-directional port. The corre-
sponding data direction register is DDRB. A ’1’ in DDRB
configures the corresponding port pin as an input. A ’0’
in the DDRB register configures the corresponding port
pin as an output. Reading PORTB reads the status of
the pins, whereas writing to PORTB will write to the port
latch.
Each of the PORTB pins has a weak internal pull-up. A
single control bit can turn on all the pull-ups. This is
done by clearing the RBPU (PORTA<7>) bit. The weak
pull-up is automatically turned off when the port pin is
configured as an output. The pull-ups are enabled on
any RESET.
PORTB also has an interrupt-on-change feature. Only
pins configured as inputs can cause this interrupt to
occur (i.e., any RB7:RB0 pin configured as an output is
excluded from the interrupt-on-change comparison).
The input pins (of RB7:RB0) are compared with the
value in the PORTB data latch. The “mismatch” outputs
of RB7:RB0 are OR’d together to set the PORTB Inter-
rupt Flag bit, RBIF (PIR1<7>).
FIGURE 10-5:
DS30289B-page 74
Note: I/O pins have protection diodes to V
Weak
Pull-up
PORTB and DDRB Registers
OE
BLOCK DIAGRAM OF RB5:RB4 AND RB1:RB0 PORT PINS
DD
and V
Port
Input Latch
SS
Port
Data
.
Q
This interrupt can wake the device from SLEEP. The
user, in the Interrupt Service Routine, can clear the
interrupt by:
a)
b)
A mismatch condition will continue to set the RBIF bit.
Reading, then writing PORTB, will end the mismatch
condition and allow the RBIF bit to be cleared.
This interrupt-on-mismatch feature, together with soft-
ware configurable pull-ups on this port, allows easy
interface to a keypad and makes it possible for wake-
up on key depression. For an example, refer to Appli-
cation Note AN552, “Implementing Wake-up on
Keystroke.”
The interrupt-on-change feature is recommended for
wake-up on operations, where PORTB is only used for
the interrupt-on-change feature and key depression
operations.
Note:
CK
Read-Write PORTB (such as: MOVPF PORTB,
PORTB). This will end the mismatch condition.
Then, clear the RBIF bit.
D
On a device RESET, the RBIF bit is inde-
terminate, since the value in the latch may
be different than the pin.
Match Signal
from other
port pins
Q
CK
2000 Microchip Technology Inc.
D
Peripheral Data In
RBPU
WR_PORTB (Q4)
RD_PORTB (Q2)
WR_DDRB (Q4)
RD_DDRB (Q2)
(PORTA<7>)
Data Bus
RBIF

Related parts for PIC17LC756-08I/L