Texas Instruments MSP430x4xx - Manual

Texas Instruments MSP430x4xx

Texas Instruments MSP430x4xx – Manual, read for free online in PDF format. We hope this helps you resolve any issues you may have. If you have further questions, please contact us through the contact form.

1 Page 1
2 Page 2
3 Page 3
4 Page 4
5 Page 5
6 Page 6
7 Page 7
8 Page 8
9 Page 9
10 Page 10
11 Page 11
12 Page 12
13 Page 13
14 Page 14
15 Page 15
16 Page 16
17 Page 17
18 Page 18
19 Page 19
20 Page 20
21 Page 21
22 Page 22
23 Page 23
24 Page 24
25 Page 25
26 Page 26
27 Page 27
28 Page 28
29 Page 29
30 Page 30
31 Page 31
32 Page 32
33 Page 33
34 Page 34
35 Page 35
36 Page 36
37 Page 37
38 Page 38
39 Page 39
40 Page 40
41 Page 41
42 Page 42
43 Page 43
44 Page 44
45 Page 45
46 Page 46
47 Page 47
48 Page 48
49 Page 49
50 Page 50
51 Page 51
52 Page 52
53 Page 53
54 Page 54
55 Page 55
56 Page 56
57 Page 57
58 Page 58
59 Page 59
60 Page 60
61 Page 61
62 Page 62
63 Page 63
64 Page 64
65 Page 65
66 Page 66
67 Page 67
68 Page 68
69 Page 69
70 Page 70
71 Page 71
72 Page 72
73 Page 73
74 Page 74
75 Page 75
76 Page 76
77 Page 77
78 Page 78
79 Page 79
80 Page 80
81 Page 81
82 Page 82
83 Page 83
84 Page 84
85 Page 85
86 Page 86
87 Page 87
88 Page 88
89 Page 89
90 Page 90
91 Page 91
92 Page 92
93 Page 93
94 Page 94
95 Page 95
96 Page 96
97 Page 97
98 Page 98
99 Page 99
100 Page 100
101 Page 101
102 Page 102
103 Page 103
104 Page 104
105 Page 105
106 Page 106
107 Page 107
108 Page 108
109 Page 109
110 Page 110
111 Page 111
112 Page 112
113 Page 113
114 Page 114
115 Page 115
116 Page 116
117 Page 117
118 Page 118
119 Page 119
120 Page 120
121 Page 121
122 Page 122
123 Page 123
124 Page 124
125 Page 125
126 Page 126
127 Page 127
128 Page 128
129 Page 129
130 Page 130
131 Page 131
132 Page 132
133 Page 133
134 Page 134
135 Page 135
136 Page 136
137 Page 137
138 Page 138
139 Page 139
140 Page 140
141 Page 141
142 Page 142
143 Page 143
144 Page 144
145 Page 145
146 Page 146
147 Page 147
148 Page 148
149 Page 149
150 Page 150
151 Page 151
152 Page 152
153 Page 153
154 Page 154
155 Page 155
156 Page 156
157 Page 157
158 Page 158
159 Page 159
160 Page 160
161 Page 161
162 Page 162
163 Page 163
164 Page 164
165 Page 165
166 Page 166
167 Page 167
168 Page 168
169 Page 169
170 Page 170
171 Page 171
172 Page 172
173 Page 173
174 Page 174
175 Page 175
176 Page 176
177 Page 177
178 Page 178
179 Page 179
180 Page 180
181 Page 181
182 Page 182
183 Page 183
184 Page 184
185 Page 185
186 Page 186
187 Page 187
188 Page 188
189 Page 189
190 Page 190
191 Page 191
192 Page 192
193 Page 193
194 Page 194
195 Page 195
196 Page 196
197 Page 197
198 Page 198
199 Page 199
200 Page 200
201 Page 201
202 Page 202
203 Page 203
204 Page 204
205 Page 205
206 Page 206
207 Page 207
208 Page 208
209 Page 209
210 Page 210
211 Page 211
212 Page 212
213 Page 213
214 Page 214
215 Page 215
216 Page 216
217 Page 217
218 Page 218
219 Page 219
220 Page 220
221 Page 221
222 Page 222
223 Page 223
224 Page 224
225 Page 225
226 Page 226
227 Page 227
228 Page 228
229 Page 229
230 Page 230
231 Page 231
232 Page 232
233 Page 233
234 Page 234
235 Page 235
236 Page 236
237 Page 237
238 Page 238
239 Page 239
240 Page 240
241 Page 241
242 Page 242
243 Page 243
244 Page 244
245 Page 245
246 Page 246
247 Page 247
248 Page 248
249 Page 249
250 Page 250
251 Page 251
252 Page 252
253 Page 253
254 Page 254
255 Page 255
256 Page 256
257 Page 257
258 Page 258
259 Page 259
260 Page 260
261 Page 261
262 Page 262
263 Page 263
264 Page 264
265 Page 265
266 Page 266
267 Page 267
268 Page 268
269 Page 269
270 Page 270
271 Page 271
272 Page 272
273 Page 273
274 Page 274
275 Page 275
276 Page 276
277 Page 277
278 Page 278
279 Page 279
280 Page 280
281 Page 281
282 Page 282
283 Page 283
284 Page 284
285 Page 285
286 Page 286
287 Page 287
288 Page 288
289 Page 289
290 Page 290
291 Page 291
292 Page 292
293 Page 293
294 Page 294
295 Page 295
296 Page 296
297 Page 297
298 Page 298
299 Page 299
300 Page 300
301 Page 301
302 Page 302
303 Page 303
304 Page 304
305 Page 305
306 Page 306
307 Page 307
308 Page 308
309 Page 309
310 Page 310
311 Page 311
312 Page 312
313 Page 313
314 Page 314
315 Page 315
316 Page 316
317 Page 317
318 Page 318
319 Page 319
320 Page 320
321 Page 321
322 Page 322
323 Page 323
324 Page 324
325 Page 325
326 Page 326
327 Page 327
328 Page 328
329 Page 329
330 Page 330
331 Page 331
332 Page 332
333 Page 333
334 Page 334
335 Page 335
336 Page 336
337 Page 337
338 Page 338
339 Page 339
340 Page 340
341 Page 341
342 Page 342
343 Page 343
344 Page 344
345 Page 345
346 Page 346
347 Page 347
348 Page 348
349 Page 349
350 Page 350
351 Page 351
352 Page 352
353 Page 353
354 Page 354
355 Page 355
356 Page 356
357 Page 357
358 Page 358
359 Page 359
360 Page 360
361 Page 361
362 Page 362
363 Page 363
364 Page 364
365 Page 365
366 Page 366
367 Page 367
368 Page 368
369 Page 369
370 Page 370
371 Page 371
372 Page 372
373 Page 373
374 Page 374
375 Page 375
376 Page 376
377 Page 377
378 Page 378
379 Page 379
380 Page 380
381 Page 381
382 Page 382
383 Page 383
384 Page 384
385 Page 385
386 Page 386
387 Page 387
388 Page 388
389 Page 389
390 Page 390
391 Page 391
392 Page 392
393 Page 393
394 Page 394
395 Page 395
396 Page 396
397 Page 397
398 Page 398
399 Page 399
400 Page 400
401 Page 401
402 Page 402
403 Page 403
404 Page 404
405 Page 405
406 Page 406
407 Page 407
408 Page 408
409 Page 409
410 Page 410
411 Page 411
412 Page 412
413 Page 413
414 Page 414
415 Page 415
416 Page 416
417 Page 417
418 Page 418
419 Page 419
420 Page 420
421 Page 421
422 Page 422
423 Page 423
424 Page 424
425 Page 425
426 Page 426
427 Page 427
428 Page 428
429 Page 429
430 Page 430
431 Page 431
432 Page 432
433 Page 433
434 Page 434
435 Page 435
436 Page 436
437 Page 437
438 Page 438
439 Page 439
440 Page 440
441 Page 441
442 Page 442
443 Page 443
444 Page 444
445 Page 445
446 Page 446
447 Page 447
448 Page 448
449 Page 449
450 Page 450
451 Page 451
452 Page 452
453 Page 453
454 Page 454
455 Page 455
456 Page 456
457 Page 457
458 Page 458
459 Page 459
460 Page 460
461 Page 461
462 Page 462
463 Page 463
464 Page 464
465 Page 465
466 Page 466
467 Page 467
468 Page 468
469 Page 469
470 Page 470
471 Page 471
472 Page 472
473 Page 473
474 Page 474
475 Page 475
476 Page 476
477 Page 477
478 Page 478
479 Page 479
480 Page 480
481 Page 481
482 Page 482
483 Page 483
484 Page 484
485 Page 485
486 Page 486
487 Page 487
488 Page 488
489 Page 489
490 Page 490
491 Page 491
492 Page 492
493 Page 493
494 Page 494
495 Page 495
496 Page 496
497 Page 497
498 Page 498
499 Page 499
500 Page 500
501 Page 501
502 Page 502
503 Page 503
504 Page 504
505 Page 505
506 Page 506
507 Page 507
508 Page 508
509 Page 509
510 Page 510
511 Page 511
512 Page 512
Page: / 512

