8253 program

pria123

pria123

@pria123-ecSGcb Oct 26, 2024
hey guys i've got this program to calculate time delay using 8253. pls help me with the codings. i don't get the logic.

MVI A,30H
OUT 0CEH
MVI A,05H
OUT 0C8H
MVI A,OOH
OUT 0C8H
HLT

pls help me guys!!!
thanks

Replies

Welcome, guest

Join CrazyEngineers to reply, ask questions, and participate in conversations.

CrazyEngineers powered by Jatra Community Platform

  • binu_ji

    binu_ji

    @binu-ji-93Lo05 Oct 28, 2008

    MVI A,30H
    OUT 0CEH
    Here 30H is the value which is stored in the control word of 8253.
    [​IMG]
    For control word operation please check the above figure,
    OUT 0C8H
    here 0C8h may be address of some device.