This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Instruction cycle

Hi,
I am generating pulse output through 8051 microcontroller using assembly langauge.
I don't wnat to use any timer for time delay, I would like to use instruction delays as follows...

CLR portbit......3 cycles
NOP..............1 cycle
NOP..............1 cycle
NOP..............1 cycle
SETB portbit.....3 cycles
NOP..............1 cycle
NOP..............1 cycle
NOP..............1 cycle
CLR portbit......3 cycles

6cycles
---| |-------|
|-------| |
6cycles

OFF time = 1+1+1+3
ON time = 1+1+1+3

Is it my calculation is correct here?.
SETB portbit.....3 cycles will be added into OFF time or ON time?

Please comment on this...

Thanks in advance
Rajesh

Parents
  • I am sorry I didn't get why u an abbreviation for micro mensioned "micro" in ur an abbreviation for micro resistor message?
    If u an abbreviation for micro want to give explaination otherthan technical, please give me ur an abbreviation for micro resistor email id I will continue to mail u an abbreviation for micro directly instead of wasting the space on this forum.
    I have lot of respect on the people who works for the forum to give stright technical answers.

    So reading the above as something related to the '51 does not make one bit of sense

    THIS IS NOT A FRIGGIN CELLPHONE MESSAGE IT IS A COMPUTER FORUM POST

    Erik

Reply
  • I am sorry I didn't get why u an abbreviation for micro mensioned "micro" in ur an abbreviation for micro resistor message?
    If u an abbreviation for micro want to give explaination otherthan technical, please give me ur an abbreviation for micro resistor email id I will continue to mail u an abbreviation for micro directly instead of wasting the space on this forum.
    I have lot of respect on the people who works for the forum to give stright technical answers.

    So reading the above as something related to the '51 does not make one bit of sense

    THIS IS NOT A FRIGGIN CELLPHONE MESSAGE IT IS A COMPUTER FORUM POST

    Erik

Children
No data