C509-L_97 SIEMENS [Siemens Semiconductor Group], C509-L_97 Datasheet - Page 60

no-image

C509-L_97

Manufacturer Part Number
C509-L_97
Description
8-Bit CMOS Microcontroller
Manufacturer
SIEMENS [Siemens Semiconductor Group]
Datasheet
Example 1: Using only One Datapointer (Code for an 8051)
Initialization Routine
MOV
MOV
MOV
MOV
Table Look-up Routine under Real Time Conditions
PUSH
PUSH
MOV
MOV
;INC
;CJNE
MOVC
MOV
MOV
MOV
MOV
INC
MOVX
MOV
MOV
POP
POP
;
Semiconductor Group
LOW(SRC_PTR), #0FFH
HIGH(SRC_PTR), #1FH
LOW(DES_PTR), #0A0H
HIGH(DES_PTR), #2FH
DPL
DPH
DPL, LOW(SRC_PTR)
DPH, HIGH(SRC_PTR)
DPTR
A,@DPTR
LOW(SRC_PTR), DPL
HIGH(SRC_PTR), DPH
DPL, LOW(DES_PTR)
DPH, HIGH(DES_PTR)
DPTR
@DPTR, A
LOW(DES_PTR), DPL
HIGH(DES_PTR),DPH
DPH
DPL
;Initialize shadow_variables with source_pointer
;Initialize shadow_variables with destination_pointer
;
;Save old datapointer
;
;Load Source Pointer
;
Increment and check for end of table (execution time
not relevant for this consideration)
;Fetch source data byte from ROM table
;Save source_pointer and
;load destination_pointer
;
;
;Increment destination_pointer
;(ex. time not relevant)
;Transfer byte to destination address
;Save destination_pointer
;
;Restore old datapointer
;
Total execution time (machine cycles):
4-8
External Bus Interface
Number of cycles
28
1997-10-01
2
2
2
2
2
2
2
2
2
2
2
2
2
2
C509-L

Related parts for C509-L_97