We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi, Anybody please help me how to use the timers in LPC1114? Anyone please let me know how to generate delays using timers?
What problems have you found with the documentation in the chip user manual?
What problems have you found with reference code available from Keil, NXP and different sources possible to find with Google?
Where are you stuck?
What work have you done?
Do you know how timers work?
What about the posts on this site - of which a number does contain source code?
Do u have any tutorials?
I am a bit confusing with using of that many registers used in example codes....
Well they are all necessary! If you can't deal with that, you need to go do something else!
As Tamir says, that is the nature of this game!
Each register has a purpose - they are not just there to confuse.
First, you need to study the overview description of the timers to see the general picture of how they work. You will find this information in the Chip Documentation from NXP (it has nothing to do with the software tools).
Then you need to study the description of each register to find its specific function in controlling the operation of the timers.
When doing this kind of thing, I find that it helps me to print out a block diagram of the timer, and print out the register descriptions, and use those coloured highlighting pens to highlight which registers affect which part(s) of the timer operation.
You need to find what works for you - but one thing that certainly will not help is just sitting there and saying, "it's confusing".
Note that most vendors today provide some sort of "library" that relieves you of having to deal directly with the registers - I can't imagine that NXP would be an exception here.
Of course, you still have to understand how the timers work - this is not a "free lunch"!
An important lesson:
Don't be intimidated by the number of registers (or the crassness of responses from people who should know better). Just go a step at a time.
Even those who have done similar tasks before will occasionally have to view a new architecture and it is not uncommon to have an initial bewilderment when they see the datasheets for the first time.
Nothing crass about it.
There are much sample code available. But the sample code is only meaningful for someone who have read up on the function of the timers.
If we supply sample code in this thread, it would be no difference from the sample code that is already available - the chip manual must still be referenced to understand it.
Thanks to every one for their valuable suggestions......
Now I'm able to get the things done one by one......
For your information, I spent most of yesterday doing precisely what I described in my earlier post in order to learn how to use a peripheral on the microcontroller that I'm currently working with.
It's not crass - it's necessary.
FYI - In this instance, I was referring to the one response whose text I included in the summary.
I should have said 'person' and not 'people' in my original message.
Appologies for including the other valid responses, which were clearly non-crass.
(But my comments on that response stand.)