Simplest state machine, Figure 24−12. simplest psm state diagram – Texas Instruments MSP430x4xx User Manual
Page 484
Scan IF Operation
24-24
Scan IF
Simplest State Machine
Figure 24−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 24−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
#SIFCNT1ENP+SIFCNT1ENM,&SIFCTL4
; Q7 and Q6 disabled for next state calc.
; Increment and decrement of SIFCNT1 enabled
- Digital Signal Processor SM320F2812-HT (153 pages)
- MSP430x1xx (440 pages)
- Laser And Motor Drives DRV8811EVM (13 pages)
- TMS320 DSP (88 pages)
- MSP430x11x1 (45 pages)
- TVP5154EVM (55 pages)
- TMS320DM646X DMSOC (64 pages)
- CC2511 (24 pages)
- SN65HVS880 (4 pages)
- TPS650231EVM (14 pages)
- TMS320TCI648x (256 pages)
- TSC2007EVM-PDK (16 pages)
- UCC38500EVM (16 pages)
- TMS320C6000 (62 pages)
- SCAU020 (21 pages)
- TPS40051 (17 pages)
- TNETE2201 (14 pages)
- TMS320C64x DSP (306 pages)
- UCC2891 (21 pages)
- TMS320C3x (757 pages)
- MSP430 (138 pages)
- TMS320C6712D (102 pages)
- TMS320C6454 (225 pages)
- SPRU938B (48 pages)
- TUSB3210 (22 pages)
- TMS320C6457 (43 pages)
- CC2530ZNP (3 pages)
- TMS320C6455 (50 pages)
- TSB12LV26 (91 pages)
- TMS320C6472 (2 pages)
- VLYNQ Port (49 pages)
- TMS380C26 (92 pages)
- MSP-FET430 (95 pages)
- TMS320TCI6486 (160 pages)
- TPS2330 (22 pages)
- DM648 DSP (47 pages)
- TMS320DM36X (134 pages)
- MSC1211 (35 pages)
- SPRAA56 (29 pages)
- DAC7741EVM (28 pages)
- CDCM7005 (34 pages)
- TMS370 (99 pages)
- Adpater (37 pages)
- TMS320C6452 DSP (46 pages)