Peripheral Clk Configuration in LPC1768

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

Peripheral Clk Configuration in LPC1768

1,066 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by kranthi on Sat Feb 08 04:49:45 MST 2014
Hi, can any one
explain how to configure peripheral clock @ 50 Mhz using main oscillator.
I tried by varying M and N values.  but it's not updating. please give a sample code for this.

Thanks,
Kranthi.
Labels (1)
0 Kudos
6 Replies

844 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by kranthi on Sat Feb 08 10:45:22 MST 2014
Hi Marc,
Thank you very much  for a great response ...n
your suggestions. This also a lesson for me how to ask
questions.



Thanks,
Kranthi.
0 Kudos

844 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by MarcVonWindscooting on Sat Feb 08 10:23:57 MST 2014
Hi Kranthi,

sorry for my over-reaction. It was an alleged deja-vu of what I saw when me and my collegue started with LPC1100. First thing he did, try to set up PLL and fail. I did not verify, but I know him, and from his 'nature of failing' he most probably has ended up in massively overclocking the device.

I try to improve by your points 1. and 4. mainly. And I want to add:

6. From time to time, I go right back to the start, to the roots.
7. Know your own deficits

I mean, I start something from scratch, possibly something I did before, but in a different way. I started with ARM-processors by using assembly language. Every new processor (LPC4300 at the moment) gets a few assembly language programs, before I use 'C'.

Knowing my own deficits allows me to write code, that quickly reveals that I've done something wrong and what it is. No one can be trusted less than me, so I know I have  to verify everything I do. Using gcc I never compile without -O2 optimization for example.
0 Kudos

844 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by kranthi on Sat Feb 08 09:43:35 MST 2014
Mr.MarcvonWindscooting,
yah..You are right.  but very nice to see your reply.
Every person is not a genius,  we were grownup by learning small small things.
Be cool while giving a valuable notes to someone.

Can you tell me how you improved your programming skills ,
1.By working hard with manuals
2. By attending the classes regularly
3.Not spending more time @ house
4.By writing the programs day & night and flashing the code into Kit.
5.By copying the code in the net and paste  into the system.

I'm trying to follow all the above but not getting mean there are some reason which cannot be explore.  I don't need lectures. The Education System is different between country to country.  I know I'm good in some fields n I know What I'm.  The people should have  maintain some patience while giving a response to something or else they don't enter which they are unable to serve.

Thank for speding your valuable time for me,
Kranthi.
0 Kudos

844 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by kranthi on Sat Feb 08 09:32:11 MST 2014
Thank You MC.
0 Kudos

844 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by mc on Sat Feb 08 08:13:00 MST 2014
Hi Kranthi,
I hope below calculator is helpful.
http://www.lpcware.com/content/nxpfile/lpc17xx-pll0-calculator
0 Kudos

844 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by MarcVonWindscooting on Sat Feb 08 05:41:37 MST 2014
How can you request sample code without providing the information, what crystal you're using?
It seems, you've not read the manual thoroughly.
How many steps do you try at once?
First running from IRC, next step run from main oscillator through PLL (with a non-trivial ratio) without verifying the main oscillator is working at all??
What peripherals are working already? I hope PLL is not your first task on a new microcontroller?
You don't want to floor the gas pedal before you've got some experience with steering your new car, do you?
0 Kudos