Texas Instruments MSP430x1xx - Manual

Texas Instruments MSP430x1xx

Texas Instruments MSP430x1xx – 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
Page: / 432

Table of Contents:

  • Page 3 – Preface; About This Manual; Program examples, are shown in a
  • Page 4 – Glossary
  • Page 5 – Register Bit Conventions; Key
  • Page 7 – Introduction
  • Page 8 – Basic Clock Module
  • Page 9 – Supply Voltage Supervisor
  • Page 10 – Contents; 0 Watchdog Timer
  • Page 11 – 4 USART Peripheral Interface, SPI Mode
  • Page 13 – This chapter describes the architecture of the MSP430.; Topic; Architecture; Chapter 1
  • Page 14 – Ref; Flexible Clock System
  • Page 15 – Embedded Emulation; The benefits of embedded emulation include:
  • Page 16 – Address Space; Figure 1−2. Memory Map; RAM
  • Page 17 – Peripheral Modules; Organized Memory
  • Page 19 – System Resets, Interrupts, and Operating Modes; System Reset and Initialization; Chapter 2
  • Page 21 – Figure 2−2. POR Timing
  • Page 22 – Figure 2−3. Brownout Timing; min
  • Page 23 – 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 24 – Interrupts; There are three types of interrupts:; Figure 2−4. Interrupt Priority
  • Page 25 – An edge on the RST/NMI pin when configured in NMI mode; Modifying WDTNMIES
  • Page 27 – Flash Access Violation
  • Page 28 – Example of an NMI Interrupt Handler; Figure 2−6. NMI Interrupt Handler; Enabling NMI Interrupts with ACCVIE, NMIIE, and OFIE; RETI; Maskable Interrupts
  • Page 29 – Interrupt Processing; ) Any currently executing instruction is completed.; Figure 2−7. Interrupt Processing
  • Page 30 – Return From Interrupt; The interrupt handling routine terminates with the instruction:; (return from an interrupt service routine); Figure 2−8. Return From Interrupt; Interrupt Nesting
  • Page 31 – Interrupt Vectors; Reset
  • Page 32 – Operating Modes; The operating modes take into account three different needs:
  • Page 33 – Figure 2−10. MSP430x1xx Operating Modes For Basic Clock System; OSCOFF; Active
  • Page 34 – Entering and Exiting Low-Power Modes; Enter interrupt service routine:; Extended Time in Low-Power Modes
  • Page 35 – 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 37 – CPU Introduction; Chapter 3
  • Page 39 – Figure 3−1. CPU Block Diagram
  • Page 40 – CPU Registers; Figure 3−2. Program Counter; MOV
  • Page 41 – Figure 3−4 shows stack usage.; Figure 3−3. Stack Pointer; Figure 3−4. Stack Usage
  • Page 42 – Figure 3−6. Status Register Bits; Table 3−1 describes the status register bits.; Table 3−1. Description of Status Register Bits; Bit
  • Page 43 – 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 44 – General−Purpose Registers R4 - R15
  • Page 45 – Addressing Modes; Table 3−3. Source/Destination Operand Addressing Modes; Addressing Mode
  • Page 46 – 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 47 – Indexed Mode; The indexed mode is described in Table 3−5.; Table 3−5. Indexed Mode Description; Two or three words
  • Page 48 – Symbolic Mode; The symbolic mode is described in Table 3−6.; Table 3−6. Symbolic Mode Description
  • Page 49 – Absolute Mode; The absolute mode is described in Table 3−7.; Table 3−7. Absolute Mode Description
  • Page 50 – Indirect Register Mode; The indirect register mode is described in Table 3−8.; Table 3−8. Indirect Mode Description
  • Page 51 – 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 52 – Immediate Mode; The immediate mode is described in Table 3−10.; Table 3−10. Immediate Mode Description; Valid only for a source operand.
  • Page 53 – Instruction Set; Destination Address
  • Page 54 – Figure 3−9. Double Operand Instruction Format; Table 3−11. Double Operand Instructions; Mnemonic; Instructions; CMP
  • Page 55 – Figure 3−10. Single Operand Instruction Format; Table 3−12. Single Operand Instructions; CALL
  • Page 56 – 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 69 – Clear zero bit
  • Page 73 – Figure 3−12. Decrement Overlap; EDE
  • Page 84 – Jump unconditionally; Syntax; JMP; Operation; Status bits are not affected.
  • Page 93 – Figure 3−13. Main Program Interrupt
  • Page 94 – Figure 3−14. Destination Operand—Arithmetic Shift Left
  • Page 95 – Figure 3−15. Destination Operand—Carry Left Shift
  • Page 96 – Figure 3−16. Destination Operand—Arithmetic Right Shift
  • Page 97 – Figure 3−17. Destination Operand—Carry Right Shift
  • Page 100 – Set negative bit
  • Page 101 – Set zero bit
  • Page 104 – Figure 3−18. Destination Operand Byte Swap
  • Page 105 – Extend Sign; Figure 3−19. Destination Operand Sign Extension; SXT
  • Page 108 – 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 109 – Table 3−16. Format 1 Instruction Cycles and Lengths
  • Page 110 – Instruction Set Description; Figure 3−20. Core Instruction Map
  • Page 113 – Basic Clock Module Introduction; Chapter 4
  • Page 114 – The basic clock module includes two or three clock sources:
  • Page 115 – Figure 4−1. Basic Clock Block Diagram; XT2 Oscillator
  • Page 116 – Basic Clock Module Operation; Set max DCO frequency; Basic Clock Module Features for Low-Power Applications; Low clock frequency for energy conservation and time keeping
  • Page 117 – LFXT1 Oscillator; Figure 4−2. Off Signals for the LFXT1 Oscillator; LFXT1 Oscillator Characteristics; The LFXT1 oscillator in LF mode requires a 5.1-M; SS; when V
  • Page 118 – Figure 4−3. Off Signals for Oscillator XT2; Disabling the DCO
  • Page 119 – Adjusting the DCO frequency; s. The typical DCOx and RSELx ranges and; Figure 4−5. Typical DCOx Range and RSELx Steps
  • Page 120 – Using an External Resistor (R; OSC; Figure 4−6. DCO Frequency vs. Temperature
  • Page 121 – DCO Modulator; DCO; Figure 4−7. Modulator Patterns
  • Page 122 – Basic Clock Module Fail-Safe Operation; s. When an oscillator; No Oscillator Fault Detection for LFXT1 in LF Mode; s after the
  • Page 123 – Oscillator Fault Detection
  • Page 124 – Sourcing MCLK from a Crystal; ) Switch on the crystal oscillator; BIC
  • Page 125 – Synchronization of Clock Signals; ) The current clock cycle continues until the next rising edge.; Figure 4−11. Switch MCLK from DCOCLK to LFXT1CLK
  • Page 126 – Basic Clock Module Registers; The basic clock module registers are listed in Table 4−1:; Table 4−1. Basic Clock Module Registers
  • Page 127 – DCOCTL, DCO Control Register; DCOx; BCSCTL1, Basic Clock System Control Register 1
  • Page 128 – BCSCTL2, Basic Clock System Control Register 2; SELMx
  • Page 129 – IE1, Interrupt Enable Register 1; OFIE; IFG1, Interrupt Flag Register 1
  • Page 131 – Flash Memory Controller; Flash Memory Introduction; Chapter 5
  • Page 132 – Minimum V; During Flash Write or Erase; Figure 5−1. Flash Memory Module Block Diagram
  • Page 133 – Flash Memory Segmentation
  • Page 134 – Flash Memory Operation; Block write; Flash Memory Timing Generator; Figure 5−3. Flash Memory Timing Generator Block Diagram; FTG; frequency deviates from the
  • Page 135 – Erasing Flash Memory; Table 5−1. Erase Modes; MERAS; Segment erase; Figure 5−4. Erase Cycle Timing; BUSY
  • Page 136 – 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 137 – Initiating an Erase from RAM; Figure 5−6. Erase Cycle from Within RAM
  • Page 138 – Writing Flash Memory; Table 5−2. Write Modes; BLKWRT
  • Page 139 – 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 140 – 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
  • Page 141 – Block Write; CPT; must not be exceeded for any block during; End
  • Page 142 – 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 144 – Flash Memory Access During Write or Erase; JMP PC; JMP PC
  • Page 145 – 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 146 – Programming Flash Memory via JTAG; Programming Flash Memory via the Bootstrap loader (BSL); Figure 5−12. User-Developed Programming Solution
  • Page 147 – 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 148 – FCTL1, Flash Memory Control Register; Block-write mode is off; No erase
  • Page 149 – FCTL2, Flash Memory Control Register; FWKEYx; FNx
  • Page 150 – FCTL3, Flash Memory Control Register FCTL3
  • Page 151 – ACCVIE; or
  • Page 153 – SVS Introduction; Chapter 6
  • Page 155 – Figure 6−1. SVS Block Diagram
  • Page 156 – SVS Operation; Configuring the SVS
  • Page 157 – Changing the VLDx Bits; Figure 6−2. SVSON state When Changing VLDx; settle
  • Page 158 – SVS Operating Range; is close to the threshold. The SVS operation and; Figure 6−3. Operating Levels for SVS and Brownout/Reset Circuit
  • Page 159 – SVS Registers; Table 6−1. SVS Registers; SVS Control Register; SVSCTL, SVS Control Register
  • Page 161 – Hardware Multiplier; Hardware Multiplier Introduction; Chapter 7
  • Page 162 – Hardware Multiplier Introduction; Figure 7−1. Hardware Multiplier Block Diagram
  • Page 163 – Hardware Multiplier Operation; NOP; Operand Registers; Table 7−1. OP1 addresses; OP1 Address
  • Page 164 – Result Registers; Table 7−2. RESHI Contents; Table 7−3. SUMEXT Contents; Mode; No carry for result; MACS Underflow and Overflow
  • Page 165 – Software Examples
  • Page 166 – Indirect Addressing of RESLO
  • Page 167 – Hardware Multiplier Registers; The hardware multiplier registers are listed in Table 7−4.; Table 7−4. Hardware Multiplier Registers
  • Page 169 – DMA Introduction; Chapter 8
  • Page 171 – Figure 8−1. DMA Controller Block Diagram
  • Page 172 – DMA Operation; DMA Addressing Modes; Fixed address to fixed address; Figure 8−2. DMA Addressing Modes
  • Page 173 – DMA Transfer Modes; Table 8−1. DMA Transfer Modes; DMADTx; Single transfer
  • Page 174 – Single Transfer
  • Page 175 – Figure 8−3. DMA Single Transfer State Diagram
  • Page 176 – Block Transfers
  • Page 177 – Figure 8−4. DMA Block Transfer State Diagram
  • Page 178 – Burst-Block Transfers
  • Page 179 – Figure 8−5. DMA Burst-Block Transfer State Diagram
  • Page 180 – Note: DMAONFETCH Must Be Used When The DMA Writes To Flash
  • Page 181 – 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 182 – Stopping DMA Transfers; There are two ways to stop DMA transfers in progress:; DMA Channel Priorities; DMA Priority
  • Page 183 – DMA Transfer Cycle Time; Table 8−3. Maximum Single-Transfer DMA Cycle Time; CPU Operating Mode
  • Page 186 – DMA Registers; The DMA registers are listed in Table 8−4:; Table 8−4. DMA Registers
  • Page 187 – DMACTL0, DMA Control Register 0; Reserved; Reserved
  • Page 188 – DMACTL1, DMA Control Register 1; The DMA transfer occurs immediately; ENNMI; NMI interrupt does not interrupt DMA transfer
  • Page 189 – DMAxCTL, DMA Channel x Control Register
  • Page 190 – DMAxSA, DMA Source Address Register; DMAxSAx
  • Page 191 – DMAxDA, DMA Destination Address Register; DMAxDAx; DMAxSZ, DMA Size Address Register; Transfer is disabled
  • Page 193 – Digital I/O Introduction; Chapter 9
  • Page 194 – Independently programmable individual I/Os
  • Page 195 – 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 196 – Function Select Registers PxSEL; Bit = 1: Peripheral module function is selected for the pin; Select ACLK function for pin; P1 and P2 Interrupts Are Disabled When PxSEL = 1
  • Page 197 – P1 and P2 Interrupts; PxIFG Flags When Changing PxOUT or PxDIR
  • Page 198 – 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 199 – Digital I/O Registers
  • Page 201 – Watchdog Timer; Watchdog Timer Introduction
  • Page 202 – Watchdog Timer Powers Up Active
  • Page 203 – Figure 10−1. Watchdog Timer Block Diagram
  • Page 204 – Watchdog Timer Operation; Modifying the Watchdog Timer
  • Page 205 – The WDT uses two bits in the SFRs for interrupt control.
  • Page 206 – Periodically clear an active watchdog
  • Page 207 – Watchdog Timer Registers; The watchdog timer module registers are listed in Table 10−1.; Table 10−1. Watchdog Timer Registers
  • Page 208 – WDTCTL, Watchdog Timer Register
  • Page 209 – NMIIE
  • Page 210 – NMIIFG
  • Page 212 – Use of the Word Count
  • Page 214 – Modifying Timer_A Registers; Clock Source Select and Divider
  • Page 215 – Table 11−1. Timer Modes; MCx; Stop
  • Page 216 – Up Mode; Figure 11−3. Up Mode Flag Setting; Changing the Period Register TACCR0
  • Page 217 – Continuous Mode; Figure 11−4. Continuous Mode
  • Page 218 – Use of the Continuous Mode; and; Figure 11−6. Continuous Mode Time Intervals; is greater than the TACCR0
  • Page 220 – Use of the Up/Down Mode; dead; Time during which both outputs need to be inactive; timer; Cycle time of the timer clock
  • Page 221 – Capture Mode; The timer value is copied into the TACCRx register
  • Page 222 – Figure 11−11. Capture Cycle; Capture Initiated by Software; Compare Mode; Interrupt flag CCIFG is set
  • Page 223 – Output Modes; Table 11−2. Output Modes; OUTMODx; Output
  • Page 224 – Output Example—Timer in Up Mode; Figure 11−12.Output Example—Timer in Up Mode
  • Page 225 – Output Example—Timer in Continuous Mode; Figure 11−13.Output Example—Timer in Continuous Mode
  • Page 226 – Output Example—Timer in Up/Down Mode; Figure 11−14.Output Example—Timer in Up/Down Mode; Switching Between Output Modes; BIS
  • Page 227 – TACCR0 Interrupt; Figure 11−15.Capture/Compare TACCR0 Interrupt Flag; TAIV, Interrupt Vector Generator
  • Page 229 – The Timer_A registers are listed in Table 11−3:
  • Page 231 – TARx
  • Page 232 – TACCTLx, Capture/Compare Control Register
  • Page 238 – Modifying Timer_B Registers; TBR Length; , for the selectable lengths
  • Page 239 – Table 12−1. Timer Modes
  • Page 240 – The up mode is used if the timer period must be different from TBR; Figure 12−3. Up Mode Flag Setting; Changing the Period Register TBCL0
  • Page 241 – In continuous mode the timer repeatedly counts up to TBR; Figure 12−4. Continuous Mode; The TBIFG interrupt flag is set when the timer counts from TBR; Figure 12−5. Continuous Mode Flag Setting
  • Page 242 – and t; Figure 12−6. Continuous Mode Time Intervals; is greater than the TBCL0
  • Page 244 – Changing the Value of Period Register TBCL0
  • Page 245 – The timer value is copied into the TBCCRx register
  • Page 246 – Figure 12−11. Capture Cycle
  • Page 247 – Compare Latch TBCLx; Table 12−2. TBCLx Load Events; CLLDx; New data is transferred from TBCCRx to TBCLx when TBR counts to 0; Grouping Compare Latches; Table 12−3. Compare Latch Operating Modes; TBCLGRPx; None
  • Page 248 – Table 12−4. Output Modes
  • Page 249 – Figure 12−12. Output Example—Timer in Up Mode
  • Page 250 – Figure 12−13. Output Example—Timer in Continuous Mode
  • Page 251 – Output Example − Timer in Up/Down Mode; Figure 12−14. Output Example—Timer in Up/Down Mode
  • Page 252 – Figure 12−15. Capture/Compare TBCCR0 Interrupt Flag; TBIV, Interrupt Vector Generator
  • Page 253 – TBIV, Interrupt Handler Examples; Capture/compare block CCR0
  • Page 254 – The Timer_B registers are listed in Table 12−5:
  • Page 255 – Timer_B Control Register TBCTL
  • Page 256 – Unused; TBCLR; Interrupt disabled; No interrupt pending
  • Page 257 – TBCCTLx, Capture/Compare Control Register
  • Page 259 – Timer_B interrupt vector value
  • Page 261 – USART Peripheral Interface, UART Mode
  • Page 263 – Figure 13−1. USART Block Diagram: UART Mode
  • Page 264 – Note: Initializing or Re-Configuring the USART Module; The required USART initialization/re-configuration process is:; Figure 13−2. Character Format
  • Page 265 – Asynchronous Communication Formats; Line Format
  • Page 266 – ) Set TXWAKE, then write any character to UxTXBUF. UxTXBUF must be
  • Page 267 – Address; Figure 13−4. Address
  • Page 268 – Automatic Error Detection; will be ignored. See the device-specific datasheet for parameters.; Table 13−1. Receive Error Conditions; Error Condition; Framing error
  • Page 269 – Figure 13−5. State Diagram of Receiver Enable
  • Page 270 – Figure 13−6. State Diagram of Transmitter Enable
  • Page 271 – Figure 13−8. BITCLK Baud Rate Timing
  • Page 272 – Baud Rate Bit Timing; UxBR; Determining the Modulation Value
  • Page 273 – Transmit Bit Timing; baud rate
  • Page 274 – Receive Bit Timing; Figure 13−9. Receive Error; ȧȡȢ
  • Page 275 – 3, since the ideal division factor is 13.65
  • Page 276 – Typical Baud Rates and Errors; Table 13−2. Commonly Used Baud Rates, Baud Rate Data, and Errors
  • Page 277 – USART Transmit Interrupt Operation; Figure 13−10. Transmit Interrupt Operation
  • Page 278 – USART Receive Interrupt Operation; Figure 13−11. Receive Interrupt Operation; Two types of characters do not set URXIFGx:
  • Page 279 – Receive-Start Edge Detect Operation; Break Detect With Halted UART Clock
  • Page 280 – Receive-Start Edge Detect Conditions; Figure 13−12. Glitch Suppression, USART Receive Not Started; When a glitch is longer than; Figure 13−13. Glitch Suppression, USART Activated; URXDx
  • Page 281 – Table 13−3. USART0 Control and Status Registers; Modifying SFR bits
  • Page 282 – UxCTL, USART Control Register
  • Page 283 – UxTCTL, USART Transmit Control Register
  • Page 284 – UxRCTL, USART Receive Control Register
  • Page 285 – 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 286 – UxRXBUF, USART Receive Buffer Register; UxRXBUFx; UxTXBUF, USART Transmit Buffer Register; UxTXBUFx
  • Page 287 – ME1, Module Enable Register 1
  • Page 288 – IE2, Interrupt Enable Register 2
  • Page 289 – UTXIFG0; IFG2, Interrupt Flag Register 2; UTXIFG1
  • Page 290 – URXIFG0
  • Page 292 – USART Peripheral Interface, SPI Mode
  • Page 294 – Figure 14−1. USART Block Diagram: SPI Mode
  • Page 296 – Figure 14−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 297 – Figure 14−3. USART Slave and External Master; Four-Pin SPI Slave Mode; Any receive operation in progress on SIMO is halted
  • Page 298 – Transmit Enable; Figure 14−4. Master Mode Transmit Enable
  • Page 299 – Receive Enable; Figure 14−6. SPI Master Receive-Enable State Diagram
  • Page 300 – Figure 14−8. SPI Baud Rate Generator; BRCLK
  • Page 301 – Serial Clock Polarity and Phase; Figure 14−9. USART SPI Timing
  • Page 302 – SPI Transmit Interrupt Operation; Figure 14−10. Transmit Interrupt Operation; Writing to UxTXBUF in SPI Mode
  • Page 303 – SPI Receive Interrupt Operation; Figure 14−11. Receive Interrupt Operation; Figure 14−12. Receive Interrupt State Diagram
  • Page 304 – Table 14−1. USART0 Control and Status Registers; Modifying the SFR bits
  • Page 310 – ME2, Module Enable Register 2
  • Page 312 – Interrupt not enabled
  • Page 315 – C communication in USART0. This chapter; C Module Introduction
  • Page 317 – C Mode
  • Page 318 – C Module Operation; The I; C Bus Connection Diagram; SDA and SCL Levels
  • Page 319 – C Module Initialization; Note: Configuring the USART Module for I
  • Page 320 – C Serial Data; C module operates with byte data. Data is transferred most; C Module Data Transfer
  • Page 321 – C Addressing Modes; C Module 7-Bit Addressing Format; Repeated START Conditions; C Module Addressing Format with Repeated START Condition
  • Page 322 – C Module Operating Modes; Master Mode; Table 15−1. Master Operation; Condition Or Bus Activity
  • Page 323 – Figure 15−8. Master Transmitter Mode
  • Page 324 – Figure 15−9. Master Receiver Mode
  • Page 325 – Arbitration
  • Page 326 – Automatic Data Byte Counting; I2CNDAT Register; Slave Mode; I2CTRX Bit In Slave Mode; The I2CTRX bit must be cleared for proper slave mode operation.
  • Page 327 – Figure 15−11. Slave Transmitter
  • Page 328 – Figure 15−12. Slave Receiver
  • Page 329 – C Data Register I2CDR; Table 15−2. I2CDR Register Function; I2CWORD; Transmit Underflow; C master still; Receive Overrun
  • Page 330 – C Clock Generation and Synchronization; I2CCLK Maximum Frequency; I2CPSC Value; C Module SCL Generation
  • Page 331 – C Module with Low Power Modes
  • Page 332 – C Interrupts; Interrupt
  • Page 333 – I2CIV, Interrupt Vector Generator
  • Page 334 – C Module Registers; C Registers
  • Page 336 – C Transmit Control Register
  • Page 337 – C Data Control Register
  • Page 338 – C Data Register; C Transfer Byte Count Register; I2CNDATx
  • Page 339 – C Clock Prescaler Register; I2CPSCx; C clock prescaler. The I
  • Page 340 – C Shift Clock High Register; I2CSCLHx; C Shift Clock Low Register; C shift clock low. These bits define the low period of SCL when the I
  • Page 341 – C Own Address Register, 7-Bit Addressing Mode; C Own Address Register, 10-Bit Addressing Mode; C own address. The I2COA register contains the local address of the
  • Page 342 – C Slave Address Register, 7-Bit Addressing Mode
  • Page 343 – C Interrupt Enable Register
  • Page 344 – C Interrupt Flag Register
  • Page 345 – C Interrupt Vector Register
  • Page 348 – Comparator_A Introduction
  • Page 350 – Comparator_A Operation; Comparator Input Connection
  • Page 351 – Figure 16−2. RC-Filter Response at the Output of the Comparator; The voltage reference generator is used to generate V; which can be; CAREF; is applied. If external signals are applied to both; or a fixed transistor threshold voltage
  • Page 352 – Figure 16−4. Comparator_A Interrupt System
  • Page 353 – Figure 16−5. Temperature Measurement System
  • Page 354 – Figure 16−6. Timing for Temperature Measurement Systems; The V; voltage; and the capacitor value should remain constant during the
  • Page 355 – Comparator_A Registers; The Comparator_A registers are listed in Table 16−1:
  • Page 361 – ADC12 Introduction
  • Page 362 – Conversion Clock Selection
  • Page 363 – ) so that the stray capacitance is grounded to help; Figure 17−2. Analog Multiplexer; Analog Port Selection; to GND. This parasitic current occurs if the
  • Page 364 – Reference Decoupling; REF−
  • Page 365 – ADC12 Operation; The ADC12SC bit; Extended Sample Mode; When; Figure 17−3. Extended Sample Mode
  • Page 366 – Pulse Sample Mode; AD12CLK for a programmed interval t; . The total sampling time is t; sample; plus t; sync; Figure 17−4. Pulse Sample Mode
  • Page 367 – Sample Timing Considerations; Figure 17−5. Analog Input Equivalent Circuit
  • Page 368 – Table 17−1. Conversion Mode Summary; CONSEQx; A single channel is converted once.
  • Page 373 – Using the Multiple Sample and Convert (MSC) Bit; No EOS Bit Set For Sequence
  • Page 374 – Using the Integrated Temperature Sensor; output or affect the reference selections for the conversion.; Figure 17−10. Typical Temperature Sensor Transfer Function
  • Page 375 – ADC12 Grounding and Noise Considerations; Figure 17−11. ADC12 Grounding and Noise Considerations
  • Page 376 – ADC12 Interrupts; The ADC12 has 18 interrupt sources:; ADC12IV, Interrupt Vector Generator
  • Page 377 – ADC12 Interrupt Handling Software Example; ADTOV
  • Page 378 – ADC12 Registers; The ADC12 registers are listed in Table 17−2:
  • Page 379 – SHTx Bits
  • Page 381 – SHSx; SAMPCON signal is sourced from the sample-input signal.; ISSH
  • Page 382 – No operation is active.; ADC12MEMx, ADC12 Conversion Memory Registers
  • Page 383 – ADC12MCTLx, ADC12 Conversion Memory Control Registers; EOS
  • Page 384 – ADC12IE, ADC12 Interrupt Enable Register; ADC12IFG, ADC12 Interrupt Flag Register
  • Page 385 – ADC12IV, ADC12 Interrupt Vector Register; ADC12 interrupt vector value
  • Page 389 – ADC10 Introduction
  • Page 391 – Figure 18−2. Analog Multiplexer; share terminals
  • Page 392 – Internal Reference Low-Power Features
  • Page 393 – Figure 18−3. Sample Timing
  • Page 394 – ADC10 Operation; Figure 18−4. Analog Input Equivalent Circuit
  • Page 395 – Table 18−1. Conversion Mode Summary
  • Page 400 – Using the MSC Bit
  • Page 401 – ADC10 activity test
  • Page 402 – One-Block Transfer Mode
  • Page 404 – Two-Block Transfer Mode
  • Page 406 – Continuous Transfer; Table 18−2. Maximum DTC Cycle Time
  • Page 407 – Using the Integrated Temperature Sensor; Figure 18−14. Typical Temperature Sensor Transfer Function
  • Page 408 – ADC10 Grounding and Noise Considerations; Figure 18−16. ADC10 Grounding and Noise Considerations
  • Page 409 – ADC10 Interrupts
  • Page 410 – ADC10 Registers; The ADC10 registers are listed in Table 18−3.
  • Page 411 – SREFx
  • Page 413 – INCHx; Ve; Straight binary
  • Page 416 – ADC10DTC0, Data Transfer Control Register 0; One-block transfer mode
  • Page 417 – ADC10DTC1, Data Transfer Control Register 1; DTC is disabled; ADC10SA, Start Address Register for Data Transfer
  • Page 420 – DAC12 Introduction; Note: Multiple DAC12 Modules
  • Page 422 – DAC12 Operation; or V; Resolution; DAC12 Port Selection
  • Page 423 – signal is used as; DAC12 Reference Input and Voltage Output Buffers; See the device-specific data sheet for
  • Page 425 – DAC12 Output Amplifier Offset Calibration; Figure 19−4. Negative Offset
  • Page 426 – The DAC12LSELx bits for both DACs must be > 0; DAC12 Settling Time
  • Page 428 – DAC12 Registers; The DAC12 registers are listed in Table 19−2:; Reset with POR
  • Page 430 – Input Buffer
  • Page 431 – Unused. These bits are always 0 and do not affect the DAC12 core.; DAC12 Data Format; 2-bit 2’s complement
Loading the manual

2005

Mixed Signal Products

User’s Guide

SLAU049E

"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; About This Manual; Program examples, are shown in a

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

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