Flex BUS interface issue.( MK66 )

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Flex BUS interface issue.( MK66 )

1,346 Views
karthikas
Contributor IV

Hai .,

I am working with MK66FN2M0VLQ18 MCU in our customized board. I am using sdk2.0 examples for flexbus initialization.

I have configured the flexbus as 2 bytes data width , 8 WS, burst read/write disabled mode. since i am interfacing slow device I disable the auto acknowledgement (AA) and considering the RDY signal from external device. 

In burst inhibited mode if I write 32 bit data to 16 bit port size, it will generate two CS pulses and each cycle has to wait for external RDY signal to close the cycle, as mentioned in reference manual.

pastedImage_2.png

But in our case on getting first RDY signal , the complete bus transaction getting close irrespective of waiting for second RDY signal(hence i am getting single CS pulse despite of writing data size more then port width) .

I tried the same configuration by neglecting external RDY signal(FB_TA), in that time I am getting two CS pulse .

/**********************flex bus config routine **************************/

flexbus_config_t flexbusConfig;

FLEXBUS_GetDefaultConfig(&flexbusConfig);
flexbusConfig.waitStates = 0x0FU;
flexbusConfig.chipBaseAddress = 0x60000000U;
flexbusConfig.chipBaseAddressMask = 0x7FU;
flexbusConfig.portSize = kFLEXBUS_2Bytes;
FLEXBUS_Init(FB, &flexbusConfig);

/****************************************************************************/

Please suggest me If committed to any mistake while configuration.  

Thank you.,

Best Regards.,

Karthik

Tags (2)
0 Kudos
Reply
3 Replies

1,060 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi, Karthik,

I see that you use CPLD or FPGA to generate the FB_TA signal, as I have said that you have to do a state machine, the falling edge of CSx can trigger the state machine, you have to use FB_CLK to do the state change of the state machine. You can not generate the FB_TA without FB_CLK involved.

Hope it can help you

BR

XiangJun Rong

0 Kudos
Reply

1,060 Views
karthikas
Contributor IV

Hi, xiangjun.rong,

Thank you for your response.

Yes I am using CPLD to generate FB_TA signal. The waveform exactly look like below , Upon getting first ready signal whole bus transfer getting closed, hence the second CS pulse is not generating. these signals I analyzed by keeping into Auto ACK mode and neglecting the RDY signal(i,e I changed the FB_TA pin mux option to another ).

Untitled.png

0 Kudos
Reply

1,060 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi, Karthik,

I do not know how you generate the FB_TA signal without the FB_CLK signal involved, for example, how to control the delay from falling edge of /CS to the falling edge of FB_TA signal. Anyway, you should assert the FB-TA signal from the risng edge of FB_CLK as the following figure. you can refer to the Altera or whatever for the VHDL code.

BR

XiangJun Rong

pastedImage_1.png

0 Kudos
Reply