AN1154 STMicroelectronics, AN1154 Datasheet - Page 60

no-image

AN1154

Manufacturer Part Number
AN1154
Description
8031-PSD DESIGN TUTORIAL
Manufacturer
STMicroelectronics
Datasheet
AN1154 - APPLICATION NOTE
MLEVEL.ld = !clkin;
// State machine which controls the conversion start of the ADC, the interrupt to
the MCU,
// and the strobing of the IMCs
STATE_MACHINE.ck = clkin;
STATE_MACHINE.re = !reset;
state_diagram STATE_MACHINE;
state 0:
state 1:
state 2:
state 3:
Test_Vectors
// Test the state machine, trim, and boost signals
([clkin, reset, begin_cycle, MLEVEL, DLEVEL] ->
end
60/83
[Start_Conv, Intrn, STATE1, STATE0, Trim, Boost])
[ X, 0, X, ^h3, ^h4 ] -> [ X, X, X, X, 0, 1 ];"system in reset
[ 0, 1, X, ^h4, ^h4 ] -> [ 0, 1, 0, 0, 0, 0 ];"system not in reset
[ C, 1, 1, ^h5, ^h4 ] -> [ 1, 1, 0, 1, 1, 0 ];
[ C, 1, 1, ^h5, ^h4 ] -> [ 0, 1, 1, 0, 1, 0 ];
[ C, 1, 1, ^h5, ^h4 ] -> [ 0, 0, 1, 1, 1, 0 ];
[ C, 1, 1, ^h4, ^h4 ] -> [ 0, 1, 0, 0, 0, 0 ];
[ C, 1, 0, ^h4, ^h4 ] -> [ 0, 1, 0, 0, 0, 0 ];
Start_Conv = 0;
Intrn = 1;
if (begin_cycle == 1) then 1 else 0;
Start_Conv = 1;
goto 2;
Start_Conv = 0;
goto 3;
!Intrn = Trim # Boost; "Interrupt when Measured not equal to Desired
goto 0;

Related parts for AN1154