A bundled STM32F10x Std Periph and CMSIS library
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

763 lines
31 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!-- File naming: <vendor>_<part/series name>.svd -->
  3. <!--
  4. Copyright (C) 2012 ARM Limited. All rights reserved.
  5. Purpose: System Viewer Description (SVD) Example (Schema Version 1.0)
  6. This is a description of a none-existent and incomplete device
  7. for demonstration purposes only.
  8. Redistribution and use in source and binary forms, with or without
  9. modification, are permitted provided that the following conditions are met:
  10. - Redistributions of source code must retain the above copyright
  11. notice, this list of conditions and the following disclaimer.
  12. - Redistributions in binary form must reproduce the above copyright
  13. notice, this list of conditions and the following disclaimer in the
  14. documentation and/or other materials provided with the distribution.
  15. - Neither the name of ARM nor the names of its contributors may be used
  16. to endorse or promote products derived from this software without
  17. specific prior written permission.
  18. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
  19. AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  20. IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  21. ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS AND CONTRIBUTORS BE
  22. LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  23. CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  24. SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  25. INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  26. CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  27. ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  28. POSSIBILITY OF SUCH DAMAGE.
  29. -->
  30. <device schemaVersion="1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="CMSIS-SVD_Schema_1_0.xsd" >
  31. <name>ARMCM3xxx</name> <!-- name of part or part series -->
  32. <version>1.0</version> <!-- version of this description -->
  33. <description>ARM 32-bit Cortex-M3 Microcontroller based device, CPU clock up to 80MHz, etc. </description>
  34. <addressUnitBits>8</addressUnitBits> <!-- byte addressable memory -->
  35. <width>32</width> <!-- bus width is 32 bits -->
  36. <!-- default settings implicitly inherited by subsequent sections -->
  37. <size>32</size> <!-- this is the default size (number of bits) of all peripherals
  38. and register that do not define "size" themselves -->
  39. <access>read-write</access> <!-- default access permission for all subsequent registers -->
  40. <resetValue>0x00000000</resetValue> <!-- by default all bits of the registers are initialized to 0 on reset -->
  41. <resetMask>0xFFFFFFFF</resetMask> <!-- by default all 32Bits of the registers are used -->
  42. <peripherals>
  43. <!-- Timer 0 -->
  44. <peripheral>
  45. <name>TIMER0</name>
  46. <version>1.0</version>
  47. <description>32 Timer / Counter, counting up or down from different sources</description>
  48. <groupName>TIMER</groupName>
  49. <baseAddress>0x40010000</baseAddress>
  50. <size>32</size>
  51. <access>read-write</access>
  52. <addressBlock>
  53. <offset>0</offset>
  54. <size>0x100</size>
  55. <usage>registers</usage>
  56. </addressBlock>
  57. <interrupt>
  58. <name>TIMER0</name>
  59. <value>0</value>
  60. </interrupt>
  61. <registers>
  62. <!-- CR: Control Register -->
  63. <register>
  64. <name>CR</name>
  65. <description>Control Register</description>
  66. <addressOffset>0x00</addressOffset>
  67. <size>32</size>
  68. <access>read-write</access>
  69. <resetValue>0x00000000</resetValue>
  70. <resetMask>0x1337F7F</resetMask>
  71. <fields>
  72. <!-- EN: Enable -->
  73. <field>
  74. <name>EN</name>
  75. <description>Enable</description>
  76. <bitRange>[0:0]</bitRange>
  77. <access>read-write</access>
  78. <enumeratedValues>
  79. <enumeratedValue>
  80. <name>Disable</name>
  81. <description>Timer is disabled and does not operate</description>
  82. <value>0</value>
  83. </enumeratedValue>
  84. <enumeratedValue>
  85. <name>Enable</name>
  86. <description>Timer is enabled and can operate</description>
  87. <value>1</value>
  88. </enumeratedValue>
  89. </enumeratedValues>
  90. </field>
  91. <!-- RST: Reset -->
  92. <field>
  93. <name>RST</name>
  94. <description>Reset Timer</description>
  95. <bitRange>[1:1]</bitRange>
  96. <access>write-only</access>
  97. <enumeratedValues>
  98. <enumeratedValue>
  99. <name>Reserved</name>
  100. <description>Write as ZERO if necessary</description>
  101. <value>0</value>
  102. </enumeratedValue>
  103. <enumeratedValue>
  104. <name>Reset_Timer</name>
  105. <description>Reset the Timer</description>
  106. <value>1</value>
  107. </enumeratedValue>
  108. </enumeratedValues>
  109. </field>
  110. <!-- CNT: Counting Direction -->
  111. <field>
  112. <name>CNT</name>
  113. <description>Counting direction</description>
  114. <bitRange>[3:2]</bitRange>
  115. <access>read-write</access>
  116. <enumeratedValues>
  117. <enumeratedValue>
  118. <name>Count_UP</name>
  119. <description>Timer Counts UO and wraps, if no STOP condition is set</description>
  120. <value>0</value>
  121. </enumeratedValue>
  122. <enumeratedValue>
  123. <name>Count_DOWN</name>
  124. <description>Timer Counts DOWN and wraps, if no STOP condition is set</description>
  125. <value>1</value>
  126. </enumeratedValue>
  127. <enumeratedValue>
  128. <name>Toggle</name>
  129. <description>Timer Counts up to MAX, then DOWN to ZERO, if no STOP condition is set</description>
  130. <value>2</value>
  131. </enumeratedValue>
  132. </enumeratedValues>
  133. </field>
  134. <!-- MODE: Operation Mode -->
  135. <field>
  136. <name>MODE</name>
  137. <description>Operation Mode</description>
  138. <bitRange>[6:4]</bitRange>
  139. <access>read-write</access>
  140. <enumeratedValues>
  141. <enumeratedValue>
  142. <name>Continous</name>
  143. <description>Timer runs continously</description>
  144. <value>0</value>
  145. </enumeratedValue>
  146. <enumeratedValue>
  147. <name>Single_ZERO_MAX</name>
  148. <description>Timer counts to 0x00 or 0xFFFFFFFF (depending on CNT) and stops</description>
  149. <value>1</value>
  150. </enumeratedValue>
  151. <enumeratedValue>
  152. <name>Single_MATCH</name>
  153. <description>Timer counts to the Value of MATCH Register and stops</description>
  154. <value>2</value>
  155. </enumeratedValue>
  156. <enumeratedValue>
  157. <name>Reload_ZERO_MAX</name>
  158. <description>Timer counts to 0x00 or 0xFFFFFFFF (depending on CNT), loads the RELOAD Value and continues</description>
  159. <value>3</value>
  160. </enumeratedValue>
  161. <enumeratedValue>
  162. <name>Reload_MATCH</name>
  163. <description>Timer counts to the Value of MATCH Register, loads the RELOAD Value and continues</description>
  164. <value>4</value>
  165. </enumeratedValue>
  166. </enumeratedValues>
  167. </field>
  168. <!-- PSC: Use Prescaler -->
  169. <field>
  170. <name>PSC</name>
  171. <description>Use Prescaler</description>
  172. <bitRange>[7:7]</bitRange>
  173. <access>read-write</access>
  174. <enumeratedValues>
  175. <enumeratedValue>
  176. <name>Disabled</name>
  177. <description>Prescaler is not used</description>
  178. <value>0</value>
  179. </enumeratedValue>
  180. <enumeratedValue>
  181. <name>Enabled</name>
  182. <description>Prescaler is used as divider</description>
  183. <value>1</value>
  184. </enumeratedValue>
  185. </enumeratedValues>
  186. </field>
  187. <!-- CNTSRC: Timer / Counter Soruce Divider -->
  188. <field>
  189. <name>CNTSRC</name>
  190. <description>Timer / Counter Source Divider</description>
  191. <bitRange>[11:8]</bitRange>
  192. <access>read-write</access>
  193. <enumeratedValues>
  194. <enumeratedValue>
  195. <name>CAP_SRC</name>
  196. <description>Capture Source is used directly</description>
  197. <value>0</value>
  198. </enumeratedValue>
  199. <enumeratedValue>
  200. <name>CAP_SRC_div2</name>
  201. <description>Capture Source is divided by 2</description>
  202. <value>1</value>
  203. </enumeratedValue>
  204. <enumeratedValue>
  205. <name>CAP_SRC_div4</name>
  206. <description>Capture Source is divided by 4</description>
  207. <value>2</value>
  208. </enumeratedValue>
  209. <enumeratedValue>
  210. <name>CAP_SRC_div8</name>
  211. <description>Capture Source is divided by 8</description>
  212. <value>3</value>
  213. </enumeratedValue>
  214. <enumeratedValue>
  215. <name>CAP_SRC_div16</name>
  216. <description>Capture Source is divided by 16</description>
  217. <value>4</value>
  218. </enumeratedValue>
  219. <enumeratedValue>
  220. <name>CAP_SRC_div32</name>
  221. <description>Capture Source is divided by 32</description>
  222. <value>5</value>
  223. </enumeratedValue>
  224. <enumeratedValue>
  225. <name>CAP_SRC_div64</name>
  226. <description>Capture Source is divided by 64</description>
  227. <value>6</value>
  228. </enumeratedValue>
  229. <enumeratedValue>
  230. <name>CAP_SRC_div128</name>
  231. <description>Capture Source is divided by 128</description>
  232. <value>7</value>
  233. </enumeratedValue>
  234. <enumeratedValue>
  235. <name>CAP_SRC_div256</name>
  236. <description>Capture Source is divided by 256</description>
  237. <value>8</value>
  238. </enumeratedValue>
  239. </enumeratedValues>
  240. </field>
  241. <!-- CAPSRC: Timer / COunter Capture Source -->
  242. <field>
  243. <name>CAPSRC</name>
  244. <description>Timer / Counter Capture Source</description>
  245. <bitRange>[15:12]</bitRange>
  246. <access>read-write</access>
  247. <enumeratedValues>
  248. <enumeratedValue>
  249. <name>CClk</name>
  250. <description>Core Clock</description>
  251. <value>0</value>
  252. </enumeratedValue>
  253. <enumeratedValue>
  254. <name>GPIOA_0</name>
  255. <description>GPIO A, PIN 0</description>
  256. <value>1</value>
  257. </enumeratedValue>
  258. <enumeratedValue>
  259. <name>GPIOA_1</name>
  260. <description>GPIO A, PIN 1</description>
  261. <value>2</value>
  262. </enumeratedValue>
  263. <enumeratedValue>
  264. <name>GPIOA_2</name>
  265. <description>GPIO A, PIN 2</description>
  266. <value>3</value>
  267. </enumeratedValue>
  268. <enumeratedValue>
  269. <name>GPIOA_3</name>
  270. <description>GPIO A, PIN 3</description>
  271. <value>4</value>
  272. </enumeratedValue>
  273. <enumeratedValue>
  274. <name>GPIOA_4</name>
  275. <description>GPIO A, PIN 4</description>
  276. <value>5</value>
  277. </enumeratedValue>
  278. <enumeratedValue>
  279. <name>GPIOA_5</name>
  280. <description>GPIO A, PIN 5</description>
  281. <value>6</value>
  282. </enumeratedValue>
  283. <enumeratedValue>
  284. <name>GPIOA_6</name>
  285. <description>GPIO A, PIN 6</description>
  286. <value>7</value>
  287. </enumeratedValue>
  288. <enumeratedValue>
  289. <name>GPIOA_7</name>
  290. <description>GPIO A, PIN 7</description>
  291. <value>8</value>
  292. </enumeratedValue>
  293. <enumeratedValue>
  294. <name>GPIOB_0</name>
  295. <description>GPIO B, PIN 0</description>
  296. <value>9</value>
  297. </enumeratedValue>
  298. <enumeratedValue>
  299. <name>GPIOB_1</name>
  300. <description>GPIO B, PIN 1</description>
  301. <value>10</value>
  302. </enumeratedValue>
  303. <enumeratedValue>
  304. <name>GPIOB_2</name>
  305. <description>GPIO B, PIN 2</description>
  306. <value>11</value>
  307. </enumeratedValue>
  308. <enumeratedValue>
  309. <name>GPIOB_3</name>
  310. <description>GPIO B, PIN 3</description>
  311. <value>12</value>
  312. </enumeratedValue>
  313. <enumeratedValue>
  314. <name>GPIOC_0</name>
  315. <description>GPIO C, PIN 0</description>
  316. <value>13</value>
  317. </enumeratedValue>
  318. <enumeratedValue>
  319. <name>GPIOC_5</name>
  320. <description>GPIO C, PIN 1</description>
  321. <value>14</value>
  322. </enumeratedValue>
  323. <enumeratedValue>
  324. <name>GPIOC_6</name>
  325. <description>GPIO C, PIN 2</description>
  326. <value>15</value>
  327. </enumeratedValue>
  328. </enumeratedValues>
  329. </field>
  330. <!-- CAPEDGE: Capture Edge -->
  331. <field>
  332. <name>CAPEDGE</name>
  333. <description>Capture Edge, select which Edge should result in a counter increment or decrement</description>
  334. <bitRange>[17:16]</bitRange>
  335. <access>read-write</access>
  336. <enumeratedValues>
  337. <enumeratedValue>
  338. <name>RISING</name>
  339. <description>Only rising edges result in a counter increment or decrement</description>
  340. <value>0</value>
  341. </enumeratedValue>
  342. <enumeratedValue>
  343. <name>FALLING</name>
  344. <description>Only falling edges result in a counter increment or decrement</description>
  345. <value>1</value>
  346. </enumeratedValue>
  347. <enumeratedValue>
  348. <name>BOTH</name>
  349. <description>Rising and falling edges result in a counter increment or decrement</description>
  350. <value>2</value>
  351. </enumeratedValue>
  352. </enumeratedValues>
  353. </field>
  354. <!-- TRGEXT: Triggers an other Peripheral -->
  355. <field>
  356. <name>TRGEXT</name>
  357. <description>Triggers an other Peripheral</description>
  358. <bitRange>[21:20]</bitRange>
  359. <access>read-write</access>
  360. <enumeratedValues>
  361. <enumeratedValue>
  362. <name>NONE</name>
  363. <description>No Trigger is emitted</description>
  364. <value>0</value>
  365. </enumeratedValue>
  366. <enumeratedValue>
  367. <name>DMA1</name>
  368. <description>DMA Controller 1 is triggered, dependant on MODE</description>
  369. <value>1</value>
  370. </enumeratedValue>
  371. <enumeratedValue>
  372. <name>DMA2</name>
  373. <description>DMA Controller 2 is triggered, dependant on MODE</description>
  374. <value>2</value>
  375. </enumeratedValue>
  376. <enumeratedValue>
  377. <name>UART</name>
  378. <description>UART is triggered, dependant on MODE</description>
  379. <value>3</value>
  380. </enumeratedValue>
  381. </enumeratedValues>
  382. </field>
  383. <!-- Reload: Selects Reload Register n -->
  384. <field>
  385. <name>RELOAD</name>
  386. <description>Select RELOAD Register n to reload Timer on condition</description>
  387. <bitRange>[25:24]</bitRange>
  388. <access>read-write</access>
  389. <enumeratedValues>
  390. <enumeratedValue>
  391. <name>RELOAD0</name>
  392. <description>Selects Reload Register number 0</description>
  393. <value>0</value>
  394. </enumeratedValue>
  395. <enumeratedValue>
  396. <name>RELOAD1</name>
  397. <description>Selects Reload Register number 1</description>
  398. <value>1</value>
  399. </enumeratedValue>
  400. <enumeratedValue>
  401. <name>RELOAD2</name>
  402. <description>Selects Reload Register number 2</description>
  403. <value>2</value>
  404. </enumeratedValue>
  405. <enumeratedValue>
  406. <name>RELOAD3</name>
  407. <description>Selects Reload Register number 3</description>
  408. <value>3</value>
  409. </enumeratedValue>
  410. </enumeratedValues>
  411. </field>
  412. <!-- IDR: Inc or dec Reload Register Selection -->
  413. <field>
  414. <name>IDR</name>
  415. <description>Selects, if Reload Register number is incremented, decremented or not modified</description>
  416. <bitRange>[27:26]</bitRange>
  417. <access>read-write</access>
  418. <enumeratedValues>
  419. <enumeratedValue>
  420. <name>KEEP</name>
  421. <description>Reload Register number does not change automatically</description>
  422. <value>0</value>
  423. </enumeratedValue>
  424. <enumeratedValue>
  425. <name>INCREMENT</name>
  426. <description>Reload Register number is incremented on each match</description>
  427. <value>1</value>
  428. </enumeratedValue>
  429. <enumeratedValue>
  430. <name>DECREMENT</name>
  431. <description>Reload Register number is decremented on each match</description>
  432. <value>2</value>
  433. </enumeratedValue>
  434. </enumeratedValues>
  435. </field>
  436. <!-- START: Starts / Stops the Timer/Counter -->
  437. <field>
  438. <name>S</name>
  439. <description>Starts and Stops the Timer / Counter</description>
  440. <bitRange>[31:31]</bitRange>
  441. <access>read-write</access>
  442. <enumeratedValues>
  443. <enumeratedValue>
  444. <name>STOP</name>
  445. <description>Timer / Counter is stopped</description>
  446. <value>0</value>
  447. </enumeratedValue>
  448. <enumeratedValue>
  449. <name>START</name>
  450. <description>Timer / Counter is started</description>
  451. <value>1</value>
  452. </enumeratedValue>
  453. </enumeratedValues>
  454. </field>
  455. </fields>
  456. </register>
  457. <!-- SR: Status Register -->
  458. <register>
  459. <name>SR</name>
  460. <description>Status Register</description>
  461. <addressOffset>0x04</addressOffset>
  462. <size>16</size>
  463. <access>read-write</access>
  464. <resetValue>0x00000000</resetValue>
  465. <resetMask>0xD701</resetMask>
  466. <fields>
  467. <!-- RUN: Shows if Timer is running -->
  468. <field>
  469. <name>RUN</name>
  470. <description>Shows if Timer is running or not</description>
  471. <bitRange>[0:0]</bitRange>
  472. <access>read-only</access>
  473. <enumeratedValues>
  474. <enumeratedValue>
  475. <name>Stopped</name>
  476. <description>Timer is not running</description>
  477. <value>0</value>
  478. </enumeratedValue>
  479. <enumeratedValue>
  480. <name>Running</name>
  481. <description>Timer is running</description>
  482. <value>1</value>
  483. </enumeratedValue>
  484. </enumeratedValues>
  485. </field>
  486. <!-- MATCH: Shows if a Match was hit -->
  487. <field>
  488. <name>MATCH</name>
  489. <description>Shows if the MATCH was hit</description>
  490. <bitRange>[8:8]</bitRange>
  491. <access>read-write</access>
  492. <enumeratedValues>
  493. <enumeratedValue>
  494. <name>No_Match</name>
  495. <description>The MATCH condition was not hit</description>
  496. <value>0</value>
  497. </enumeratedValue>
  498. <enumeratedValue>
  499. <name>Match_Hit</name>
  500. <description>The MATCH condition was hit</description>
  501. <value>1</value>
  502. </enumeratedValue>
  503. </enumeratedValues>
  504. </field>
  505. <!-- UN: Shows if an underflow occured -->
  506. <field>
  507. <name>UN</name>
  508. <description>Shows if an underflow occured. This flag is sticky</description>
  509. <bitRange>[9:9]</bitRange>
  510. <access>read-write</access>
  511. <enumeratedValues>
  512. <enumeratedValue>
  513. <name>No_Underflow</name>
  514. <description>No underflow occured since last clear</description>
  515. <value>0</value>
  516. </enumeratedValue>
  517. <enumeratedValue>
  518. <name>Underflow</name>
  519. <description>A minimum of one underflow occured since last clear</description>
  520. <value>1</value>
  521. </enumeratedValue>
  522. </enumeratedValues>
  523. </field>
  524. <!-- OV: Shows if an overflow occured -->
  525. <field>
  526. <name>OV</name>
  527. <description>Shows if an overflow occured. This flag is sticky</description>
  528. <bitRange>[10:10]</bitRange>
  529. <access>read-write</access>
  530. <enumeratedValues>
  531. <enumeratedValue>
  532. <name>No_Overflow</name>
  533. <description>No overflow occured since last clear</description>
  534. <value>0</value>
  535. </enumeratedValue>
  536. <enumeratedValue>
  537. <name>Overflow_occured</name>
  538. <description>A minimum of one overflow occured since last clear</description>
  539. <value>1</value>
  540. </enumeratedValue>
  541. </enumeratedValues>
  542. </field>
  543. <!-- RST: Shows if Timer is in RESET state -->
  544. <field>
  545. <name>RST</name>
  546. <description>Shows if Timer is in RESET state</description>
  547. <bitRange>[12:12]</bitRange>
  548. <access>read-only</access>
  549. <enumeratedValues>
  550. <enumeratedValue>
  551. <name>Ready</name>
  552. <description>Timer is not in RESET state and can operate</description>
  553. <value>0</value>
  554. </enumeratedValue>
  555. <enumeratedValue>
  556. <name>In_Reset</name>
  557. <description>Timer is in RESET state and can not operate</description>
  558. <value>1</value>
  559. </enumeratedValue>
  560. </enumeratedValues>
  561. </field>
  562. <!-- RELOAD: Shows the currently active Reload Register -->
  563. <field>
  564. <name>RELOAD</name>
  565. <description>Shows the currently active RELOAD Register</description>
  566. <bitRange>[15:14]</bitRange>
  567. <access>read-only</access>
  568. <enumeratedValues>
  569. <enumeratedValue>
  570. <name>RELOAD0</name>
  571. <description>Reload Register number 0 is active</description>
  572. <value>0</value>
  573. </enumeratedValue>
  574. <enumeratedValue>
  575. <name>RELOAD1</name>
  576. <description>Reload Register number 1 is active</description>
  577. <value>1</value>
  578. </enumeratedValue>
  579. <enumeratedValue>
  580. <name>RELOAD2</name>
  581. <description>Reload Register number 2 is active</description>
  582. <value>2</value>
  583. </enumeratedValue>
  584. <enumeratedValue>
  585. <name>RELOAD3</name>
  586. <description>Reload Register number 3 is active</description>
  587. <value>3</value>
  588. </enumeratedValue>
  589. </enumeratedValues>
  590. </field>
  591. </fields>
  592. </register>
  593. <!-- INT: Interrupt Register -->
  594. <register>
  595. <name>INT</name>
  596. <description>Interrupt Register</description>
  597. <addressOffset>0x10</addressOffset>
  598. <size>16</size>
  599. <access>read-write</access>
  600. <resetValue>0x00000000</resetValue>
  601. <resetMask>0x0771</resetMask>
  602. <fields>
  603. <!-- EN: Interrupt Enable -->
  604. <field>
  605. <name>EN</name>
  606. <description>Interrupt Enable</description>
  607. <bitRange>[0:0]</bitRange>
  608. <access>read-write</access>
  609. <enumeratedValues>
  610. <enumeratedValue>
  611. <name>Disabled</name>
  612. <description>Timer does not generate Interrupts</description>
  613. <value>0</value>
  614. </enumeratedValue>
  615. <enumeratedValue>
  616. <name>Enable</name>
  617. <description>Timer triggers the TIMERn Interrupt</description>
  618. <value>1</value>
  619. </enumeratedValue>
  620. </enumeratedValues>
  621. </field>
  622. <!-- MODE: Interrupt Mode -->
  623. <field>
  624. <name>MODE</name>
  625. <description>Interrupt Mode, selects on which condition the Timer should generate an Interrupt</description>
  626. <bitRange>[6:4]</bitRange>
  627. <access>read-write</access>
  628. <enumeratedValues>
  629. <enumeratedValue>
  630. <name>Match</name>
  631. <description>Timer generates an Interrupt when the MATCH condition is hit</description>
  632. <value>0</value>
  633. </enumeratedValue>
  634. <enumeratedValue>
  635. <name>Underflow</name>
  636. <description>Timer generates an Interrupt when it underflows</description>
  637. <value>1</value>
  638. </enumeratedValue>
  639. <enumeratedValue>
  640. <name>Overflow</name>
  641. <description>Timer generates an Interrupt when it overflows</description>
  642. <value>2</value>
  643. </enumeratedValue>
  644. </enumeratedValues>
  645. </field>
  646. </fields>
  647. </register>
  648. <!-- COUNT: Counter Register -->
  649. <register>
  650. <name>COUNT</name>
  651. <description>The Counter Register reflects the actual Value of the Timer/Counter</description>
  652. <addressOffset>0x20</addressOffset>
  653. <size>32</size>
  654. <access>read-write</access>
  655. <resetValue>0x00000000</resetValue>
  656. <resetMask>0xFFFFFFFF</resetMask>
  657. </register>
  658. <!-- MATCH: Match Register -->
  659. <register>
  660. <name>MATCH</name>
  661. <description>The Match Register stores the compare Value for the MATCH condition</description>
  662. <addressOffset>0x24</addressOffset>
  663. <size>32</size>
  664. <access>read-write</access>
  665. <resetValue>0x00000000</resetValue>
  666. <resetMask>0xFFFFFFFF</resetMask>
  667. </register>
  668. <!-- PRESCALE: Prescale Read Register -->
  669. <register>
  670. <name>PRESCALE_RD</name>
  671. <description>The Prescale Register stores the Value for the prescaler. The cont event gets divided by this value</description>
  672. <addressOffset>0x28</addressOffset>
  673. <size>32</size>
  674. <access>read-only</access>
  675. <resetValue>0x00000000</resetValue>
  676. <resetMask>0xFFFFFFFF</resetMask>
  677. </register>
  678. <!-- PRESCALE: Prescale Write Register -->
  679. <register>
  680. <name>PRESCALE_WR</name>
  681. <description>The Prescale Register stores the Value for the prescaler. The cont event gets divided by this value</description>
  682. <addressOffset>0x28</addressOffset>
  683. <size>32</size>
  684. <access>write-only</access>
  685. <resetValue>0x00000000</resetValue>
  686. <resetMask>0xFFFFFFFF</resetMask>
  687. </register>
  688. <!-- RELOAD: Array of Reload Register with 4 elements-->
  689. <register>
  690. <dim>4</dim>
  691. <dimIncrement>4</dimIncrement>
  692. <dimIndex>0,1,2,3</dimIndex>
  693. <name>RELOAD[%s]</name>
  694. <description>The Reload Register stores the Value the COUNT Register gets reloaded on a when a condition was met.</description>
  695. <addressOffset>0x50</addressOffset>
  696. <size>32</size>
  697. <access>read-write</access>
  698. <resetValue>0x00000000</resetValue>
  699. <resetMask>0xFFFFFFFF</resetMask>
  700. </register>
  701. </registers>
  702. </peripheral>
  703. <!-- Timer 1 -->
  704. <peripheral derivedFrom="TIMER0">
  705. <name>TIMER1</name>
  706. <baseAddress>0x40010100</baseAddress>
  707. <interrupt>
  708. <name>TIMER1</name>
  709. <value>4</value>
  710. </interrupt>
  711. </peripheral>
  712. <!-- Timer 2 -->
  713. <peripheral derivedFrom="TIMER0">
  714. <name>TIMER2</name>
  715. <baseAddress>0x40010200</baseAddress>
  716. <interrupt>
  717. <name>TIMER2</name>
  718. <value>6</value>
  719. </interrupt>
  720. </peripheral>
  721. </peripherals>
  722. </device>