timer-based interrupt routine

wta306

New Member
Hi everyone...I'm new to this board and microcontrollers in general. So I need a little help.

I am trying to create a a timer-based interrupt routine that generates an interrupt every 'X' microseconds. I prefer coding in C seeing as my assembly is very rusty.

By the way, I am working with a PIC16F877A
 

how much 'X' microseconds are we talking about?
A 'F877 running at 20Mhz will need 0.2 microseconds for 1 instruction. so if 'X' is very low you might not be able to pull it off ...
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…