
The Shifter Error Flag (SHIFTERR[SEF]) and any enabled interrupts will set when a
match occurs. The flag will clear when there is a read from the SHIFTBUF register or it
written with logic 1.
22.3.1.5 State Mode
Using State mode enables the user to implement any state machine with up to 8 states, 8
outputs and 3 selectable inputs per state. This feature allows basic control functions to be
offloaded from the CPU, which could potentially remain in a STOP/VLPS low power
mode.
When configured for State mode (SHIFTCTL[SMOD]=State), the SHIFTBUF register is
used to drive the output and compute next state values when the Shifter has been selected
by the current state pointer (SHIFTSTATE[STATE]). The following diagram provides a
detailed view of Shifter microarchitecture when configured for State mode.
31
0
SHIFTBUFi
timer_shift_pos
S
FXIO_D0
S
FXIO_Dn
S = synchronizer
PINSEL
S1
out
INSRC
PINPOL
FXIO_D7..0
timer_shift_neg
TIMSEL,
TIMPOL
PINCFG,
{PINWIDTH,SSTART,SSTOP}
nstate[2:0]
nstate_trigger
SHIFTSTATE
STATE==i
nstate attributes
from other Shifters
Figure 22-3. State Microarchitecture
When Shifter i has been selected by the current state pointer, output pins FXIO_D[7:0]
will be driven by SHIFTBUFi[31:24] using the configuration set by
SHIFTCTLi[PINCFG]. When set,
SHIFTCFGi{PWIDTH[3:0],SSTOP[1:0],SSTART[1:0]} are respectively used to disable
the output drive on pins FXIO_D[7:0] for state machine applications which require less
than 8 output pins.
The next state value is computed using the 3 input pins selected by SHIFTCTLi[PINSEL]
together with SHIFTBUFi[23:0]. Note that each state could potentially use a different set
of 3 input pins. The following table details how the next state value is computed when the
current state pointer is pointing to Shifter i.
Table 22-2. Next State computation for SHIFTSTATE[STATE]=i
FXIO_D[2]
FXIO_D[1]
FXIO_D[PINSEL]
Next State Value
Table continues on the next page...
Functional description
K32 L2A Reference Manual, Rev. 2, 01/2020
568
NXP Semiconductors
Содержание K32 L2A Series
Страница 2: ...K32 L2A Reference Manual Rev 2 01 2020 2 NXP Semiconductors...
Страница 42: ...K32 L2A Reference Manual Rev 2 01 2020 42 NXP Semiconductors...
Страница 122: ...Flash Memory Clock K32 L2A Reference Manual Rev 2 01 2020 122 NXP Semiconductors...
Страница 146: ...Module operation in low power modes K32 L2A Reference Manual Rev 2 01 2020 146 NXP Semiconductors...
Страница 158: ...Debug and security K32 L2A Reference Manual Rev 2 01 2020 158 NXP Semiconductors...
Страница 174: ...Module Signal Description Tables K32 L2A Reference Manual Rev 2 01 2020 174 NXP Semiconductors...
Страница 246: ...Application information K32 L2A Reference Manual Rev 2 01 2020 246 NXP Semiconductors...
Страница 322: ...Kinetis Bootloader Status Error Codes K32 L2A Reference Manual Rev 2 01 2020 322 NXP Semiconductors...
Страница 344: ...Application initialization information K32 L2A Reference Manual Rev 2 01 2020 344 NXP Semiconductors...
Страница 374: ...CMP Trigger Mode K32 L2A Reference Manual Rev 2 01 2020 374 NXP Semiconductors...
Страница 384: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 384 NXP Semiconductors...
Страница 592: ...Application Information K32 L2A Reference Manual Rev 2 01 2020 592 NXP Semiconductors...
Страница 602: ...Initialization and application information K32 L2A Reference Manual Rev 2 01 2020 602 NXP Semiconductors...
Страница 656: ...Functional Description K32 L2A Reference Manual Rev 2 01 2020 656 NXP Semiconductors...
Страница 664: ...Functional Description K32 L2A Reference Manual Rev 2 01 2020 664 NXP Semiconductors...
Страница 744: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 744 NXP Semiconductors...
Страница 762: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 762 NXP Semiconductors...
Страница 806: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 806 NXP Semiconductors...
Страница 868: ...Integer square root K32 L2A Reference Manual Rev 2 01 2020 868 NXP Semiconductors...
Страница 976: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 976 NXP Semiconductors...
Страница 1012: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 1012 NXP Semiconductors...
Страница 1094: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 1094 NXP Semiconductors...
Страница 1132: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 1132 NXP Semiconductors...
Страница 1182: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 1182 NXP Semiconductors...
Страница 1290: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 1290 NXP Semiconductors...
Страница 1344: ...USB Voltage Regulator Module Signal Descriptions K32 L2A Reference Manual Rev 2 01 2020 1344 NXP Semiconductors...
Страница 1356: ...Initialization Application Information K32 L2A Reference Manual Rev 2 01 2020 1356 NXP Semiconductors...