System Installation
96M4371o
User’s Manual
3-11
Programming Guide:
For example,
LD7_CR25h_Bit1.P1; Let Function select GPIO11
LD7_CRC0h_Bit1.P1; Let GPIO11 as Simple I/O Function
LD7_CRC8h_Bit2.P1; Let GPIO12 as Output
LD7_CRCAh_Bit3.P0; Let GPIO33 as Input
How to access IT8721 CR?
In 96M4371o, the Test 1 = 002Eh, and Test 2 = 002Fh.
Test 1 and Test 2 are 2 IO ports needed to access IT8721 CR.
Test 1 is the Index Port, Test 2 is the Data Port.
CR index number needs to be written into Test 1 first,
Then the data will be read/written from/to Test 2.
To R/W IT8721 CR, it is needed to Enter/Enable Configuration Mode first.
When completing the programming, it is suggested to Exit/Disable Configuration
Mode.
Enter Configuration Mode: Write 87h to IO port Test 1 twice.
Exit Configuration Mode: Set bit 1 of the configure control register (index=02h) to
"1" to exit.
3.6.3
Example
.model small
.386p
.stack
.data
ADDRESS
dw
0FFFFh
.code
pgm:
mov
ADDRESS,002eh
; I suppose 2Eh that is the address of
SIO
mov
dx, ADDRESS
; enter MB PnP mode in 2Eh
mov al, 87h
out
dx, al
mov al, 01h
out dx, al
nop
mov al, 55h
out dx, al
nop
mov al, 55h
out dx, al
Содержание 96M4371o
Страница 9: ...System Overview 96M4371o User s Manual 1 6 1 3 1 Mechanical Drawing ...
Страница 10: ...System Overview 96M4371o User s Manual 1 7 ...
Страница 27: ...System Installation 96M4371o User s Manual 3 9 out dx al mov ah 4ch int 21h return dos end pgm ...
Страница 31: ...System Installation 96M4371o User s Manual 3 13 int 10h ...
Страница 33: ...System Installation 96M4371o User s Manual 3 15 and al 00h Parallel Port Disable ...
Страница 35: ...System Installation 96M4371o User s Manual 3 17 out dx al ...
Страница 37: ...System Installation 96M4371o User s Manual 3 19 nop ...
Страница 39: ...System Installation 96M4371o User s Manual 3 21 in al dx ...
Страница 41: ...System Installation 96M4371o User s Manual 3 23 mov ax bx ...
Страница 44: ...System Installation 96M4371o User s Manual 3 26 mov al 02h out dx al ...
Страница 65: ...BIOS Setup Information 96M4371o User s Manual 4 20 H W monitor ...
Страница 66: ...BIOS Setup Information 96M4371o User s Manual 4 21 Thermal Configuration ...