lab no 10.docx

Upload: muzammil-ahmed

Post on 21-Feb-2018

214 views

Category:

Documents


0 download

TRANSCRIPT

  • 7/24/2019 Lab No 10.docx

    1/1

    Muzammil ahmed

    LAB#10

    Lab No 10

    Task: write a program for switching 4 relays 1 second for each using port in Bascomlanguage and show status of relay in hyper terminal.

    Code

    !aud"$00 %setting !audrate&crystal ''11(000 %setting )alue ofcrystal&*o %do loop&+1.0"1+1.1"0 %condition&+1.'"0+1.,"0+rint % -elay o 1 is / and -est are /&

    ait 1

    +1.0"0+1.1"1 %condition&+1.'"0+1.,"0+rint %-elay o ' is / and -est are /&

    ait 1

    +1.0"0 %condition&+1.1"0+1.'"1+1.,"0+rint %-elay o , is / and -est are /&

    ait 1

    +1.0"0+1.1"0 %condition %

    +1.'"0+1.,"1+rint %-elay o 4 is / and -est are /&

    ait 1

    Loop %return !ac2 tothe loop&

    3*

    Muzammil ahmed1,41 5B6*ate : 117187'01