Arm Community
Site
Search
User
Site
Search
User
Groups
Research Collaboration and Enablement
DesignStart
Education Hub
Innovation
Open Source Software and Platforms
Forums
AI and ML forum
Architectures and Processors forum
Arm Development Platforms forum
Arm Development Studio forum
Arm Virtual Hardware forum
Automotive forum
Compilers and Libraries forum
Graphics, Gaming, and VR forum
High Performance Computing (HPC) forum
Infrastructure Solutions forum
Internet of Things (IoT) forum
Keil forum
Morello Forum
Operating Systems forum
SoC Design and Simulation forum
中文社区论区
Blogs
AI and ML blog
Announcements
Architectures and Processors blog
Automotive blog
Graphics, Gaming, and VR blog
High Performance Computing (HPC) blog
Infrastructure Solutions blog
Innovation blog
Internet of Things (IoT) blog
Operating Systems blog
Research Articles
SoC Design and Simulation blog
Tools, Software and IDEs blog
中文社区博客
Support
Arm Support Services
Documentation
Downloads
Training
Arm Approved program
Arm Design Reviews
Community Help
More
Cancel
Support forums
Architectures and Processors forum
help needed on Timers in ARM9
Jump...
Cancel
State
Accepted Answer
+1
person also asked this
people also asked this
Locked
Locked
Replies
2 replies
Subscribers
347 subscribers
Views
3165 views
Users
0 members are here
Arm9
Interrupt
Options
Share
More actions
Cancel
Related
How was your experience today?
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion
help needed on Timers in ARM9
Offline
sgupta sgupta
over 9 years ago
Note: This was originally posted on 5th January 2009 at
http://forums.arm.com
hi....i just want to know........
hw we can program the timers to generate interupt after a specified period of time..
which mode should we use, and hw to calculate timer register values if they need to be specified..
plz help..
Top replies
Offline
Jack12345 Jack12345
over 9 years ago
+1
verified
Note: This was originally posted on 13th January 2009 at http://forums.arm.com Hi, Arm Architecture Does not support Timers. Timers is just another Peripheral in the SOC. U need to get the data sheet...
+1
Offline
Jack12345 Jack12345
over 9 years ago
Note: This was originally posted on 13th January 2009 at
http://forums.arm.com
Hi,
Arm Architecture Does not support Timers. Timers is just another Peripheral in the SOC. U need to get the data sheet of the Timer which is the part of your SOC and then program accordingly.
i have worked on DM320 SOC with Arm926ejs on it.
Each of the general-purpose timers can run in one of two modes: one-shot
mode or free-run mode.
Once the prescale and divider values of the timer are set and the timer is
started, the prescale is decremented by one for every input clock cycle. Each
time the prescale value reaches ‘0’, the divider register is decremented by one
and counter register incremented by one. Also the prescale register is reloaded
with the programmed value. When the divider reaches zero, the timer generates
an interrupt.
In one-shot mode, an interrupt occurs only once, when the timer divider reaches
zero and then the timer must be explicitly re-triggered to begin the operation
again
In free-run mode, when the timer generates an interrupt, the divider value is
automatically reloaded with the programmed value to start the count operation
again.
Timer Interrupt frequency = clock frequency /(prescale+1)(Divider+1)
Hence u write those registers (Prescale and divider) accordingly.
Hope this helps.
Cancel
Up
+1
Down
Cancel
0
Offline
Jacob Bramley
over 9 years ago
Note: This was originally posted on 7th January 2009 at
http://forums.arm.com
The timers will be third-party peripherals and not part of the ARM architecture itself. The consequence of this is that the chip vendors will often use their own peripheral implementations, and these often differ. Therefore, you will need to consult the documentation for the specific chip you have in order to use the timer peripheral. This information is readily available from most manufacturers' websites.
I am pretty certain that your timer will be able to implement the behaviour you require as it is a fairly common function.
Cancel
Up
0
Down
Cancel