首先告诉你8253只有3个计数器,故没有你说的计数器3!
设8253端口地址分别为40H、41H、42H、43H
计数器0初始化:
MOV AL,32H
OUT 43H,AL
MOV AL,00H
OUT 40H,AL
MOV AL,30H
OUT 40H,AL
计数器1初始化:
MOV AL,74H
OUT 43H,AL
MOV AL,10H
OUT 41H,AL
MOV AL,20H
OUT 41H,AL
计数器2初始化:
MOV AL,0B8H
OUT 43H,AL
MOV AL,30H
OUT 42H,AL
MOV AL,40H
OUT 42H,AL
(希望我的答案能够解决你的问题,谢谢!)