Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

PM0222 Datasheet(PDF) 20 Page - STMicroelectronics

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

PM0222 Datasheet(HTML) 20 Page - STMicroelectronics

Back Button PM0222 Datasheet HTML 16Page - STMicroelectronics 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 Next Button
Zoom Inzoom in Zoom Outzoom out
 20 / 33 page
background image
Timers
PM0222
20/33
DocID025476 Rev 1
8
Timers
8.1
Dual timers
All dual-timer registers are described in a structure defined in the Brain header file (.h)
provided by STMicroelectronics.
Brain has eight SP804 dual-timers available at the following addresses in the memory map:
DUALTIMER0 APB base address: 0xA640_0000
DUALTIMER1 APB base address: 0xA740_0000
DUALTIMER2 APB base address: 0xA840_0000
DUALTIMER3 APB base address: 0xA940_0000
DUALTIMER4 APB base address: 0xA680_0000
DUALTIMER5 APB base address: 0xA780_0000
DUALTIMER6 APB base address: 0xA880_0000
DUALTIMER7 APB base address: 0xA980_0000
Dual-timers 0 to 3 are clocked by a clock synchronous to the processor clock. Dual-timers 4
to 7 are clocked by the RC 32 kHz resynchronized on the system clock.
Note:
When the processor clock is lower than or equal to 32 kHz, dual-timers 4 to 7 are not
functional.
Each dual-timer has two timers referred to as “Timer1” and “Timer2” (or A and B in the
interrupt vector table in the Brain reference manual). This section provides a short overview
on the use of a dual-timer. In the following examples Timer1 of dual-timer0 is used to run in
a periodic/one-shot mode and send an interrupt when the timer reaches zero.
Before using these examples dual-timer0 clock has to be enabled in the CRMU (see
Section 3.1: Peripheral clock gating) and the processor clock has to be properly configured
(see Section 3.2: CPU clock configuration) according to the user’s program specifications.
The specific interrupt for dual-timer0 has to be enabled on the Cortex-M0 side (see
Section 4: Interrupt management).
8.1.1
Periodic 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
Periodic mode and timer1 are enabled.



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


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
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