agnivesh
Member level 2
picc delay
I've just started programming PIC mcu's using HI-TECH PICC. Right now I'm struggling to find a way of inserting precise delays in my code.
a) say if I need precise 10ms intervals in my c code, what should I do ?
b) I haven't found a way to tell picc compiler about my crystal frequency, where can i put that info and it doesn't require that info then how will it calculate, the different timer settings, if in case I use timer interrupt method.
c) is there any prebuilt precise delay routines available for picc ?
d) do I need to tell the compiler about my crystal frequency before starting the compiling ?
In nutshell, I am confused about how PICC compiler handles the precise delay routines ?
I've just started programming PIC mcu's using HI-TECH PICC. Right now I'm struggling to find a way of inserting precise delays in my code.
a) say if I need precise 10ms intervals in my c code, what should I do ?
b) I haven't found a way to tell picc compiler about my crystal frequency, where can i put that info and it doesn't require that info then how will it calculate, the different timer settings, if in case I use timer interrupt method.
c) is there any prebuilt precise delay routines available for picc ?
d) do I need to tell the compiler about my crystal frequency before starting the compiling ?
In nutshell, I am confused about how PICC compiler handles the precise delay routines ?