Hi i have write a program for this mc when i set the ra4 port it only set for a while only after that it reset back. i have used pull up resister but the efect is same can some one help me.
I used the timer 0 as real time counter. so it cannot disable. It is posible that timer0 can interrupt the ra4 function ? if yes how can i solve this problem.
I used the timer 0 as real time counter. so it cannot disable. It is posible that timer0 can interrupt the ra4 function ? if yes how can i solve this problem.
Be sure that your TMR0 is set correctly. Re-Check that in the OPTION_REG REGISTER (ADDRESS 81h) Bit 5, TOCS is set to 0 ( Zero ).
If you dont, then the program will reset you bit back to input when tyou set this register back to default.