- This topic has 1 reply, 2 voices, and was last updated 8 years, 7 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
|
Microcontroller › 8051 › Help with assembly coding
Write a program that continuously flashes the LEDs on the PB-507 trainer as described below. The output LEDs will always be defined as follows regardless of the trainer you use: b7 b6 b5 b4 b3 b2 b1 b0. (11.0592 MHz crystal oscillator)
The only moves I can use is…
MOV
NOP
DJNZ
SJMP
something like this but I cant get the timing down.
this is very simple program
just you need is delay. make a delay loop of 0.5 sec – 500000 micro sec.
use it twice to get delay of 1 sec and four times to get delay of 4 sec thats it