Electronic Components Datasheet Search
  British  ▼
ALLDATASHEET.CO.UK

X  

SLAS191A Datasheet(PDF) 30 Page - Texas Instruments

Part # SLAS191A
Description  Starter Kit Evaluation Kit Manual
PDF  86 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  TI [Texas Instruments]
Direct Link  http://www.ti.com
Logo TI - Texas Instruments

SLAS191A Datasheet(HTML) 30 Page - Texas Instruments

Back Button SLAS191A Datasheet HTML 26Page - Texas Instruments SLAS191A Datasheet HTML 27Page - Texas Instruments SLAS191A Datasheet HTML 28Page - Texas Instruments SLAS191A Datasheet HTML 29Page - Texas Instruments SLAS191A Datasheet HTML 30Page - Texas Instruments SLAS191A Datasheet HTML 31Page - Texas Instruments SLAS191A Datasheet HTML 32Page - Texas Instruments SLAS191A Datasheet HTML 33Page - Texas Instruments SLAS191A Datasheet HTML 34Page - Texas Instruments Next Button
Zoom Inzoom in Zoom Outzoom out
 30 / 86 page
background image
1–24
$ML1
BIT.B
#01h,P0IN
; Test P0.0
JNZ
$ML1
; Do nothing if P0.0 low
1.2.13
How to Use an Interrupt Routine
Assemble and download the file gs_stk4.asm in the examples directory, as described previously.
1.
When an interrupt occurs, the program sends the contents of the program counter and status
register to the stack.
2.
Next, the program branches to the starting address of the interrupt routine.
3.
The interrupt routine normally ends with the RETI instruction.
4.
The RETI instruction loads the data, which was saved to the stack at the beginning of the interrupt
routine, to the status register and program counter.
5.
The program continues from the point of interruption.
Using interrupt routines allows the MSP430 to use low power modes. Selecting a low power mode causes
the program to stop at the current position, and an activity that causes an interrupt automatically clears the
low power mode. The interrupt continues program execution at the starting address of the corresponding
interrupt routine. The RETI loads the saved program data to the status register and program counter.
Loading the status register and program counter clears out the low power mode bits, and the program
continues with the next instruction. Figure 1–20 is the Basic Timer Interrupt routine.
BIS
#CPUOFF,SR
; set CPUoff Bit
;****************************************************************************
; Basic Timer Interrupt routine
;****************************************************************************
Int_BT
; Basic Timer 128 Hz (7.8 ms)
DEC.B
lcd_timer
; decrement SW lcd-timer
JNZ
Int_BT_end
; !0 : no action
BIC
#CPUOFF,0(SP)
; Clear CPUoff Bit
MOV.B
#lcd+ival,lcd_timer
; = 0 : load again
Int_BT_end
RETI
To use the interrupts, the interrupt vector table must be set up as follows:
;****************************************************************************
; Interrupt vectors
;****************************************************************************
.sect ”int_Vect”, USER_END-31
.word
RESET
; no source
.word
Int_BT
; Basic Timer
.word
RESET
; no source
.word
RESET
; no source
.word
RESET
; no source
.word
RESET
; no source
.word
RESET
; no source
.word
RESET
; no source
.word
RESET
; no source
.word
RESET
; no source
.word
RESET
; no source
.word
RESET
; no source
.word
RESET
; no source
.word
RESET
; no source
.word
RESET
; NMI, Osc. fault
.word
RESET
; POR, ext. Reset, Watchdog
.end
Figure 1–20. Basic Timer Interrupt Routine



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com