Table of Contents:

  • Page 3 – Preface; Read This First; About This Manual; Program examples, are shown in a
  • Page 4 – Glossary
  • Page 5 – Register Bit Conventions; Key
  • Page 7 – Contents; Introduction
  • Page 8 – Flash Memory Controller
  • Page 9 – Hardware Multiplier
  • Page 10 – 4 USART Peripheral Interface, UART Mode
  • Page 11 – 5 USART Peripheral Interface, SPI Mode
  • Page 14 – This chapter describes the architecture of the MSP430.; Topic; Architecture; Chapter 1
  • Page 15 – Flexible Clock System
  • Page 16 – Embedded Emulation; The benefits of embedded emulation include:
  • Page 17 – Address Space; Figure 1−2. Memory Map; RAM
  • Page 18 – Peripheral Modules; Organized Memory
  • Page 19 – System Resets, Interrupts, and Operating Modes; and Operating Modes; System Reset and Initialization; Chapter 2
  • Page 21 – Figure 2−2. Brownout Timing
  • Page 22 – Device Initial Conditions After System Reset; After a POR, the initial MSP430 conditions are:; Software Initialization; Initialize the SP, typically to the top of RAM.
  • Page 23 – Interrupts; There are three types of interrupts:; Figure 2−3. Interrupt Priority
  • Page 24 – An edge on the RST/NMI pin when configured in NMI mode; Modifying WDTNMIES
  • Page 26 – Oscillator Fault
  • Page 27 – Example of an NMI Interrupt Handler; Figure 2−5. NMI Interrupt Handler; Enabling NMI Interrupts with ACCVIE, NMIIE, and OFIE; RETI; Maskable Interrupts
  • Page 28 – Interrupt Processing; ) Any currently executing instruction is completed.; Figure 2−6. Interrupt Processing
  • Page 29 – Return From Interrupt; The interrupt handling routine terminates with the instruction:; (return from an interrupt service routine); Figure 2−7. Return From Interrupt
  • Page 30 – Interrupt Vectors; Reset
  • Page 31 – The operating modes take into account three different needs:
  • Page 32 – Figure 2−9. MSP430x4xx Operating Modes For Basic Clock System; OSCOFF; Active
  • Page 33 – Entering and Exiting Low-Power Modes; Enter interrupt service routine:; Extended Time in Low-Power Modes
  • Page 34 – Principles for Low; A typical with both a real-time clock function and; Connection of Unused Pins; The correct termination of all unused pins is listed in Table 2−2.; Table 2−2. Connection of Unused Pins
  • Page 35 – CPU Introduction; Chapter 3
  • Page 37 – Figure 3−1. CPU Block Diagram
  • Page 38 – CPU Registers; Figure 3−2. Program Counter; MOV
  • Page 39 – Figure 3−4 shows stack usage.; Figure 3−3. Stack Pointer; Figure 3−4. Stack Usage
  • Page 40 – Figure 3−6. Status Register Bits; Table 3−1 describes the status register bits.; Table 3−1. Description of Status Register Bits; Bit
  • Page 41 – Constant Generator Registers CG1 and CG2; Table 3−2. Values of Constant Generators CG1, CG2; Register; Register mode; The constant generator advantages are:; Constant Generator − Expanded Instruction Set
  • Page 42 – General−Purpose Registers R4 - R15
  • Page 43 – Addressing Modes; Table 3−3. Source/Destination Operand Addressing Modes; Addressing Mode
  • Page 44 – Register Mode; The register mode is described in Table 3−4.; Table 3−4. Register Mode Description; Assembler Code; One or two words; PC; Data in Registers
  • Page 45 – Indexed Mode; The indexed mode is described in Table 3−5.; Table 3−5. Indexed Mode Description; Two or three words
  • Page 46 – Symbolic Mode; The symbolic mode is described in Table 3−6.; Table 3−6. Symbolic Mode Description
  • Page 47 – Absolute Mode; The absolute mode is described in Table 3−7.; Table 3−7. Absolute Mode Description
  • Page 48 – Indirect Register Mode; The indirect register mode is described in Table 3−8.; Table 3−8. Indirect Mode Description
  • Page 49 – Indirect Autoincrement Mode; The indirect autoincrement mode is described in Table 3−9.; Table 3−9. Indirect Autoincrement Mode Description; Figure 3−8. Operand Fetch Operation
  • Page 50 – Immediate Mode; The immediate mode is described in Table 3−10.; Table 3−10. Immediate Mode Description; Valid only for a source operand.
  • Page 51 – Instruction Set; Destination Address
  • Page 52 – Figure 3−9. Double Operand Instruction Format; Table 3−11. Double Operand Instructions; Mnemonic; Instructions; CMP
  • Page 53 – Figure 3−10. Single Operand Instruction Format; Table 3−12. Single Operand Instructions; CALL
  • Page 54 – Jumps; Figure 3−11 shows the conditional-jump instruction format.; Figure 3−11. Jump Instruction Format; Table 3−13 lists and describes the jump instructions.; Table 3−13. Jump Instructions
  • Page 67 – Clear zero bit
  • Page 71 – Figure 3−12. Decrement Overlap; EDE
  • Page 82 – Jump unconditionally; Syntax; JMP; Operation; Status bits are not affected.
  • Page 91 – Figure 3−13. Main Program Interrupt
  • Page 92 – Figure 3−14. Destination Operand—Arithmetic Shift Left
  • Page 93 – Figure 3−15. Destination Operand—Carry Left Shift
  • Page 94 – Figure 3−16. Destination Operand—Arithmetic Right Shift
  • Page 95 – Figure 3−17. Destination Operand—Carry Right Shift
  • Page 98 – Set negative bit
  • Page 99 – Set zero bit
  • Page 102 – Figure 3−18. Destination Operand Byte Swap
  • Page 103 – Extend Sign; Figure 3−19. Destination Operand Sign Extension; SXT
  • Page 106 – Instruction Cycles and Lengths; Table 3−14 lists the CPU cycles for interrupt overhead and reset.; Table 3−14. Interrupt and Reset Cycles; Return from interrupt (; Table 3−15. Format-II Instruction Cycles and Lengths; Rn; Instruction Format II Immediate Mode; Do not use instructions
  • Page 107 – Table 3−16. Format I Instruction Cycles and Lengths
  • Page 108 – Instruction Set Description; Figure 3−20. Core Instruction Map
  • Page 110 – FLL+ Clock Module Introduction; Chapter 4
  • Page 111 – The FLL+ clock module includes two or three clock sources:
  • Page 114 – FLL+ Clock Module Operation; BIC; FLL+ Clock features for Low-Power Applications; Low clock frequency for energy conservation and time keeping
  • Page 115 – LFXT1 Oscillator; LFXT1 Oscillator Characteristics; XT2 Oscillator
  • Page 116 – DCO Frequency Range; Table 4−1. DCO Range Control Bits; Typical; Range
  • Page 117 – DCO Modulator; The modulator mixes the two adjacent; Figure 4−3. Modulator Patterns
  • Page 119 – Buffered Clock Output; DCO Active During Oscillator Fault; Figure 4−4. Oscillator Fault Logic
  • Page 120 – FLL+ Clock Module Registers; The FLL+ registers are listed in Table 4−2.
  • Page 121 – SCFQCTL, System Clock Control Register; Modulation enabled; SCFI0, System Clock Frequency Integrator Register 0; FLLDx; DCO Range Control. These bits select the f; MODx
  • Page 122 – SCFI1, System Clock Frequency Integrator Register 1; DCOx
  • Page 124 – Unused
  • Page 125 – IE1, Interrupt Enable Register 1; OFIE; IFG1, Interrupt Flag Register 1
  • Page 126 – Flash Memory Introduction; Chapter 5
  • Page 127 – Minimum V; During Flash Write or Erase; Figure 5−1. Flash Memory Module Block Diagram
  • Page 128 – Flash Memory Segmentation
  • Page 129 – Flash Memory Operation; Block write; Flash Memory Timing Generator; Figure 5−3. Flash Memory Timing Generator Block Diagram; frequency deviates from the
  • Page 130 – Erasing Flash Memory; Table 5−1. Erase Modes; MERAS; Segment erase; Figure 5−4. Erase Cycle Timing; BUSY
  • Page 131 – Initiating an Erase from Within Flash Memory; The flow to initiate an erase from flash is shown in Figure 5−5.; Figure 5−5. Erase Cycle from Within Flash Memory; Setup flash controller and erase
  • Page 132 – Initiating an Erase from RAM; Figure 5−6. Erase Cycle from Within RAM
  • Page 133 – Writing Flash Memory; Table 5−2. Write Modes; BLKWRT
  • Page 134 – cycles. With each byte or word write, the amount of time the block is; Initiating a Byte/Word Write from Within Flash Memory; Figure 5−8. Initiating a Byte/Word Write from Flash; Setup flash controller
  • Page 135 – Initiating a Byte/Word Write from RAM; The flow to initiate a byte/word write from RAM is shown in Figure 5−9.; Figure 5−9. Initiating a Byte/Word Write from RAM; yes
  • Page 136 – Block Write; must not be exceeded for any block during
  • Page 137 – Block Write Flow and Example; A block write flow is shown in Figure 5−8 and the following example.; Figure 5−11. Block Write Flow
  • Page 139 – Flash Memory Access During Write or Erase; JMP PC
  • Page 140 – Stopping a Write or Erase Cycle; Any write to FCTL2 when the BUSY=1 is an access violation.; Flash Memory Controller Interrupts; Program via JTAG
  • Page 141 – Programming Flash Memory via JTAG; Figure 5−12. User-Developed Programming Solution
  • Page 142 – Flash Memory Registers; The flash memory registers are listed in Table 5−4.; Table 5−4. Flash Memory Registers; Flash memory control register 1
  • Page 143 – FCTL1, Flash Memory Control Register; Block-write mode is off; No erase
  • Page 144 – FCTL2, Flash Memory Control Register; FWKEYx; FNx
  • Page 145 – FCTL3, Flash Memory Control Register FCTL3
  • Page 146 – ACCVIE; or
  • Page 147 – Supply Voltage Supervisor; SVS Introduction; Chapter 6
  • Page 149 – Figure 6−1. SVS Block Diagram
  • Page 150 – SVS Operation; Configuring the SVS
  • Page 151 – Changing the VLDx Bits; Figure 6−2. SVSON state When Changing VLDx
  • Page 152 – SVS Operating Range; is close to the threshold. The SVS operation and; Figure 6−3. Operating Levels for SVS and Brownout/Reset Circuit
  • Page 153 – SVS Registers; Table 6−1. SVS Registers; SVS Control Register; SVSCTL, SVS Control Register
  • Page 154 – Hardware Multiplier Introduction; Chapter 7
  • Page 155 – Hardware Multiplier Introduction; Figure 7−1. Hardware Multiplier Block Diagram
  • Page 156 – Hardware Multiplier Operation; NOP; Operand Registers; Table 7−1. OP1 addresses; OP1 Address
  • Page 157 – Result Registers; Table 7−2. RESHI Contents; Table 7−3. SUMEXT Contents; Mode; No carry for result; MACS Underflow and Overflow
  • Page 158 – Software Examples
  • Page 159 – Indirect Addressing of RESLO
  • Page 160 – Hardware Multiplier Registers; The hardware multiplier registers are listed in Table 7−4.; Table 7−4. Hardware Multiplier Registers
  • Page 161 – DMA Introduction; Chapter 8
  • Page 163 – Figure 8−1. DMA Controller Block Diagram
  • Page 164 – DMA Operation; DMA Addressing Modes; Fixed address to fixed address; Figure 8−2. DMA Addressing Modes
  • Page 165 – DMA Transfer Modes; Table 8−1. DMA Transfer Modes; DMADTx; Single transfer
  • Page 166 – Single Transfer
  • Page 167 – Figure 8−3. DMA Single Transfer State Diagram
  • Page 168 – Block Transfers
  • Page 169 – Figure 8−4. DMA Block Transfer State Diagram
  • Page 170 – Burst-Block Transfers
  • Page 171 – Figure 8−5. DMA Burst-Block Transfer State Diagram
  • Page 172 – Note: DMAONFETCH Must Be Used When The DMA Writes To Flash
  • Page 173 – Table 8−2. DMA Trigger Operation; DMAxTSELx Operation; A transfer is triggered when USART0 receives new data. In I; URXIFG1 flag will not trigger a transfer.; No transfer is triggered.
  • Page 174 – Stopping DMA Transfers; There are two ways to stop DMA transfers in progress:; DMA Channel Priorities; DMA Priority; DMA channel priorites are not applicable to MSP430FG43x devices.
  • Page 175 – DMA Transfer Cycle Time; Table 8−3. Maximum Single-Transfer DMA Cycle Time; CPU Operating Mode
  • Page 178 – DMA Registers; The DMA registers are listed in Table 8−4.; Table 8−4. DMA Registers
  • Page 179 – DMACTL0, DMA Control Register 0; Reserved; Reserved
  • Page 180 – DMACTL1, DMA Control Register 1; The DMA transfer occurs immediately; ENNMI; NMI interrupt does not interrupt DMA transfer
  • Page 181 – DMAxCTL, DMA Channel x Control Register
  • Page 182 – DMAxSA, DMA Source Address Register; DMAxSAx
  • Page 183 – DMAxDA, DMA Destination Address Register; DMAxDAx; DMAxSZ, DMA Size Address Register; Transfer is disabled
  • Page 184 – Digital I/O Introduction; Chapter 9
  • Page 185 – Independently programmable individual I/Os
  • Page 186 – Digital I/O Operation; Input Register PxIN; Writing to Read-Only Registers PxIN; Output Registers PxOUT; Bit = 0: The port pin is switched to input direction
  • Page 187 – Function Select Registers PxSEL; Bit = 1: Peripheral module function is selected for the pin; P1 and P2 Interrupts Are Disabled When PxSEL = 1
  • Page 188 – P1 and P2 Interrupts; PxIFG Flags When Changing PxOUT or PxDIR
  • Page 189 – Interrupt Edge Select Registers P1IES, P2IES; Writing to PxIESx; May be set; Interrupt Enable P1IE, P2IE; Each PxIE bit enables the associated PxIFG interrupt flag.; Configuring Unused Port Pins
  • Page 190 – Digital I/O Registers
  • Page 191 – Watchdog Timer Introduction
  • Page 192 – Watchdog Timer Introduction; Watchdog Timer Powers Up Active
  • Page 193 – Figure 10−1. Watchdog Timer Block Diagram
  • Page 194 – Watchdog Timer Operation; Modifying the Watchdog Timer
  • Page 195 – The WDT uses two bits in the SFRs for interrupt control.
  • Page 196 – Periodically clear an active watchdog
  • Page 197 – Watchdog Timer Registers; The watchdog timer module registers are listed in Table 10−1.; Table 10−1. Watchdog Timer Registers
  • Page 198 – WDTCTL, Watchdog Timer Register
  • Page 199 – NMIIE
  • Page 200 – NMIIFG
  • Page 201 – Basic Timer1; Basic Timer1 Introduction
  • Page 202 – Basic Timer1 Initialization
  • Page 203 – Figure 11−1. Basic Timer1 Block Diagram
  • Page 204 – Basic Timer1 Operation; Reading or Writing BTCNT1 and BTCNT2
  • Page 206 – Basic Timer1 Registers; The watchdog timer module registers are listed in Table 11−1.; Table 11−1. Basic Timer1 Registers
  • Page 207 – BTCTL, Basic Timer1 Control Register; BTCNT1 and BTCNT2 are operational; frequency. These bits control the LCD update frequency.
  • Page 208 – BTCNT1, Basic Timer1 Counter 1; BTCNT1x; BTCNT1 register. The BTCNT1 register is the count of BTCNT1.; BTCNT2, Basic Timer1 Counter 2; BTCNT2 register. The BTCNT2 register is the count of BTCNT2.
  • Page 209 – IE2, Interrupt Enable Register 2; BTIE; IFG2, Interrupt Flag Register 2
  • Page 211 – Use of the Word Count; Second Timer_A On Select Devices
  • Page 213 – Modifying Timer_A Registers; Clock Source Select and Divider
  • Page 214 – Table 12−1. Timer Modes; MCx; Stop
  • Page 215 – Up Mode; Figure 12−3. Up Mode Flag Setting; Changing the Period Register TACCR0
  • Page 216 – Continuous Mode; Figure 12−4. Continuous Mode
  • Page 217 – Use of the Continuous Mode; and; Figure 12−6. Continuous Mode Time Intervals; is greater than the TACCR0
  • Page 219 – Use of the Up/Down Mode; Time during which both outputs need to be inactive
  • Page 220 – Capture Mode; The timer value is copied into the TACCRx register
  • Page 221 – Figure 12−11. Capture Cycle; Capture Initiated by Software; Compare Mode; Interrupt flag CCIFG is set
  • Page 222 – Output Modes; Table 12−2. Output Modes; OUTMODx; Output
  • Page 223 – Output Example—Timer in Up Mode; Figure 12−12. Output Example—Timer in Up Mode
  • Page 224 – Output Example—Timer in Continuous Mode; Figure 12−13. Output Example—Timer in Continuous Mode
  • Page 225 – Output Example—Timer in Up/Down Mode; Figure 12−14. Output Example—Timer in Up/Down Mode; Switching Between Output Modes; BIS
  • Page 226 – TACCR0 Interrupt; Figure 12−15. Capture/Compare TACCR0 Interrupt Flag; TAIV, Interrupt Vector Generator
  • Page 228 – The Timer_A registers are listed in Table 12−3 and Table 12−4.
  • Page 230 – TARx
  • Page 231 – TACCTLx, Capture/Compare Control Register
  • Page 236 – Modifying Timer_B Registers; TBR Length; , for the selectable lengths
  • Page 237 – Table 13−1. Timer Modes
  • Page 238 – The up mode is used if the timer period must be different from TBR; Figure 13−3. Up Mode Flag Setting; Changing the Period Register TBCL0
  • Page 239 – In continuous mode the timer repeatedly counts up to TBR; Figure 13−4. Continuous Mode; The TBIFG interrupt flag is set when the timer counts from TBR; Figure 13−5. Continuous Mode Flag Setting
  • Page 240 – and t; Figure 13−6. Continuous Mode Time Intervals; is greater than the TBCL0
  • Page 242 – Changing the Value of Period Register TBCL0
  • Page 243 – The timer value is copied into the TBCCRx register
  • Page 244 – Figure 13−11. Capture Cycle
  • Page 245 – Compare Latch TBCLx; Table 13−2. TBCLx Load Events; CLLDx; New data is transferred from TBCCRx to TBCLx when TBR counts to 0; Grouping Compare Latches; Table 13−3. Compare Latch Operating Modes; TBCLGRPx; None
  • Page 246 – Table 13−4. Output Modes
  • Page 247 – Figure 13−12. Output Example—Timer in Up Mode
  • Page 248 – Figure 13−13. Output Example—Timer in Continuous Mode
  • Page 249 – Output Example − Timer in Up/Down Mode; Figure 13−14. Output Example—Timer in Up/Down Mode
  • Page 250 – Figure 13−15. Capture/Compare TBCCR0 Interrupt Flag; TBIV, Interrupt Vector Generator
  • Page 251 – TBIV, Interrupt Handler Examples; Capture/compare block CCR0
  • Page 252 – The Timer_B registers are listed in Table 13−5.
  • Page 253 – Timer_B Control Register TBCTL
  • Page 254 – TBCLR; Interrupt disabled; No interrupt pending; TBRx
  • Page 255 – TBCCTLx, Capture/Compare Control Register
  • Page 257 – Timer_B interrupt vector value
  • Page 258 – USART Peripheral Interface, UART Mode
  • Page 260 – Figure 14−1. USART Block Diagram: UART Mode
  • Page 261 – Note: Initializing or Re-Configuring the USART Module; The required USART initialization/re-configuration process is:; Figure 14−2. Character Format
  • Page 262 – Asynchronous Communication Formats; Line Format
  • Page 263 – ) Set TXWAKE, then write any character to UxTXBUF. UxTXBUF must be
  • Page 264 – Address; Figure 14−4. Address
  • Page 265 – Automatic Error Detection; will be ignored. See the device-specific datasheet for parameters.; Table 14−1. Receive Error Conditions; Error Condition; Framing error
  • Page 266 – Figure 14−5. State Diagram of Receiver Enable
  • Page 267 – Figure 14−6. State Diagram of Transmitter Enable
  • Page 268 – Figure 14−8. BITCLK Baud Rate Timing
  • Page 269 – Baud Rate Bit Timing; UxBR; Determining the Modulation Value
  • Page 270 – Transmit Bit Timing; baud rate
  • Page 271 – Receive Bit Timing; Figure 14−9. Receive Error; ȧȡȢ
  • Page 272 – 3, since the ideal division factor is 13.65
  • Page 273 – Typical Baud Rates and Errors; Table 14−2. Commonly Used Baud Rates, Baud Rate Data, and Errors
  • Page 274 – USART Transmit Interrupt Operation; Figure 14−10. Transmit Interrupt Operation
  • Page 275 – USART Receive Interrupt Operation; Figure 14−11. Receive Interrupt Operation; Two types of characters do not set URXIFGx:
  • Page 276 – Receive-Start Edge Detect Operation; Break Detect With Halted UART Clock
  • Page 277 – Receive-Start Edge Detect Conditions; Figure 14−12. Glitch Suppression, USART Receive Not Started; When a glitch is longer than; Figure 14−13. Glitch Suppression, USART Activated; URXDx
  • Page 278 – Table 14−3. USART0 Control and Status Registers; Modifying SFR bits
  • Page 279 – UxCTL, USART Control Register
  • Page 280 – UxTCTL, USART Transmit Control Register
  • Page 281 – UxRCTL, USART Receive Control Register
  • Page 282 – UxBR0, USART Baud Rate Control Register 0; UxBRx; The valid baud-rate control range is 3; UxMCTL, USART Modulation Control Register; UxMCTLx; Modulation bits. These bits select the modulation for BRCLK.
  • Page 283 – UxRXBUF, USART Receive Buffer Register; UxRXBUFx; UxTXBUF, USART Transmit Buffer Register; UxTXBUFx
  • Page 284 – ME1, Module Enable Register 1
  • Page 286 – UTXIFG0
  • Page 287 – USART Peripheral Interface, SPI Mode
  • Page 289 – Figure 15−1. USART Block Diagram: SPI Mode
  • Page 291 – Figure 15−2. USART Master and External Slave; Four-Pin SPI Master Mode; SIMO and UCLK are set to inputs and no longer drive the bus
  • Page 292 – Figure 15−3. USART Slave and External Master; Four-Pin SPI Slave Mode; Any receive operation in progress on SIMO is halted
  • Page 293 – Transmit Enable; Figure 15−4. Master Mode Transmit Enable
  • Page 294 – Receive Enable; Figure 15−6. SPI Master Receive-Enable State Diagram
  • Page 295 – Figure 15−8. SPI Baud Rate Generator; BRCLK
  • Page 296 – Serial Clock Polarity and Phase; Figure 15−9. USART SPI Timing
  • Page 297 – SPI Transmit Interrupt Operation; Figure 15−10. Transmit Interrupt Operation; Writing to UxTXBUF in SPI Mode
  • Page 298 – SPI Receive Interrupt Operation; Figure 15−11. Receive Interrupt Operation; Figure 15−12. Receive Interrupt State Diagram
  • Page 299 – Table 15−1. USART0 Control and Status Registers; Modifying the SFR bits
  • Page 305 – ME2, Module Enable Register 2; Module not enabled
  • Page 308 – OA
  • Page 309 – Features of the OA include:; Note: Multiple OA Modules; The block diagram of the OA module is shown in Figure 16−1.
  • Page 310 – Figure 16−1. OA Block Diagram
  • Page 312 – Table 16−1. OA Mode Select; OAFCx; General Purpose Opamp Mode; In this mode the output of the OAx is connected to R; and the inverting; Comparator Mode; and R; is connected to AV
  • Page 313 – Non-Inverting PGA Mode
  • Page 314 – Table 16−3. Two-Opamp Differential Amplifier Gain Settings; OA1 OAFBRx; Figure 16−2. Two Opamp Differential Amplifier
  • Page 316 – Table 16−5. Three-Opamp Differential Amplifier Gain Settings; Gain; Figure 16−4. Three Opamp Differential Amplifier
  • Page 318 – The OA registers are listed in Table 16−6.
  • Page 319 – OAxCTL0, Opamp Control Register 0; OANx
  • Page 320 – OAxCTL1, Opamp Control Register 1; OAFBRx; Differential amplifier; OARRIP
  • Page 322 – Comparator_A Introduction
  • Page 324 – Comparator_A Operation; Comparator Input Connection
  • Page 325 – Figure 17−2. RC-Filter Response at the Output of the Comparator; The voltage reference generator is used to generate V; which can be; is applied. If external signals are applied to both; or a fixed transistor threshold voltage
  • Page 326 – Figure 17−4. Comparator_A Interrupt System
  • Page 327 – Figure 17−5. Temperature Measurement System
  • Page 328 – Figure 17−6. Timing for Temperature Measurement Systems; The V; voltage; and the capacitor value should remain constant during the
  • Page 329 – Comparator_A Registers; The Comparator_A registers are listed in Table 17−1.
  • Page 332 – LCD Controller; LCD Controller Introduction
  • Page 333 – Max LCD Segment Control
  • Page 334 – Figure 18−1. LCD Controller Block Diagram
  • Page 335 – LCD Controller Operation; Figure 18−2. LCD memory; The LCD controller uses the f; signal from the Basic Timer1 to generate the; depends on
  • Page 336 – Values of R from 100k; output. This allows the power to the resistor ladder to; Table 18−1. External LCD Module Analog Voltage; LCD Contrast Control; LCDPx Bits Do Not Affect Dedicated LCD Segment Pins
  • Page 337 – Figure 18−3. Example Static Waveforms
  • Page 338 – Figure 18−4. Static LCD Example
  • Page 339 – Static Mode Software Example
  • Page 340 – Mux Waveforms
  • Page 341 – Figure 18−6. 2−Mux LCD Example
  • Page 342 – -Mux Mode Software Example
  • Page 345 – -Mux Mode Software Example
  • Page 347 – Display Memory
  • Page 348 – -Mux Mode Software Example
  • Page 349 – LCD Controller Registers; The LCD Controller registers are listed in Table 18−2.; Table 18−2. LCD Controller Registers
  • Page 350 – LCDCTL, LCD Control Register; LCDPx
  • Page 351 – LCD Controller Introduction
  • Page 352 – LCD_A Controller Introduction; Maximum LCD Segment Control
  • Page 353 – Figure 19−1. LCD_A Controller Block Diagram
  • Page 354 – LCD_A Controller Operation; Figure 19−2. LCD memory
  • Page 355 – LCD Voltage Selection; Capacitor Required For Internal Charge Pump; LCD Bias Generation
  • Page 356 – to 1 M; Figure 19−3. Bias Generation
  • Page 357 – Table 19−1. LCD Voltage and Biasing Characteristics; static
  • Page 358 – LCDSx Bits Do Not Affect Dedicated LCD Segment Pins
  • Page 359 – Figure 19−4. Example Static Waveforms
  • Page 360 – Figure 19−5. Static LCD Example
  • Page 363 – Figure 19−7. 2−Mux LCD Example
  • Page 371 – LCD Controller Registers; The LCD Controller registers are listed in Table 19−2.; Table 19−2. LCD Controller Registers
  • Page 372 – LCDFREQx; Static; LCDSON; All LCD segments are off; LCDON
  • Page 375 – LCDAVCTL0, LCD_A Voltage Control Register 0; REXT; LCDCPEN
  • Page 376 – LCDAVCTL1, LCD_A Voltage Control Register 1; VLCDx; is used for V
  • Page 378 – ADC12 Introduction
  • Page 380 – ADC12 Operation; ADC; Conversion Clock Selection
  • Page 381 – ) so that the stray capacitance is grounded to help; Figure 20−2. Analog Multiplexer; Analog Port Selection; to GND. This parasitic current occurs if the
  • Page 382 – Reference Decoupling
  • Page 383 – The ADC12SC bit; Extended Sample Mode; When; Figure 20−3. Extended Sample Mode
  • Page 384 – Pulse Sample Mode; AD12CLK for a programmed interval t; Figure 20−4. Pulse Sample Mode
  • Page 385 – Sample Timing Considerations; Figure 20−5. Analog Input Equivalent Circuit
  • Page 386 – Table 20−1. Conversion Mode Summary; CONSEQx; A single channel is converted once.
  • Page 391 – Using the Multiple Sample and Convert (MSC) Bit; No EOS Bit Set For Sequence
  • Page 392 – Using the Integrated Temperature Sensor; output or affect the reference selections for the conversion.; Figure 20−10. Typical Temperature Sensor Transfer Function
  • Page 393 – ADC12 Grounding and Noise Considerations; Figure 20−11. ADC12 Grounding and Noise Considerations
  • Page 394 – ADC12 Interrupts; The ADC12 has 18 interrupt sources:; ADC12IV, Interrupt Vector Generator
  • Page 395 – ADC12 Interrupt Handling Software Example; ADTOV
  • Page 396 – ADC12 Registers; The ADC12 registers are listed in Table 20−2 .
  • Page 397 – SHTx Bits
  • Page 399 – SHSx; SAMPCON signal is sourced from the sample-input signal.; ISSH
  • Page 400 – No operation is active.; ADC12MEMx, ADC12 Conversion Memory Registers
  • Page 401 – ADC12MCTLx, ADC12 Conversion Memory Control Registers; EOS
  • Page 402 – ADC12IE, ADC12 Interrupt Enable Register; ADC12IFG, ADC12 Interrupt Flag Register
  • Page 403 – ADC12IV, ADC12 Interrupt Vector Register; ADC12 interrupt vector value
  • Page 405 – SD16 Introduction
  • Page 407 – SD16 Operation; GAIN
  • Page 408 – Analog Input Setup; conversion after a start condition.; Analog Input Characteristics
  • Page 409 – sin; sin; Ǔ ȧ; Figure 21−2. Comb Filter’s Frequency Response with OSR = 32
  • Page 410 – Figure 21−3. Digital Filter Step Response and Conversion Points
  • Page 411 – Digital Filter Output; Figure 21−4. Used Bits of Digital Filter Output.
  • Page 412 – Output Data Format; Table 21−1. Data Format; Format; and the conversion result. The digital values for both data; Figure 21−5. Input Voltage vs. Digital Output
  • Page 413 – Table 21−2. Conversion Mode Summary; Single Channel, Single Conversion
  • Page 414 – Figure 21−6. Single Channel Operation; Group of Channels, Single Conversion
  • Page 415 – Group of Channels, Continuous Conversion; Figure 21−7. Grouped Channel Operation
  • Page 416 – Conversion Operation Using Preload; Figure 21−8. Conversion Delay using Preload
  • Page 417 – Figure 21−9. Start of Conversion using Preload
  • Page 418 – Using the Integrated Temperature Sensor; Figure 21−11. Typical Temperature Sensor Transfer Function
  • Page 419 – Interrupt Handling; The SD16 has 2 interrupt sources for each ADC channel:; SD16IV, Interrupt Vector Generator
  • Page 420 – SD16 Interrupt Handling Software Example
  • Page 421 – SD16 Registers; The SD16 registers are listed in Table 21−3:
  • Page 422 – SD16CTL, SD16 Control Register
  • Page 423 – SD16CCTLx, SD16 Channel x Control Register
  • Page 424 – SD16INCTLx, SD16 Channel x Input Control Register
  • Page 425 – SD16MEMx, SD16 Channel x Conversion Memory Register; SD16PREx, SD16 Channel x Preload Register; SD16 digital filter preload value.
  • Page 426 – SD16IV, SD16 Interrupt Vector Register; SD16 interrupt vector value
  • Page 431 – Table 22−1. High Input Impedance Buffer; Buffer; Buffer disabled
  • Page 432 – Figure 22−2. Comb Filter’s Frequency Response with OSR = 32
  • Page 433 – Figure 22−3. Digital Filter Step Response and Conversion Points
  • Page 434 – Figure 22−4. Used Bits of Digital Filter Output
  • Page 436 – Table 22−2. Data Format; and the conversion result. The data formats are; Figure 22−5. Input Voltage vs. Digital Output
  • Page 437 – Table 22−3. Conversion Mode Summary; Single conversion; Single Conversion; Figure 22−6 shows conversion operation.; Figure 22−6. Single Channel Operation
  • Page 438 – Figure 22−7. Typical Temperature Sensor Transfer Function
  • Page 439 – The SD16_A has 2 interrupt sources for its ADC channel:
  • Page 440 – The SD16_A registers are listed in Table 22−4:
  • Page 441 – REFON
  • Page 444 – SD16INCTL0, SD16_A Input Control Register
  • Page 445 – SD16MEM0, SD16_A Conversion Memory Register; SD16AE, SD16_A Analog Input Enable Register; External input enabled.
  • Page 446 – SD16_A interrupt vector value
  • Page 448 – DAC12 Introduction; Note: Multiple DAC12 Modules
  • Page 451 – DAC12 Operation; or V; Resolution; DAC12 Port Selection
  • Page 452 – DAC12 Reference Input and Voltage Output Buffers
  • Page 454 – DAC12 Output Amplifier Offset Calibration; Figure 23−5. Negative Offset; Figure 23−6. Positive Offset
  • Page 455 – The DAC12LSELx bits for both DACs must be > 0; DAC12 Settling Time
  • Page 457 – DAC12 Registers; The DAC12 registers are listed in Table 23−2.; Reset with POR
  • Page 459 – Input Buffer
  • Page 460 – Unused. These bits are always 0 and do not affect the DAC12 core.; DAC12 Data Format; 2-bit 2’s complement
  • Page 461 – Scan IF; Scan IF Introduction
  • Page 462 – Scan IF Introduction
  • Page 463 – Figure 24−1. Scan IF Block Diagram
  • Page 464 – Scan IF Operation; Timing State Machine Signals
  • Page 465 – Figure 24−2. Scan IF Analog Front End Block Diagram
  • Page 466 – Excitation; and the SIFCOM input; Mid-Voltage Generator
  • Page 468 – Figure 24−4. Analog Input Equivalent Circuit; SIFCHx
  • Page 469 – Direct Analog And Digital Inputs; Table 24−1. SIFCAX and SIFSH Input Selection; SIFCAX; Table 24−2. Selected Output Bits; TESTDX
  • Page 470 – Figure 24−5. Analog Front-End Output Timing
  • Page 471 – Comparator and DAC
  • Page 472 – Table 24−3. Selected DAC Registers; SIFxOUT; Figure 24−6. Analog Hysteresis With DAC Registers; Table 24−4. DAC Register Select When TESTDX = 1; DAC Register Used
  • Page 473 – Internal Signal Connections to Timer1_A5; Figure 24−7. TimerA Output Stage of the Analog Front End
  • Page 475 – Figure 24−8. Timing State Machine Block Diagram
  • Page 476 – TSM Operation; Table 24−5. TSM State Duration
  • Page 477 – TSM State Clock Source Select
  • Page 478 – TSM Test Cycles; Figure 24−9. Test Cycle Insertion
  • Page 479 – TSM Example; Table 24−6. TSM Example Register Values; TSMx Register; SIFTSM5; Figure 24−10. Timing State Machine Example
  • Page 481 – Figure 24−11. Scan IF Processing State Machine Block Diagram; PSM Operation
  • Page 482 – Next State Calculation
  • Page 483 – PSM Counters
  • Page 484 – Simplest State Machine; Figure 24−12. Simplest PSM State Diagram
  • Page 485 – Q1 is set In state 11, so SIFCNT1 will be incremented.
  • Page 487 – Table 24−7. Scan IF Interrupts; Interrupt
  • Page 488 – Figure 24−14. LC Sensor Oscillations
  • Page 489 – Figure 24−15. LC Sensor Connections For The Oscillation Test
  • Page 490 – Figure 24−16. LC Sensor Connections For The Envelope Test
  • Page 491 – Figure 24−17. LC Sensor Connections For The Envelope Test
  • Page 492 – Using the Scan IF With Resistive Sensors; Figure 24−18. Resistive Sensor Connections
  • Page 493 – out of phase with each other are said to be in quadrature. To Create; Figure 24−19. Sensor Position and Quadrature Signals
  • Page 494 – Figure 24−20. Quadrature Decoding State Diagram; disk with the sensors 90; Table 24−8. Quadrature Decoding PSM Table
  • Page 495 – Scan IF Registers; The Scan IF registers are listed in Table 24−9.; Table 24−9. Scan IF Registers
  • Page 496 – SIFDEBUG, Scan IF Debug Register, Write Mode; SIFDEBUG, Scan IF Debug Register, Read Mode After 00h Is Written; Last PSM
  • Page 497 – SIFDEBUG, Scan IF Debug Register, Read Mode After 01h Is Written; SIFDEBUG, Scan IF Debug Register, Read Mode After 02h Is Written
  • Page 498 – SIFDEBUG, Scan IF Debug Register, Read Mode After 03h Is Written
  • Page 499 – SIFCNT, Scan IF Counter Register; SIFCNT2x; SIFPSMV, Scan IF Processing State Machine Vector Register
  • Page 500 – SIFCTL1, Scan IF Control Register 1
  • Page 501 – SIFIFG0
  • Page 502 – SIFCTL2, Scan IF Control Register 2
  • Page 503 – SIFVCC2; SIFSH
  • Page 504 – SIFCTL3, Scan IF Control Register 3; SIFIS2x
  • Page 505 – SIFIFGSETx; SIFIFG0 is set when SIF3OUT is reset.; SIF3OUT; AFE output bit 3; SIF2OUT; AFE output bit 2; SIF1OUT; AFE output bit 1; SIF0OUT; AFE output bit 0
  • Page 506 – SIFCTL4, Scan IF Control Register 4; SIFCNTRST
  • Page 508 – SIFCTL5, Scan IF Control Register 5; SIFCNT3x; No internal oscillator calibration is started.; SIFCLKEN; TSM high frequency clock source is SMCLK.
  • Page 510 – SIFTSMx, Scan IF Timing State Machine Registers; SIFACLK
  • Page 511 – SIFCLKON; High-frequency clock is off for this state when SIFACLK = 1; SIFCA; Comparator off during this state; SIFEX; All SIFCHx channels are internally damped. No LC oscillations.
  • Page 512 – Processing State Machine Table Entry (MSP430 Memory Location); Bit 5 of the next state.
