sush
Member level 4

hi,
I'm a newcomer to PIC, but i know 8051. as i've just started there is question in my mind,
For calculating time taken by an instruction to execute, in 8051, we use formula:-
Time, t = (No. of clock cycles x 12)/ (Xtal Frequency)
For example :- in case of timer suppose TH0=1Eh & TL0=2Ch or TMR=1E2Ch = 7724d; & crystal frequency=24MHz, then
time, t= 7724x12/24e6=3.862 mSecs
How do we calculate this in case of PIC micro-controllers, is it:- t= (No. of clock cycles x 4)/ (Xtal Frequency)??
Thanks
I'm a newcomer to PIC, but i know 8051. as i've just started there is question in my mind,
For calculating time taken by an instruction to execute, in 8051, we use formula:-
Time, t = (No. of clock cycles x 12)/ (Xtal Frequency)
For example :- in case of timer suppose TH0=1Eh & TL0=2Ch or TMR=1E2Ch = 7724d; & crystal frequency=24MHz, then
time, t= 7724x12/24e6=3.862 mSecs
How do we calculate this in case of PIC micro-controllers, is it:- t= (No. of clock cycles x 4)/ (Xtal Frequency)??
Thanks