参数资料
型号: PIC12C508AT-04/SN
厂商: Microchip Technology
文件页数: 25/113页
文件大小: 0K
描述: IC MCU OTP 512X12 8SOIC
产品培训模块: Asynchronous Stimulus
标准包装: 3,300
系列: PIC® 12C
核心处理器: PIC
芯体尺寸: 8-位
速度: 4MHz
外围设备: POR,WDT
输入/输出数: 5
程序存储器容量: 768B(512 x 12)
程序存储器类型: OTP
RAM 容量: 25 x 8
电压 - 电源 (Vcc/Vdd): 3 V ~ 5.5 V
振荡器型: 内部
工作温度: 0°C ~ 70°C
封装/外壳: 8-SOIC(0.154",3.90mm 宽)
包装: 带卷 (TR)
配用: 309-1046-ND - ADAPTER 8-SOIC TO 8-DIP
309-1045-ND - ADAPTER 8-SOIC TO 8-DIP
AC124001-ND - MODULE SKT PROMATEII 8DIP/SOIC
1999 Microchip Technology Inc.
DS40139E-page 19
PIC12C5XX
4.6
Program Counter
As a program instruction is executed, the Program
Counter (PC) will contain the address of the next
program instruction to be executed. The PC value is
increased by one every instruction cycle, unless an
instruction changes the PC.
For a GOTO instruction, bits 8:0 of the PC are provided
by the GOTO instruction word. The PC Latch (PCL) is
mapped to PC<7:0>. Bit 5 of the STATUS register
provides page information to bit 9 of the PC (Figure 4-
For a CALL instruction, or any instruction where the
PCL is the destination, bits 7:0 of the PC again are
provided by the instruction word. However, PC<8>
does not come from the instruction word, but is always
cleared (Figure 4-8).
Instructions where the PCL is the destination, or
Modify PCL instructions, include MOVWF PC, ADDWF
PC,
and BSF PC,5.
FIGURE 4-8:
LOADING OF PC
BRANCH INSTRUCTIONS -
PIC12C5XX
Note:
Because PC<8> is cleared in the CALL
instruction, or any Modify PCL instruction,
all subroutine calls or computed jumps are
limited to the first 256 locations of any pro-
gram memory page (512 words long).
PA0
STATUS
PC
87
0
PCL
9
10
Instruction Word
70
GOTO
Instruction
CALL
or Modify PCL Instruction
11
PA0
STATUS
PC
87
0
PCL
9
10
Instruction Word
70
11
Reset to ‘0’
4.6.1
EFFECTS OF RESET
The Program Counter is set upon a RESET, which
means that the PC addresses the last location in the
last page i.e., the oscillator calibration instruction. After
executing MOVLW XX, the PC will roll over to location
00h, and begin executing user code.
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 will
automatically cause the program to jump to page 0
until the value of the page bits is altered.
4.7
Stack
PIC12C5XX devices have a 12-bit wide L.I.F.O.
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
program memory.
Upon any reset, the contents of the stack remain
unchanged, however the program counter (PCL) will
also be reset to 0.
Note 1: There are no STATUS bits to indicate
stack overflows or stack underflow condi-
tions.
Note 2: There are no instructions mnemonics
called PUSH or POP. These are actions
that occur from the execution of the CALL
and RETLW instructions.
相关PDF资料
PDF描述
GRM2165C2A162JA01D CAP CER 1600PF 100V 5% NP0 0805
GRM2165C2A152JA01D CAP CER 1500PF 100V 5% NP0 0805
GRM2165C2A132JA01D CAP CER 1300PF 100V 5% NP0 0805
GRM2165C2A122JA01D CAP CER 1200PF 100V 5% NP0 0805
GRM2165C2A112JA01D CAP CER 1100PF 100V 5% NP0 0805
相关代理商/技术参数
参数描述
PIC12C508T 制造商:MICROCHIP 制造商全称:Microchip Technology 功能描述:8-Pin, 8-Bit CMOS Microcontroller
PIC12C508T-04/EJW 制造商:MICROCHIP 制造商全称:Microchip Technology 功能描述:8-Pin, 8-Bit CMOS Microcontrollers
PIC12C508T-04/EP 制造商:MICROCHIP 制造商全称:Microchip Technology 功能描述:8-Pin, 8-Bit CMOS Microcontrollers
PIC12C508T-04/ESM 制造商:MICROCHIP 制造商全称:Microchip Technology 功能描述:8-Pin, 8-Bit CMOS Microcontrollers
PIC12C508T-04/ESN 制造商:MICROCHIP 制造商全称:Microchip Technology 功能描述:8-Pin, 8-Bit CMOS Microcontrollers