We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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