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

A problem with AT89C51

Hi:
I use AT89C51,I have a problem in my software to useit and that's the time that one instruction takes to execute,I mean it's so long, I think that is because of multiply instruction(ASM:MUL AB).Please let me know if it is right or not?

if freq>60HZ >> int0&int1 don't work
my chip's frequency is 8MHz.
Thank you

Parents
  • MUL AB and DIV AB are the only two instructions that take 4 machine cycles to execute. All the rest take 1 or 2 cycles. But I don't think this should make a problem.

    "if freq>60HZ >> int0&int1 don't work
    my chip's frequency is 8MHz."


    What do you exactly mean? Could you specify it? (give more details, ie. show a piece of program, etc.)

Reply
  • MUL AB and DIV AB are the only two instructions that take 4 machine cycles to execute. All the rest take 1 or 2 cycles. But I don't think this should make a problem.

    "if freq>60HZ >> int0&int1 don't work
    my chip's frequency is 8MHz."


    What do you exactly mean? Could you specify it? (give more details, ie. show a piece of program, etc.)

Children
No data