2. Why Delay?
• CPU run with 11.059MHz clock frequency
• 1 Machine cycle (about 1 Second)
• Human eyes able to see only 14 frame /
Second
3. How to Delay ?
• Create loop (Each loop take time to complete)
• Create Nested loop to make more delay
• Use DJNZ as a tools for loop
• Write the code as Sub routine for easy to use
them.
13. Stepping Motor
• Program to
– Fill value #F0 to #FFH to memory address 20h to 2Fh
– Fill value #00 to #0FH to memory address 30h to 3Fh
– Make Left shift for every number that is just filled.
Refer to the display of the Emulator 8051 Software
– Complete the Additional operation (Don’t care carry
flag) of Top and bottom, store the result on the 40h to
4Fh. Such as
• 20h + 30h store in 40h
• 21h + 31h store in 41h and so on.