參數(shù)資料
型號(hào): MTA81010-LPI/P
元件分類: 微控制器/微處理器
英文描述: 8-BIT, OTPROM, 4 MHz, RISC MICROCONTROLLER, PDIP28
封裝: PLASTIC, DIP-28
文件頁(yè)數(shù): 10/76頁(yè)
文件大?。?/td> 745K
代理商: MTA81010-LPI/P
MTA81010
DS39005D-page 18
1995 Microchip Technology Inc.
3.2.6
PROGRAM COUNTER
The program counter generates the addresses for up to
2048 x 12 on-chip EPROM/ROM cells containing the
program instruction words (Figure 3-7).
Depending on the device type, the program counter
and its associated two-level hardware stack is 9-bits or
11-bits wide.
The program counter is set to all '1's upon RESET.
During program execution it is auto-incremented with
each instruction unless the result of that instruction
changes the PC itself.
a)
The GOTO instruction allows the direct loading of
the lower nine program counter bits (PC<8:0>).
In the case where the program memory is
greater than 512 bytes, the upper two bits of PC
(PC<10:9>) are loaded with page select bits
PA1:PA0 (STATUS<6:5>). Thus, GOTO allows
jumps to any location on any page.
b)
The CALL instruction loads the lower 8-bits of
the PC directly, while the ninth bit is cleared to
'0'. The PC value, incremented by one, will be
pushed into the stack.
In cases where the
program memory is greater than 512 bytes, the
upper 2-bits of PC (PC<10:9>) are loaded with
Page Select bits PA1:PA0 (STATUS<6:5>).
c)
The RETLW instruction loads the program
counter with the Top Of Stack (TOS) contents.
d)
If the PC is the destination in any instruction
(e.g., MOVWF PC, ADDWF PC, or BSF PC,5)
then the computed 8-bit result will be loaded into
the lower 8-bits of program counter. The ninth bit
of PC will be cleared. In case where the pro-
gram memory is greater than 512 bytes,
PC<10:9> will be loaded with Page Select bits
PA1:PA0 (STATUS<6:5>).
TABLE 3-4:
PROGRAM COUNTER STACK
WIDTH
Part #
PC width
Stack width
PIC16C54\CR54
9-bit
It should be noted that because bit8 (ninth bit) of the PC
is cleared in the CALL instruction or any instruction
which writes to the PC (e.g., MOVWF PC), all subroutine
calls or computed jumps are limited to the first 256
locations of any program memory page (512 words
long).
Incrementing the program counter when it is pointing to
the last address of a selected memory page is also
possible and will cause the program to continue in the
next higher page. However, the page preselect bits in
the STATUS register will not be changed, and the next
GOTO
, CALL, ADDWF PC, or MOVWF PC instruction will
return to the previous page, unless the page preselect
bits have been updated under program control. For
example, an NOP at location 1FFh (page 0) increments
the PC to 200h (page 1). A GOTO
xxx
at 200h will
return the program to address xxxh on page 0 (assum-
ing that PA1:PA0 is clear).
Upon a RESET, page 0 is pre-selected while the
program counter addresses the last location in the last
page. Thus, a
GOTO
instruction at this location will
automatically cause the program to continue in page 0.
相關(guān)PDF資料
PDF描述
MTA81010S-RCI/SO 8-BIT, OTPROM, 4 MHz, RISC MICROCONTROLLER, PDSO28
MTA81010-XTI/P 8-BIT, OTPROM, 4 MHz, RISC MICROCONTROLLER, PDIP28
MTA81010T-XT/SO 8-BIT, OTPROM, 4 MHz, RISC MICROCONTROLLER, PDSO28
MTA81010S-XTI/SO 8-BIT, OTPROM, 4 MHz, RISC MICROCONTROLLER, PDSO28
MTA81010-LPI/SO 8-BIT, OTPROM, 4 MHz, RISC MICROCONTROLLER, PDSO28
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
MTA8106DGVRA 功能描述:SW TOGGLE SPDT VERT RT ANG PC 6A RoHS:否 類別:開(kāi)關(guān) >> 撥動(dòng)開(kāi)關(guān) 系列:MTA 綠 標(biāo)準(zhǔn)包裝:1 系列:A 電路:雙刀雙擲 開(kāi)關(guān)功能:開(kāi)-開(kāi)-開(kāi) 觸點(diǎn)額定電壓:6A @ 125VAC 觸動(dòng)器類型:扁平型 觸動(dòng)器長(zhǎng)度:11.38mm 發(fā)光:不發(fā)光 安裝類型:面板安裝 端接類型:焊片 軸襯螺紋:1/4-40 包裝:散裝
MTA8106DVRA 功能描述:SWITCH TOGGLE SPDT VRA PC 6A RoHS:否 類別:開(kāi)關(guān) >> 撥動(dòng)開(kāi)關(guān) 系列:MTA 綠 標(biāo)準(zhǔn)包裝:1 系列:A 電路:雙刀雙擲 開(kāi)關(guān)功能:開(kāi)-開(kāi)-開(kāi) 觸點(diǎn)額定電壓:6A @ 125VAC 觸動(dòng)器類型:扁平型 觸動(dòng)器長(zhǎng)度:11.38mm 發(fā)光:不發(fā)光 安裝類型:面板安裝 端接類型:焊片 軸襯螺紋:1/4-40 包裝:散裝
MTA8106DVRA04 功能描述:SWITCH TOGGLE SPDT VRA PC 6A RoHS:是 類別:開(kāi)關(guān) >> 撥動(dòng)開(kāi)關(guān) 系列:MTA 綠 標(biāo)準(zhǔn)包裝:1 系列:A 電路:雙刀雙擲 開(kāi)關(guān)功能:開(kāi)-開(kāi)-開(kāi) 觸點(diǎn)額定電壓:6A @ 125VAC 觸動(dòng)器類型:扁平型 觸動(dòng)器長(zhǎng)度:11.38mm 發(fā)光:不發(fā)光 安裝類型:面板安裝 端接類型:焊片 軸襯螺紋:1/4-40 包裝:散裝
MTA8106EGRA 功能描述:SW TOGGLE SPDT RT ANG PC 6A RoHS:否 類別:開(kāi)關(guān) >> 撥動(dòng)開(kāi)關(guān) 系列:MTA 綠 標(biāo)準(zhǔn)包裝:1 系列:A 電路:雙刀雙擲 開(kāi)關(guān)功能:開(kāi)-開(kāi)-開(kāi) 觸點(diǎn)額定電壓:6A @ 125VAC 觸動(dòng)器類型:扁平型 觸動(dòng)器長(zhǎng)度:11.38mm 發(fā)光:不發(fā)光 安裝類型:面板安裝 端接類型:焊片 軸襯螺紋:1/4-40 包裝:散裝
MTA8106EGRA04 功能描述:SWITCH TOGGLE SPDT RT ANG PC 6A RoHS:是 類別:開(kāi)關(guān) >> 撥動(dòng)開(kāi)關(guān) 系列:MTA 綠 標(biāo)準(zhǔn)包裝:1 系列:A 電路:雙刀雙擲 開(kāi)關(guān)功能:開(kāi)-開(kāi)-開(kāi) 觸點(diǎn)額定電壓:6A @ 125VAC 觸動(dòng)器類型:扁平型 觸動(dòng)器長(zhǎng)度:11.38mm 發(fā)光:不發(fā)光 安裝類型:面板安裝 端接類型:焊片 軸襯螺紋:1/4-40 包裝:散裝