sos
Member level 2
hi all
i have developed a timer formulae for lpc series:
((PR+1)*(MR-1))/pclk = time
say for example i want a delay for 1ms than my delay routine will initialise
if pclk=12Mhz
the multiplication (PR+1)*(MR-1)) should at last equal to 12000
so i can choose
1. PR=0 and MR=11999
or
2.PR=11 and MR=1001
so my question is:
1. Am i correct at acheiving this formulae
2. Will the accuracy be equal in both the cases(say in both cases will i get
1ms accurate)
Any discussion is welcomed
regards
ArmNewbie
i have developed a timer formulae for lpc series:
((PR+1)*(MR-1))/pclk = time
say for example i want a delay for 1ms than my delay routine will initialise
if pclk=12Mhz
the multiplication (PR+1)*(MR-1)) should at last equal to 12000
so i can choose
1. PR=0 and MR=11999
or
2.PR=11 and MR=1001
so my question is:
1. Am i correct at acheiving this formulae
2. Will the accuracy be equal in both the cases(say in both cases will i get
1ms accurate)
Any discussion is welcomed
regards
ArmNewbie