SPRUHJ1I January 2013 – October 2021 TMS320F2802-Q1 , TMS320F28026-Q1 , TMS320F28026F , TMS320F28027-Q1 , TMS320F28027F , TMS320F28027F-Q1 , TMS320F28052-Q1 , TMS320F28052F , TMS320F28052F-Q1 , TMS320F28052M , TMS320F28052M-Q1 , TMS320F28054-Q1 , TMS320F28054F , TMS320F28054F-Q1 , TMS320F28054M , TMS320F28054M-Q1 , TMS320F2806-Q1 , TMS320F28062-Q1 , TMS320F28062F , TMS320F28062F-Q1 , TMS320F28068F , TMS320F28068M , TMS320F28069-Q1 , TMS320F28069F , TMS320F28069F-Q1 , TMS320F28069M , TMS320F28069M-Q1
The primary function is STPOSCONV_run(ST_POSCONV_Handle handle), where handle is the pointer to a specific ST_PosConv_t object, this handle needs to be established by the initialize function STPOSCONV_init.
void STPOSONV_run(ST_POSCONV_Handle handle)
Parameters:
No. | Type | Parameters | Description |
---|---|---|---|
1 | ST_POSCONV_Handle | handle | The pointer to a ST_PosConv_t object |
The state transition map is shown in Figure 4-14.
The state transitions of the SpinTAC Position Convert are described in Table 4-15.
From State | To State | Transition Condition | Action |
---|---|---|---|
IDLE |
|
||
INIT | RES == false AND ENB is on rising edge | ||
INIT | Parameter validation
|
||
IDLE | ERR_ID != 0 | Set ENB = false | |
BUSY | ERR_ID == 0 | ||
BUSY | Calculate sawtooth position signal in [MRev] and velocity signal in [pu/s] | ||
IDLE | RES == true OR ENB == false | Set ENB = false |