I am a new to this micro-controller world and just practiced few basic programs using 8051 and PIC.
My project is on temp sensing using ds1820 i.e 5 ds1820 IC's on single wire. i'm using PIC18f452-12MHz Xtal, MPLAB. I need to achieve 1usec time delay.
PIC18f takes 4 clock cycles per instr. That means each instr will take 3MHz = 0.33usec. Using this value i made a delay for-loop with value 3 to achieve 1usec delay. But i;m not sure what exactly is the delay inside the PIC when i program it. I don't have a CRO to measure the delay.
So please please help me
My concern is ....
'How do i measure the time between each C-code instruction and time taken to get into and come out of any function(returning or non returning any value)....'