I want to write assembly program for delay
turn on LED
wait 40 ms
turn off LED
8051 operating from 12MHZ crystal
I know I need to use loop , DJNZ condition two resistor R1, R2 The values loaded into R1 and R2 will determine the duration of the delay.
how to decide what is value of R1, R2
how to make loop ?
turn on LED
wait 40 ms
turn off LED
8051 operating from 12MHZ crystal
I know I need to use loop , DJNZ condition two resistor R1, R2 The values loaded into R1 and R2 will determine the duration of the delay.
how to decide what is value of R1, R2
how to make loop ?