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

timer 2

Hello,

We are working on 8051 project and using Keil PK51 version 8.05; M/C is P89C52X2BN on 11.0592 Crystal.

1. If a large function is called from task A , and if the same function is called by task B while the function execution is not yet completed by task A, what will the controller do? Will it skip the function for a while / it calls the function / it treats it as reentrant? I am not taking any semaphore style measures for the function calling. I am facing some data corruption problems in my system. What should I do?

2. I need an example program on using Timer 2 interrupt alongwith the initialization of its related registers, if I need timer 2 in auto-reload mode in up-counting timer style. I had used all the related registers and initialized the timer, but it is not functioning.

Please advise

Parents
  • do you not ...

    1) Your name doesn't seem to be "Surendra V" so you seem to have hijacked someone elses thread.

    2) Your question isn't about timer2, so it doesn't seem to relate to the original post.

    ... start a new thread

    4) You are asking a number of questions. You are not supplying the required facts for people to be able to make anything but educated guesses...

    ... supply full information about your problem

    Erik

Reply
  • do you not ...

    1) Your name doesn't seem to be "Surendra V" so you seem to have hijacked someone elses thread.

    2) Your question isn't about timer2, so it doesn't seem to relate to the original post.

    ... start a new thread

    4) You are asking a number of questions. You are not supplying the required facts for people to be able to make anything but educated guesses...

    ... supply full information about your problem

    Erik

Children
No data