PIC17C42 Microchip Technology, PIC17C42 Datasheet - Page 46

no-image

PIC17C42

Manufacturer Part Number
PIC17C42
Description
High-Performance 8-Bit CMOS EPROM/ROM Microcontroller
Manufacturer
Microchip Technology
Datasheets

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC17C42-16/JW
Manufacturer:
AD
Quantity:
12
Part Number:
PIC17C42A-16/L
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC17C42A-16/PQ
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC17C42A-16/PQ
Manufacturer:
MICROCH
Quantity:
20 000
Part Number:
PIC17C42A-16/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC17C42A-16E/L
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC17C42A-16E/PQ
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC17C42A-25/P
Manufacturer:
MICROCLOCK
Quantity:
20 000
PIC17C4X
7.2
Table writes to external memory are always two-cycle
instructions. The second cycle writes the data to the
external memory location. The sequence of events for
an external memory write are the same for an internal
write.
FIGURE 7-5:
DS30412C-page 46
Note:
Note:
Table Writes to External Memory
If external write GLINTD = '1', Enable bit = '1', '1'
If an interrupt is pending or occurs during
the TABLWT , the two cycle table write
completes. The RA0/INT, TMR0, or T0CKI
interrupt flag is automatically cleared or
the
acknowledged.
AD15:AD0
pending
Instruction
executed
TABLWT WRITE TIMING (EXTERNAL MEMORY)
Instruction
fetched
ALE
WR
OE
peripheral
Q1 Q2 Q3 Q4
'1'
INST (PC-1)
TABLWT
PC
interrupt
Q1 Q2 Q3 Q4
TABLWT cycle1
is
INST (PC+1)
PC+1
Flag bit, Do table write. The highest pending interrupt is cleared.
7.2.2
The “i” operand of the TABLWT instruction can specify
that the value in the 16-bit TBLPTR register is auto-
matically
Example 7-1, the TBLPTR register is not automatically
incremented.
EXAMPLE 7-1:
CLRWDT
MOVLW
MOVWF
MOVLW
MOVWF
MOVLW
TLWT
MOVLW
TABLWT
Q1 Q2 Q3 Q4
Data write cycle
TABLWT cycle2
TBL
TABLE WRITE CODE
incremented
HIGH (TBL_ADDR) ; Load the Table
TBLPTRH
LOW (TBL_ADDR)
TBLPTRL
HIGH (DATA)
1, WREG
LOW (DATA)
0,0,WREG
Data out
TABLE WRITE
Q1 Q2 Q3 Q4
INST (PC+2)
INST (PC+1)
1996 Microchip Technology Inc.
PC+2
for
; Clear WDT
;
;
;
; Load HI byte
;
; Load LO byte
;
;
;
;
the
address
in TABLATCH
in TABLATCH
and write to
program memory
(Ext. SRAM)
next
write.
In

Related parts for PIC17C42