PIC16C57C-04/P Microchip Technology Inc., PIC16C57C-04/P Datasheet - Page 34

no-image

PIC16C57C-04/P

Manufacturer Part Number
PIC16C57C-04/P
Description
28 PIN, 3 KB OTP, 72 RAM, 20 I/O
Manufacturer
Microchip Technology Inc.
Datasheet

Specifications of PIC16C57C-04/P

Cpu Speed
10 MIPS
Eeprom Memory
0 Bytes
Input Output
20
Memory Capacity
2048 Bytes
Memory Type
OTP
Number Of Bits
8
Number Of Leads
20
Package Type
28-pin PDIP
Programmable Memory
3K Bytes
Ram Size
72 Bytes
Speed
4 MHz
Timers
1- 8-bit
Voltage, Range
2.5-5.5 V
Lead Free Status / Rohs Status
RoHS Compliant part Electrostatic Device

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC16C57C-04/P
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
PIC16C5X
6.5.1
If the Program Counter is pointing to the last address of
a selected memory page, when it increments it will
cause the program to continue in the next higher page.
However, the page preselect bits in the STATUS Reg-
ister will not be updated. Therefore, the next GOTO,
CALL or modify PCL instruction will send the program
to the page specified by the page preselect bits (PA0 or
PA<1:0>).
For example, a NOP at location 1FFh (page 0) incre-
ments the PC to 200h (page 1). A GOTO xxx at 200h
will return the program to address xxh on page 0
(assuming that PA<1:0> are clear).
To prevent this, the page preselect bits must be
updated under program control.
6.5.2
The Program Counter is set upon a RESET, which
means that the PC addresses the last location in the
last page (i.e., the RESET vector).
The STATUS Register page preselect bits are cleared
upon a RESET, which means that page 0 is pre-
selected.
Therefore, upon a RESET, a GOTO instruction at the
RESET vector location will automatically cause the pro-
gram to jump to page 0.
6.6
PIC16C5X devices have a 10-bit or 11-bit wide, two-
level hardware push/pop stack.
A CALL instruction will push the current value of stack
1 into stack 2 and then push the current program
counter value, incremented by one, into stack level 1. If
more than two sequential CALL’s are executed, only
the most recent two return addresses are stored.
A RETLW instruction will pop the contents of stack level
1 into the program counter and then copy stack level 2
contents into level 1. If more than two sequential
RETLW’s are executed, the stack will be filled with the
address previously stored in level 2. Note that the
W Register will be loaded with the literal value specified
in the instruction. This is particularly useful for the
implementation of data look-up tables within the pro-
gram memory.
For the RETLW instruction, the PC is loaded with the
Top of Stack (TOS) contents. All of the devices covered
in this data sheet have a two-level stack. The stack has
the same bit width as the device PC, therefore, paging
is not an issue when returning from a subroutine.
DS30453D-page 32
Stack
PAGING CONSIDERATIONS –
PIC16C56/CR56, PIC16C57/CR57
AND PIC16C58/CR58
EFFECTS OF RESET
Preliminary
2002 Microchip Technology Inc.

Related parts for PIC16C57C-04/P