CPC522
C P C 5 2 2 U s e r M a n u a l
23
© 2 0 2 2 F a s t w e l V e r . 0 0 1
MOV DX, 303H
IN AL, DX
OUT DX, AL
Exit configuration mode:
MOV DX, 302H
MOV AL, 57H
OUT DX, AL
MOV AL, 46H
OUT DX, AL
Global configuration registers
INDEX
Type
HARD RESET
Configuration register
7h
R/W
01h
Logical Device Number
Logical Device Number register (index 7h)
Index = 7h
Bit
Name
Description
7:0
LDN
Write/Read:
Writing to this register selects the logical device
Configuration registers of logical device 1 (WDT)
INDEX
Address of I/O port
Type
HARD RESET
Configuration register
30h
-
R/W
Activate
38h
Base+0
R/W
Timer current value [7:0]
39h
Base+1
R/W
Timer current value [15:8]
3ah
Base+2
R/W
Timer current value [23:16]
3bh
Base+3
R/W
00h
Timer initial value [7:0]
3ch
Base+4
R/W
40h
Timer initial value [15:8]
3dh
Base+5
R/W
00h
Timer initial value [23:16]
3eh
Base+6
R/W
00h
Status register
3fh
Base+7
R/W
03h
Control register
60h
-
R/W
Base[15:8] - I/O port base address
bits[15:8]