Document 1.rtf

Embed Size (px)

Citation preview

  • 8/10/2019 Document 1.rtf

    1/2

    Next step is writing the program. All the information about writing programs which include itscommands, operations and the microcontroller registers are available on the datasheet and Hi-Tech Toolsuite guide. But I will also tr to ma!e ou understand the first steps so that thedatasheet and guide ma prove useful. "ou can start ma!ing our own programs at the end ofthis tutorial.Now let us view a program for #$%&''A where & ()* are connected at the +T B & pins ofport B, from pin no //-012. This programs blin!s the ()*s which means the ()*s remain on for asecond and off for another second.Hi-Tech 3 3ode

    4include 5htc.h64define 78TA(7%)9 &111111void main2: TI;B

  • 8/10/2019 Document 1.rtf

    2/2

    until the value in +TB or an other port register is changed, the output from the correspondingport will also not change. ;o the output will drop from logic #2 to 1 logic 12 onl when thisline is executed. Again a dela of #111ms. )nd