C505_9708 SIEMENS [Siemens Semiconductor Group], C505_9708 Datasheet - Page 48

no-image

C505_9708

Manufacturer Part Number
C505_9708
Description
8-Bit CMOS Microcontroller
Manufacturer
SIEMENS [Siemens Semiconductor Group]
Datasheet
Example 1 : Using only One Datapointer (Code for a C501)
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
C505 / C505C
1997-08-01
28
2
2
2
2
2
2
2
2
2
2
2
2
2
2

Related parts for C505_9708