Experiment No6

download Experiment No6

of 2

Transcript of Experiment No6

  • 7/23/2019 Experiment No6

    1/2

    Experiment No: 6

    To develop and execute the program to interface DAC 0808 to the

    Microcontroller 8051.DAC (STA!CAS"#

    Aim$ Write a clanguage program for the Microcontroller 8051 to generate staircase waveform

    using the !" # !" is interface$ using %ort

    "%uipment$ '"51 ( %" ( Mini51)%E ( !" *nterface +oar$ ( ",-#

    Source code$.inclu$e /*ntel8051#h

    .inclu$e/stan$ar$#h

    .$efine !2!%-,2 %&

    unsigne$ char g34ata

    voi$ main 7

    9while71

    9

    for7g34ata0g34ata/&56g34ata;;

    9

    !2!%-,2 g34ata

    asm nop