Loading the manual

2005

Mixed Signal Products

User’s Guide

SLAU056E

"Loading the manual" means you need to wait until the file loads and becomes available for online reading. Some manuals are very large, and the time they take to appear depends on your internet speed.

Summary

Page 3 - Preface; Read This First; About This Manual; Program examples, are shown in a

Related Documentation From Texas Instruments iii Preface Read This First About This Manual This manual discusses modules and peripherals of the MSP430x4xx family ofdevices. Each discussion presents the module or peripheral in a generalsense. Not all features and functions of all modules or periphera...

Page 4 - Glossary

Glossary iv Glossary ACLK Auxiliary Clock See Basic Clock Module ADC Analog-to-Digital Converter BOR Brown-Out Reset See System Resets, Interrupts, and Operating Modes BSL Bootstrap Loader See www.ti.com/msp430 for application reports CPU Central Processing Unit See RISC 16-Bit CPU DAC Digital-to-An...

Page 5 - Register Bit Conventions; Key

Register Bit Conventions v Register Bit Conventions Each register is shown with a key indicating the accessibility of the eachindividual bit, and the initial condition: Register Bit Accessibility and Initial Condition Key Bit Accessibility rw Read/write r Read only r0 Read as 0 r1 Read as 1 w Write ...

Other Texas Instruments Models

All Texas Instruments Other