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
  • Thanks erik and Neil,
    My original thought was to show OFF time and ON time as follows...

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


    Thanks for ur special inputs which I have asked to ignore.

    I got very good explaination from Sergeev. If u want to add any thing to that part I will be very happy.

Reply
  • Thanks erik and Neil,
    My original thought was to show OFF time and ON time as follows...

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


    Thanks for ur special inputs which I have asked to ignore.

    I got very good explaination from Sergeev. If u want to add any thing to that part I will be very happy.

Children
  • I got very good explaination from Sergeev. If u want to add any thing to that part I will be very happy.
    If the explaination from Sergeev was good, why do you want micro to add to it.

    as said so often before when specifically addressing micro, use e-mail, not the forum

    Erik

  • Erik,
    I am sorry I didn't get why u mensioned "micro" in ur message?
    If u want to give explaination otherthan technical, please give me ur email id I will continue to mail u 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.

    Thanks in advance

  • 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