參數(shù)資料
型號: PIC14000-04/SO
廠商: Microchip Technology
文件頁數(shù): 70/153頁
文件大?。?/td> 0K
描述: IC MCU OTP 4KX14 A/D 28SOIC
產(chǎn)品培訓模塊: Asynchronous Stimulus
8-bit PIC® Microcontroller Portfolio
標準包裝: 27
系列: PIC® 14
核心處理器: PIC
芯體尺寸: 8-位
速度: 4MHz
連通性: I²C
外圍設備: POR,溫度傳感器,WDT
輸入/輸出數(shù): 20
程序存儲器容量: 7KB(4K x 14)
程序存儲器類型: OTP
RAM 容量: 192 x 8
電壓 - 電源 (Vcc/Vdd): 2.7 V ~ 6 V
數(shù)據(jù)轉換器: 斜率 A/D
振蕩器型: 內(nèi)部
工作溫度: 0°C ~ 70°C
封裝/外殼: 28-SOIC(0.295",7.50mm 寬)
包裝: 管件
配用: ISPICR1-ND - ADAPTER IN-CIRCUIT PROGRAMMING
309-1073-ND - ADAPTER 28-SOIC TO 28-SOIC
309-1024-ND - ADAPTER 28-SOIC TO 28-DIP
309-1023-ND - ADAPTER 28-SOIC TO 28-DIP
1996 Microchip Technology Inc.
Preliminary
DS40122B-page 23
PIC14000
4.3
PCL and PCLATH
The program counter (PC) is 13-bits wide. The low
byte, PCL, is a readable and writable register. The high
byte of the PC (PCH) is not directly readable or
writable. PCLATH is a holding register for PC<12:8>
where contents are transferred to the upper byte of the
program counter. When PC is loaded with a new value
during a CALL, GOTO or a write to PCL, the high bits of
PC are loaded from PCLATH as shown in Figure 4-9.
FIGURE 4-9:
LOADING OF PC IN
DIFFERENT SITUATIONS
4.3.1
COMPUTED GOTO
When doing a table read using a computed GOTO
method, care should be exercised if the table location
crosses a PCL memory boundary (each 256 byte
block). Refer to the application note “Table Read Using
the PIC16CXX”(AN556).
4.3.2
STACK
The PIC14000 has an 8 deep x 13-bit wide hardware
stack (Figure 4-1). The stack space is not part of either
program or data space and the stack pointer is not
readable or writable. The PC is PUSHed in the stack
when a CALL instruction is executed or an interrupt is
acknowledged. The stack is POPed in the event of a
RETURN,
RETLW
or a RETFIE instruction execution.
PCLATH is not affected by a “PUSH” or a “POP”
operation.
The stack operates as a circular buffer. This means
that after the stack has been “PUSHed” eight times, the
ninth push overwrites the value that was stored from
the rst push. The tenth push overwrites the second
push (and so on).
Note:
On POR, the contents of the PCLATH
register are unknown. The PCLATH should
be initialized before a CALL, GOTO, or any
instruction that modies the PCL register is
executed.
PC
12
8
7
0
5
PCLATH<4:0>
PCLATH
INST with PCL
as dest
ALU result
GOTO, CALL
Opcode <10:0>
8
PC
12
11 10
0
11
PCLATH<4:3>
PCH
PCL
87
2
PCLATH
PCH
PCL
4.3.3
PROGRAM MEMORY PAGING
The PIC14000 has 4K of program memory, but the
CALL
and GOTO instructions only have a 11-bit address
range. This 11-bit address range allows a branch within
a 2K program memory page size. To allow CALL and
GOTO
instructions to address the entire 4K program
memory address range, there must be another bit to
specify the program memory page. This paging bit
comes from the PCLATH<3> bit (Figure 4-9). When
doing a CALL or GOTO instruction, the user must ensure
that this page bit (PCLATH<3>) is programmed to the
desired program memory page. If a CALL instruction (or
interrupt) is executed, the entire 13-bit PC is pushed
onto
the
stack. Therefore,
manipulation
of
the
PCLATH<3> is not required for the return instructions
(which pops the PC from the stack).
Example 4-1 shows the calling of a subroutine in
page 1 of the program memory. This example assumes
that the PCLATH is saved and restored by the interrupt
service routine (if interrupts are used).
EXAMPLE 4-1:
CALL OF A SUBROUTINE IN
PAGE 1 FROM PAGE 0
Note 1: There are no STATUS bits to indicate
stack
overow
or
stack
underow
conditions.
Note 2: There are no instruction mnemonics
called PUSH nor POP. These are actions
that occur from the execution of the CALL,
RETURN, RETLW,
or RETFIE instructions,
or the vectoring to an interrupt address
Note:
The PIC14000 ignores the PCLATH<4>
bit, which is used for program memory
pages 2 and 3 (1000h-1FFFh). The use of
PCLATH<4>
as
a
general
purpose
read/write bit is not recommended since
this may affect upward compatibility with
future products.
ORG 0X500
BSF
PCLATH,
3 ; Select page 1 (800h-FFFh)
CALL
SUB1_P1
; Call subroutine in
:
; page 1 (800h-FFFh)
:
ORG 0X900
SUB1 P1 :
; called subroutine
:
; page 1 (800h-FFFh)
:
RETURN
; return to page 0
; (000h-7FFh)
相關PDF資料
PDF描述
PIC18F8622-I/PT IC PIC MCU FLASH 32KX16 80TQFP
PIC18LF4680-I/PT IC MCU FLASH 32KX16 44TQFP
PIC32MX360F512L-80V/BG IC MCU 32BIT 512KB FLASH 121XBGA
PIC16F874-20I/L IC MCU FLASH 4KX14 EE 44PLCC
DSPIC33FJ256MC710-I/PT IC DSPIC MCU/DSP 256K 100TQFP
相關代理商/技術參數(shù)
參數(shù)描述
PIC14000-20/SO 功能描述:8位微控制器 -MCU 7KB 192 RAM 20 I/O RoHS:否 制造商:Silicon Labs 核心:8051 處理器系列:C8051F39x 數(shù)據(jù)總線寬度:8 bit 最大時鐘頻率:50 MHz 程序存儲器大小:16 KB 數(shù)據(jù) RAM 大小:1 KB 片上 ADC:Yes 工作電源電壓:1.8 V to 3.6 V 工作溫度范圍:- 40 C to + 105 C 封裝 / 箱體:QFN-20 安裝風格:SMD/SMT
PIC14000-20/SP 功能描述:8位微控制器 -MCU 7KB 192 RAM 20 I/O RoHS:否 制造商:Silicon Labs 核心:8051 處理器系列:C8051F39x 數(shù)據(jù)總線寬度:8 bit 最大時鐘頻率:50 MHz 程序存儲器大小:16 KB 數(shù)據(jù) RAM 大小:1 KB 片上 ADC:Yes 工作電源電壓:1.8 V to 3.6 V 工作溫度范圍:- 40 C to + 105 C 封裝 / 箱體:QFN-20 安裝風格:SMD/SMT
PIC14000-20/SS 功能描述:8位微控制器 -MCU 7KB 192 RAM 20 I/O RoHS:否 制造商:Silicon Labs 核心:8051 處理器系列:C8051F39x 數(shù)據(jù)總線寬度:8 bit 最大時鐘頻率:50 MHz 程序存儲器大小:16 KB 數(shù)據(jù) RAM 大小:1 KB 片上 ADC:Yes 工作電源電壓:1.8 V to 3.6 V 工作溫度范圍:- 40 C to + 105 C 封裝 / 箱體:QFN-20 安裝風格:SMD/SMT
PIC14000-20I/P 制造商:Microchip Technology Inc 功能描述:MCU 8BIT PIC14 RISC 7KB EPROM 5V - Bulk
PIC14000-20I/SO 功能描述:8位微控制器 -MCU 7KB 192 RAM 20 I/O RoHS:否 制造商:Silicon Labs 核心:8051 處理器系列:C8051F39x 數(shù)據(jù)總線寬度:8 bit 最大時鐘頻率:50 MHz 程序存儲器大小:16 KB 數(shù)據(jù) RAM 大小:1 KB 片上 ADC:Yes 工作電源電壓:1.8 V to 3.6 V 工作溫度范圍:- 40 C to + 105 C 封裝 / 箱體:QFN-20 安裝風格:SMD/SMT