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

Using INTERRUPTS in 89v51rd2

I am given a piece of code from my college professor to debug it. I have a small doubt in some portion of the code which is written below. Can anyone please explain me the code. and also tell me at what situation INTERRUPT is raised.

void initialize_timer2()
{ RCAP2L=0xcb;//0xe5; RCAP2H=0x7d;//0xbe; T2CON=4; ET2=1; EA=1;
}

Please help me

Parents
  • Correct me if I'm wrong, but wasn't the intention by the professor that you either already have learned enough to know this. Or that you were expected to study the processor and figure it out yourself?

    Don't you believe in the school system? Should the professors hand out the answers directly, instead of handing out pesky assignments?

Reply
  • Correct me if I'm wrong, but wasn't the intention by the professor that you either already have learned enough to know this. Or that you were expected to study the processor and figure it out yourself?

    Don't you believe in the school system? Should the professors hand out the answers directly, instead of handing out pesky assignments?

Children
No data