No new brain needed. You need to learn to check your work. If you do not learn to do that, you will have a difficult time in the workforce. I have fired very few people in my life. The most common reason by far was that they did not check their own work. Someone else had to check everything. Thus, they were superfluous.I need to buy new brain instead of buying a new calculator and that is not possible
PIC18F45K80 is running with internal clock 8Mhz . so 8Mhz Fosc / 4 = 2Mhz
Now, take this equation you posted:
1/8000000/256 = 7813 Hz
Even if you had used 2,000,000 instead of 8,000,000, the answer is not in Hz. The reciprocal of hertz is in time/cycle. Had you done the math correctly, you would have found 128 us per tick (cycle), which is exactly what JohnInTexas showed. You should have gotten the correct answer from that.



