Problem in Creating Nano Secs Delay using 1768 in ISP mode

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Problem in Creating Nano Secs Delay using 1768 in ISP mode

383 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by kishore reddy on Wed Jan 20 06:54:07 MST 2016
i am trying to create Nano secds delay, but i got delay in micro secds so, plz help me ...

Here i am not using PLL here...PCLK=12MHz.... suzzes me which values are Sutable for MR0 And PR0.....to create nano secands Delay...

my timer configurations are......

Original Attachment has been moved to: LCD_code__1768.rar

Labels (1)
0 Kudos
2 Replies

335 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by serge on Thu Jan 21 00:51:15 MST 2016
:quest: 1 GigaHertz gives a period of 1 nanosecond... :~  So explain to me how you would reach a delay of 1 nano second with a clock of only 12MHz ?? :quest:
0 Kudos

335 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by R2D2 on Wed Jan 20 07:16:01 MST 2016

Quote: kishore reddy
Here i am not using PLL here...PCLK=12MHz.... suzzes me which values are Sutable for MR0 And PR0.....to create nano secands Delay...



:quest:

Just use a prescaler of -83.3  :)
0 Kudos