Specifications

©
2008 Advanced Micro Devices Inc.
Sample Programs
AMD SB600 BIOS Developer’s Guide (Public Version) Proprietary
Page 95
jnz test_again ; If bit 0 == 1, codec is not ready for command
mov eax, cs:[si] ; Get the command from the table
or eax, ecx ; Add codec number 0 to 3
mov Dword PTR ES:[ebx+60h], eax ; Write immediate command
call ATI_SB_Cfg_Azalia_Delay ; About 30 uSec delay
add si, 4 ; Update the pointer
jmp loop_Immediat_Command_Output_Interface ; Next command
ATI_SB_Cfg_Azalia_Pin_CMD_exit:
popad
ret
ATI_SB_Cfg_Azalia_Pin_CMD ENDP
;************************************************************************
: ATI_SB_Cfg_Azalia_Delay *
; *
; Wait about 30 uSec *
; *
: Input : None *
;************************************************************************
ATI_SB_Cfg_Azalia_Delay PROC NEAR
push cx
mov cx, 4
call ATI_fixed_delay_far ; Wait approx cx * 7 uSec
pop cx
ret
ATI_SB_Cfg_Azalia_Delay ENDP
;***********************************************************************
; ATI_Fixed_delay_1ms_FAR *
; *
; Delay for approx 1 mSec *
; *
; Input: None *
;************************************************************************
PUBLIC ATI_fixed_delay_1ms_FAR
ATI_fixed_delay_1ms_FAR PROC FAR
push cx
mov cx, 1000/15
call ATI_fixed_delay
pop cx
ret
ATI_fixed_delay_1ms_FAR ENDP
;************************************************************************
; ATI_fixed_delay_far *