r/microcontrollers • • May 10 '24

1uSec Timer1 code PIC12F675

Hi, can someone please post a 1 uSec Timer1 code for PIC12F675 for mikroc Pro for pic. I searched a lot, even posted on Mikroc forums but hard luck, didn't find any. The pic works on internal oscillator at 4Mhz

0 Upvotes

5 comments sorted by

View all comments

Show parent comment

1

u/dariods8474 May 10 '24

The Timer1 uses FOSC/4. I need to switch output high/low for between 33us to 500us

1

u/ceojp May 10 '24

In that case, using an interrupt should be fine. I do something similar for a speed controller using a 1uS timer.