W77C32F-40 Nuvoton Technology Corporation of America, W77C32F-40 Datasheet - Page 38

no-image

W77C32F-40

Manufacturer Part Number
W77C32F-40
Description
Manufacturer
Nuvoton Technology Corporation of America
Datasheet

Specifications of W77C32F-40

Lead Free Status / Rohs Status
Supplier Unconfirmed
MOV R2, #CNT
MOV R3, #SL
MOV R4, #SH
MOV R5, #DL
MOV R6, #DH
LOOP:
MOV DPL, R3
MOV DPH, R4
MOVX A, @DPTR
INC
MOV R3, DPL
MOV R4, DPH
MOV DPL, R5
MOV DPH, R6
MOVX @DPTR, A
INC
MOV DPL, R5
MOV DPH, R6
DJNZ R2, LOOP
Machine cycles in standard 8032 = 10 + (26 * CNT)
Machine cycles in W77C32 = 10 + (26 * CNT)
If CNT = 50
Clock cycles in standard 8032= ((10 + (26 *50)) * 12 = (10 + 1300) * 12 = 15720
Clock cycles in W77C32 = ((10 + (26 * 50)) * 4 = (10 + 1300) * 4 = 5240
Block Move with Two Data Pointers in W77C32:
; SH and SL are the high and low bytes of Source Address
; DH and DL are the high and low bytes of Destination Address
; CNT is the number of bytes to be moved
MOV R2, #CNT
MOV DPS, #00h
MOV DPTR, #DHDL
INC
MOV DPTR, #SHSL
LOOP:
MOVX
INC
DEC DPS
MOVX
INC
INC
DJNZ R2, LOOP
Machine cycles in W77C32 = 12 + (15 * CNT)
DPTR
DPTR
DPS
DPTR
DPTR
DPS
A, @DPTR ; Get data from Source block
@DPTR, A ; Write data to Destination
; Load R2 with the count value
; Save low byte of Source Address in R3
; Save high byte of Source address in R4
; Save low byte of Destination Address in R5
; Save high byte of Destination address in R6
; Load DPL with low byte of Source address
; Load DPH with high byte of Source address
; Get byte from Source to Accumulator
; Increment Source Address to next byte
; Save low byte of Source address in R3
; Save high byte of Source Address in R4
; Load low byte of Destination Address in DPL
; Load high byte of Destination Address in DPH
; Write data to destination
; Increment Destination Address
; Save low byte of new destination address in R5
; Save high byte of new destination address in R6
; Decrement count and do LOOP again if count <> 0
; Load R2 with the count value
; Clear DPS to point to DPTR
; Load DPTR with Destination address
; Set DPS to point to DPTR1
; Load DPTR1 with Source address
; Increment source address
; Clear DPS to point to DPTR
; Increment destination address
; Set DPS to point to DPTR1
; Check if all done
- 38 -
Machine Cycles of W77C32
W77C32/W77C032
Machine Cycles of W77C32
2
2
3
2
3
2
2
2
2
2
3
#
2
#
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2

Related parts for W77C32F-40