Barrel Shifter using FLEXIO

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Barrel Shifter using FLEXIO

1,182 次查看
shauldorf
Contributor V

Is it possible to implement barrel shifter using FLEXIO with following configuration?

 

 FLEXIOx_SHIFTCFGn[INSRC =0]

and

FLEXIOx_SHIFTCFGn[01 or 10]

BR

Shaul

标签 (1)
0 项奖励
回复
3 回复数

982 次查看
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi, Shaul,

Regarding your barrel shift with FlexIO module, I do not know your application. Anyway, you can see the FlexIO as a serial D flip-flop,you can write the data to the buffer, the data bits will output with a programmable clock. For example, if you write 0x35 to the buffer, you can get LLHHLHLH waveform output on the FlexIOx pin. The H represents High logic, L Low logic.

The FlexIO can implement SPI/I2S/uart/IIC/PWM for both transmitter and receiver.

Hope it can help you.

BR

Xiangjun Rong

0 项奖励
回复

982 次查看
shauldorf
Contributor V

Hi Rong

In my application I want to use FlexIO as Barrel shifter (not as communication device).

The function is "parallel in serial out".

  1. Parallel load “Shift Buffer” by core
  2. Shift buffer to Shift register
  3. Shift Out by Timer to selected IO (Port)
    1. Shift out serially using Timer
    2.  At the same time the output is also returned back to the shifter
  4. Number of Shit-Out clocks can be any integer greater than 100 < N< 10000.
  5. Stop by Core on external event (Interrupt).

 

The question is this can be implemented using FlexIO?

From reading K43 Reference Manual I think that it is possible and I want to verify this.

My assumption is that this configuration will do this.

 

FLEXIOx_SHIFTCFGn[INSRC =0] and FLEXIOx_SHIFTCFGn[01 or 10]

 

Please see attached block diagram.

pastedImage_1.png

B.R

Shaul

0 项奖励
回复

982 次查看
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi, Shaul,

I think the solution is feasible.

BR

Xiangjun Rong

0 项奖励
回复