Interfaces and Connectors
EBX-11 Reference manual
58
; X4 = 35.2Hz XA = 30 KHz
; X5 = 44.0Hz XB = 25 KHz (default)
;
MOV DX, C70h
MOV AL, 5Fh ;Zone 1 Range/PWM 1 Frequency
OUT DX, AL
MOV DX, C71h
IN AL, DX ;Read Current Value
AND AL, F1h ;Set to 14.6 Hz
OUT DX, AL
;Re-start the SCH3114 Hardware Monitor (required)
MOV DX, C70h ;Hardware Monitor index port
MOV AL, 40h ;Ready,Lock,Start Register
OUT DX, AL
MOV DX, C71h ;Hardware Monitor data port
IN AL, DX ;Read Current Value
OR AL, 1h ;Enable Start bit
OUT DX, AL
;Reading FanTachs
;Read FanTach LSB first then read the latched MSB
; fantach 1 LSB = 28h
; fantach 1 MSB = 29h
; fantach 2 LSB = 2Ah
; fantach 2 MSB = 2Bh
; fantach 3 LSB = 2Ch
; fantach 3 MSB = 2Dh
;
MOV DX, C70h
MOV AL, 28h ;FanTach 1 LSB
OUT DX, AL
MOV DX, C71h
IN BL, DX
MOV DX, C70h
MOV AL, 29h ;FanTach 1 MSB
IN BH, DX
;BX now contains 16-bit number of 90KHz pulses that
;were counted within 5 edges (2 pulses) of the tach input.
;Input Frequency f = 1 / (BX * 11.11uS / 2), RPMs = f * 60
StockCheck.com