1<?xml version="1.0" encoding="utf-8" standalone="no"?> 2<device schemaVersion="1.1" xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="svd_schema.xsd"> 3 <peripheral> 4 <!-- AFE_DAC: Stacked Die --> 5 <name>AFE_DAC</name> 6 <description>Analog Front End DAC on Stacked Die via SPI</description> 7 <baseAddress>0x4FC00000</baseAddress> 8 <addressBlock> 9 <offset>0x00</offset> 10 <size>0x200</size> 11 <usage>registers</usage> 12 </addressBlock> 13 <registers> 14 <register> 15 <name>CTRL</name> 16 <description>Control Register</description> 17 <!-- Top 2 bytes of address encodes the register address --> 18 <!-- Address \bBits 27&28 are MSB address bits, which must be written into ana_src_sel[1:0] as bank select --> 19 <!-- Bottom byte of address encodes the register width in bytes 1 - 4 (8bits to 32bits) --> 20 <!-- Due to sorting conventions of header files, address needs to be MSB --> 21 <addressOffset>0x01000004</addressOffset> 22 <size>32</size> 23 <fields> 24 <field> 25 <name>FIFO_AE_CNT</name> 26 <description>Description not included</description> 27 <bitOffset>0</bitOffset> 28 <bitWidth>4</bitWidth> 29 </field> 30 <field> 31 <name>FIFO_ALMOST_FULL</name> 32 <description>Description not included</description> 33 <bitOffset>5</bitOffset> 34 <bitWidth>1</bitWidth> 35 </field> 36 <field> 37 <name>FIFO_EMPTY</name> 38 <description>Description not included</description> 39 <bitOffset>6</bitOffset> 40 <bitWidth>1</bitWidth> 41 </field> 42 <field> 43 <name>FIFO_ALMOST_EMPTY</name> 44 <description>Description not included</description> 45 <bitOffset>7</bitOffset> 46 <bitWidth>1</bitWidth> 47 </field> 48 <field> 49 <name>INTERP_MODE</name> 50 <description>Description not included</description> 51 <bitOffset>8</bitOffset> 52 <bitWidth>3</bitWidth> 53 <enumeratedValues> 54 <enumeratedValue> 55 <name>DISABLED</name> 56 <description>Description not included</description> 57 <value>0</value> 58 </enumeratedValue> 59 <enumeratedValue> 60 <name>2_TO_1_INTERPOLATION</name> 61 <description>Description not included</description> 62 <value>1</value> 63 </enumeratedValue> 64 <enumeratedValue> 65 <name>4_TO_1_INTERPOLATION</name> 66 <description>Description not included</description> 67 <value>2</value> 68 </enumeratedValue> 69 <enumeratedValue> 70 <name>8_TO_1_INTERPOLATION</name> 71 <description>Description not included</description> 72 <value>3</value> 73 </enumeratedValue> 74 </enumeratedValues> 75 </field> 76 <field> 77 <name>FIFO_AF_CNT</name> 78 <description>Description not included</description> 79 <bitOffset>12</bitOffset> 80 <bitWidth>4</bitWidth> 81 </field> 82 <field> 83 <name>START_MODE</name> 84 <description>Description not included</description> 85 <bitOffset>16</bitOffset> 86 <bitWidth>2</bitWidth> 87 <enumeratedValues> 88 <enumeratedValue> 89 <name>START_WHEN_FIFO_NOT_EMPTY</name> 90 <description>Description not included</description> 91 <value>0</value> 92 </enumeratedValue> 93 <enumeratedValue> 94 <name>START_ON_ADC_START_STROBE</name> 95 <description>Description not included</description> 96 <value>1</value> 97 </enumeratedValue> 98 <enumeratedValue> 99 <name>START_WHEN_CPU_START_WRITTEN</name> 100 <description>Description not included</description> 101 <value>2</value> 102 </enumeratedValue> 103 <enumeratedValue> 104 <name>RESERVED</name> 105 <description>Description not included</description> 106 <value>3</value> 107 </enumeratedValue> 108 </enumeratedValues> 109 </field> 110 <field> 111 <name>ACTIVE</name> 112 <description>Description not included</description> 113 <bitOffset>18</bitOffset> 114 <bitWidth>1</bitWidth> 115 </field> 116 <field> 117 <name>BIN2GRAY_BYPASS</name> 118 <description>Description not included</description> 119 <bitOffset>19</bitOffset> 120 <bitWidth>1</bitWidth> 121 </field> 122 <field> 123 <name>CPU_START</name> 124 <description>Description not included</description> 125 <bitOffset>20</bitOffset> 126 <bitWidth>1</bitWidth> 127 </field> 128 <field> 129 <name>OP_MODE</name> 130 <description>Description not included</description> 131 <bitOffset>24</bitOffset> 132 <bitWidth>2</bitWidth> 133 <enumeratedValues> 134 <enumeratedValue> 135 <name>OUTPUT_WHEN_FIFO_AVAIL</name> 136 <description>Description not included</description> 137 <value>0</value> 138 </enumeratedValue> 139 <enumeratedValue> 140 <name>OUTPUT_ONCE_AT_RATE_CNT</name> 141 <description>Description not included</description> 142 <value>1</value> 143 </enumeratedValue> 144 <enumeratedValue> 145 <name>RESERVED</name> 146 <description>Description not included</description> 147 <value>2</value> 148 </enumeratedValue> 149 <enumeratedValue> 150 <name>OUTPUT_SAMPLE_CNT_AT_RATE_CNT</name> 151 <description>Description not included</description> 152 <value>3</value> 153 </enumeratedValue> 154 </enumeratedValues> 155 </field> 156 <field> 157 <name>POWER_MODE_1_0</name> 158 <description>Description not included</description> 159 <bitOffset>26</bitOffset> 160 <bitWidth>2</bitWidth> 161 <enumeratedValues> 162 <enumeratedValue> 163 <name>POWLVL0</name> 164 <description>Description not included</description> 165 <value>1</value> 166 </enumeratedValue> 167 <enumeratedValue> 168 <name>POWLVL1</name> 169 <description>Description not included</description> 170 <value>3</value> 171 </enumeratedValue> 172 <enumeratedValue> 173 <name>POWLVL2</name> 174 <description>Description not included</description> 175 <value>1</value> 176 </enumeratedValue> 177 <enumeratedValue> 178 <name>POWLVL3</name> 179 <description>Description not included</description> 180 <value>3</value> 181 </enumeratedValue> 182 </enumeratedValues> 183 </field> 184 <field> 185 <name>POWER_ON</name> 186 <description>Description not included</description> 187 <bitOffset>28</bitOffset> 188 <bitWidth>1</bitWidth> 189 </field> 190 <field> 191 <name>CLOCK_GATE_EN</name> 192 <description>Description not included</description> 193 <bitOffset>29</bitOffset> 194 <bitWidth>1</bitWidth> 195 </field> 196 <field> 197 <name>POWER_MODE_2</name> 198 <description>Description not included</description> 199 <bitOffset>30</bitOffset> 200 <bitWidth>1</bitWidth> 201 <enumeratedValues> 202 <enumeratedValue> 203 <name>POWLVL0_1</name> 204 <description>Description not included</description> 205 <value>0</value> 206 </enumeratedValue> 207 <enumeratedValue> 208 <name>POWLVL2_3</name> 209 <description>Description not included</description> 210 <value>1</value> 211 </enumeratedValue> 212 </enumeratedValues> 213 </field> 214 <field> 215 <name>RESET</name> 216 <description>Description not included</description> 217 <bitOffset>31</bitOffset> 218 <bitWidth>1</bitWidth> 219 </field> 220 </fields> 221 </register> 222 <register> 223 <name>RATE</name> 224 <description>Rate/Sample Control</description> 225 <addressOffset>0x01010004</addressOffset> 226 <size>32</size> 227 <fields> 228 <field> 229 <name>RATE_CNT</name> 230 <description>Description not included</description> 231 <bitOffset>0</bitOffset> 232 <bitWidth>16</bitWidth> 233 </field> 234 <field> 235 <name>SAMPLE_CNT</name> 236 <description>Description not included</description> 237 <bitOffset>16</bitOffset> 238 <bitWidth>16</bitWidth> 239 </field> 240 </fields> 241 </register> 242 <register> 243 <name>INT</name> 244 <description>Interrupt Flags and Enable/Disable</description> 245 <addressOffset>0x01020004</addressOffset> 246 <size>32</size> 247 <fields> 248 <field> 249 <name>OUT_DONE_IF</name> 250 <description>Description not included</description> 251 <bitOffset>0</bitOffset> 252 <bitWidth>1</bitWidth> 253 </field> 254 <field> 255 <name>UNDERFLOW_IF</name> 256 <description>Description not included</description> 257 <bitOffset>1</bitOffset> 258 <bitWidth>1</bitWidth> 259 </field> 260 <field> 261 <name>ALMOST_EMPTY_IF</name> 262 <description>Description not included</description> 263 <bitOffset>2</bitOffset> 264 <bitWidth>1</bitWidth> 265 </field> 266 <field> 267 <name>UNDERLFOW</name> 268 <description>Description not included</description> 269 <bitOffset>3</bitOffset> 270 <bitWidth>1</bitWidth> 271 </field> 272 <field> 273 <name>OUT_DONE_IE</name> 274 <description>Description not included</description> 275 <bitOffset>16</bitOffset> 276 <bitWidth>1</bitWidth> 277 </field> 278 <field> 279 <name>UNDERFLOW_IE</name> 280 <description>Description not included</description> 281 <bitOffset>17</bitOffset> 282 <bitWidth>1</bitWidth> 283 </field> 284 <field> 285 <name>AHB_CG_DISABLE</name> 286 <description>Description not included</description> 287 <bitOffset>28</bitOffset> 288 <bitWidth>1</bitWidth> 289 </field> 290 <field> 291 <name>APB_CG_DISABLE</name> 292 <description>Description not included</description> 293 <bitOffset>29</bitOffset> 294 <bitWidth>1</bitWidth> 295 </field> 296 </fields> 297 </register> 298 <register> 299 <name>REG</name> 300 <description>Description not included</description> 301 <addressOffset>0x01030004</addressOffset> 302 <size>32</size> 303 </register> 304 <register> 305 <name>TRIM</name> 306 <description>DAC TRIM</description> 307 <addressOffset>0x01040004</addressOffset> 308 <size>32</size> 309 </register> 310 <register> 311 <name>FIFO</name> 312 <description>DAC FIFO</description> 313 <addressOffset>0x01060002</addressOffset> 314 <size>16</size> 315 <fields> 316 <field> 317 <name>FIFO_DATA</name> 318 <description>Description not included</description> 319 <bitOffset>0</bitOffset> 320 <bitWidth>16</bitWidth> 321 </field> 322 </fields> 323 </register> 324 <register> 325 <name>VREF_CTRL</name> 326 <description>DAC VREF Control</description> 327 <addressOffset>0x01050002</addressOffset> 328 <size>16</size> 329 <fields> 330 <field> 331 <name>REF_DAC_FAST_PD</name> 332 <description>Description not included</description> 333 <bitOffset>0</bitOffset> 334 <bitWidth>1</bitWidth> 335 </field> 336 <field> 337 <name>DACREFSEL</name> 338 <description>Description not included</description> 339 <bitOffset>1</bitOffset> 340 <bitWidth>2</bitWidth> 341 <enumeratedValues> 342 <enumeratedValue> 343 <name>VOLTS_1_024</name> 344 <description>Description not included</description> 345 <value>0</value> 346 </enumeratedValue> 347 <enumeratedValue> 348 <name>VOLTS_1_500</name> 349 <description>Description not included</description> 350 <value>1</value> 351 </enumeratedValue> 352 <enumeratedValue> 353 <name>VOLTS_2_048</name> 354 <description>Description not included</description> 355 <value>2</value> 356 </enumeratedValue> 357 <enumeratedValue> 358 <name>VOLTS_2_500</name> 359 <description>Description not included</description> 360 <value>3</value> 361 </enumeratedValue> 362 </enumeratedValues> 363 </field> 364 <field> 365 <name>REFDAC_OUTEN</name> 366 <description>Description not included</description> 367 <bitOffset>3</bitOffset> 368 <bitWidth>1</bitWidth> 369 </field> 370 <field> 371 <name>REF_PU</name> 372 <description>Description not included</description> 373 <bitOffset>4</bitOffset> 374 <bitWidth>1</bitWidth> 375 </field> 376 <field> 377 <name>REFDAC_CP</name> 378 <description>Description not included</description> 379 <bitOffset>5</bitOffset> 380 <bitWidth>1</bitWidth> 381 </field> 382 <field> 383 <name>REFDAC_GAIN</name> 384 <description>Description not included</description> 385 <bitOffset>6</bitOffset> 386 <bitWidth>2</bitWidth> 387 <enumeratedValues> 388 <enumeratedValue> 389 <name>DEFAULT_GAIN</name> 390 <description>Description not included</description> 391 <value>0</value> 392 </enumeratedValue> 393 <enumeratedValue> 394 <name>HIGHEST_GAIN</name> 395 <description>Description not included</description> 396 <value>1</value> 397 </enumeratedValue> 398 </enumeratedValues> 399 </field> 400 <field> 401 <name>REF_ABUS</name> 402 <description>Description not included</description> 403 <bitOffset>8</bitOffset> 404 <bitWidth>4</bitWidth> 405 </field> 406 </fields> 407 </register> 408 <register> 409 <name>VREF_TRIM</name> 410 <description>Control behavior of GPIO1</description> 411 <addressOffset>0x01070002</addressOffset> 412 <size>16</size> 413 <fields> 414 <field> 415 <name>V1_TRIM</name> 416 <description>Description not included</description> 417 <bitOffset>0</bitOffset> 418 <bitWidth>5</bitWidth> 419 </field> 420 <field> 421 <name>REF_BG_TRIM</name> 422 <description>Description not included</description> 423 <bitOffset>5</bitOffset> 424 <bitWidth>6</bitWidth> 425 </field> 426 </fields> 427 </register> 428 </registers> 429 </peripheral> 430 <!-- AFE_DAC: Stacked Die --> 431</device>