Datenblatt-Suchmaschine für elektronische Bauteile
  German  ▼
ALLDATASHEETDE.COM

X  

PM0222 Datenblatt(PDF) 21 Page - STMicroelectronics

Teilenummer PM0222
Bauteilbeschribung  Brain smart hub family
PDF  33 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Hersteller  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

PM0222 Datenblatt(HTML) 21 Page - STMicroelectronics

Back Button PM0222 Datasheet HTML 17Page - STMicroelectronics PM0222 Datasheet HTML 18Page - STMicroelectronics PM0222 Datasheet HTML 19Page - STMicroelectronics PM0222 Datasheet HTML 20Page - STMicroelectronics PM0222 Datasheet HTML 21Page - STMicroelectronics PM0222 Datasheet HTML 22Page - STMicroelectronics PM0222 Datasheet HTML 23Page - STMicroelectronics PM0222 Datasheet HTML 24Page - STMicroelectronics PM0222 Datasheet HTML 25Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 21 / 33 page
background image
DocID025476 Rev 1
21/33
PM0222
Timers
33
See Brain reference manual, Dual timer module chapter, Register descriptions sub-chapter
for more details.
// timer configuration, after this command the timer is launched.
DUALTIMER0->Timer1Control = 0xE3
Every 8388608 (0x800000) tick periods the timer will reach zero and generate an interrupt.
The Timer1Value register contains the current value of the timer. It can be read at any
moment when the timer is running.
current = DUALTIMER0->Timer1Value; // save current timer value.
8.1.2
One-shot mode
// disable the timer1 of dual-timer0, and all previous configurations in case of a
// previous use.
DUALTIMER0->Timer1Control = 0x00;
DUALTIMER0->Timer1Load = 0x800000; // load a new timer value
Then to launch the timer, the Timer1Control register has to be configured. In this example
the timer1 configuration is:
32-bit mode
No division on timer1 incoming clock
Interrupt is enabled for timer1
One-shot mode and timer1 are enabled.
See Brain reference manual, Dual timer module chapter, Register descriptions sub-chapter
for more details.
// timer configuration, after this command the timer is launched.
DUALTIMER0->Timer1Control = 0xE2
After 8388608 (0x800000) tick periods the timer will reach zero and generate an interrupt.
The Timer1Value register contains the current value of the timer. It can be read at any
moment when the timer is running.
current = DUALTIMER0->Timer1Value;// save current timer value
At this stage, writing a new value in the Timer1Load register will restart the timer1 with this
new value and stop again when it reaches zero.
At any moment in both configurations the timer1 can be stopped by writing 0x00 in the
Timer1Control register.
8.2
Watchdog (WDG)
All watchdog registers are described in a structure defined in the Brain header file (.h)
provided by STMicroelectronics.
The watchdog APB base address: 0xAA00_0000
The watchdog timer is clocked by the 32 kHz clock.
The watchdog peripheral clock should be enabled on the CRMU side (see Section 3.1:
Peripheral clock gating) and the corresponding interrupt should be enabled on the Cortex-



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33


Datenblatt Download

Go To PDF Page


Link URL



War ALLDATASHEET hilfreich?  [ DONATE ] 

Über Alldatasheet   |   Werbung   |   Kontakt   |   Privatsphäre und Datenschutz   |   Link zum Datenblatt    |   Linktausch   |   Hersteller
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com