Scan IF Operation
30-24
Scan IF
Simplest State Machine
Figure 30−12 shows the simplest state machine that can be realized with the
PSM. The following code shows the corresponding state table and the PSM
initialization.
Figure 30−12. Simplest PSM State Diagram
S1=1 & S2=0
S1=0 & S2=0
S1=1 & S2=1
S1=0 & S2=0
S1=0 & S2=1
S1=1 & S2=1
S1=1 & S2=0
S1=1 & S2=1
S1=0 & S2=1
S1=0 & S2=0
State 00
00000000
State 10
00000000
State 11
00000010
State 01
00000000
S1=0 & S2=0
S1=0 & S2=1
S1=1 & S2=0
S1=1 & S2=1
S1=1 & S2=0
S1=0 & S2=1
; Simplest State Machine Example
SIMPLEST_PSM db 000h
; State 00 (State Table Index 0)
db 000h
; State 01 (State Table Index 1)
db 000h
; State 10 (State Table Index 2)
db 002h
; State 11 (State Table Index 3)
PSM_INIT
MOV
#SIMPLEST_PSM,&SIFPSMV
; Init PSM vector
MOV
#SIFS20,&SIFCTL3
; S1/S2 source
MOV
#SIFSIFCNT1ENM,&SIFCTL4
; Q7 and Q6 disabled for next state calc.
; Increment and decrement of SIFCNT1 enabled
Summary of Contents for MSP430x4xx Family
Page 1: ...MSP430x4xx Family 2007 Mixed Signal Products User s Guide SLAU056G ...
Page 2: ......
Page 6: ...vi ...
Page 114: ...3 76 RISC 16 Bit CPU ...
Page 304: ...5 20 FLL Clock Module ...
Page 340: ...7 8 Supply Voltage Supervisor ...
Page 348: ...8 8 16 Bit Hardware Multiplier ...
Page 372: ...9 24 32 Bit Hardware Multiplier ...
Page 400: ...10 28 DMA Controller ...
Page 428: ...13 10 Basic Timer1 ...
Page 466: ...15 24 Timer_A ...
Page 522: ...17 30 USART Peripheral Interface UART Mode ...
Page 544: ...18 22 USART Peripheral Interface SPI Mode ...
Page 672: ...23 12 Comparator_A ...
Page 692: ...24 20 LCD Controller ...
Page 746: ...26 28 ADC12 ...