Hi,
I am using MK66FN2M0VLQ18 microcontroller. By this controller, I am interfacing external memory(MIL-STD1553) using flexbus module. if I use CS0(pin No 128) it is working fine but I want to use CS1(pin No 127) with this configuration it is not working. Can you explain how to use CS1 for accessing external memory module by flexbus
waiting for your suggestions.
With Regards,
Sivakrishna
Hi, Sivakrishna,
I have checked the pin assignment of MK66FN2M0VLQ18, the FB_CS1 is multiplexed with PTD0 pin, this is the process to configure the pin as FB_CS1.
1)enable PORTD clock by SIM_SCGC5|=0x01<<12;
2)configure MUX to configure the pin as FlexBUS
PORTD_PCR0&=~(0x07<<8);
PORTD_PCR0|=0x05<<8;
3)configure the FB_CS1 as FB_CS1 with the code
FB_CSPMCR|=0x01<<28; //set Group1 as 01;
4)set the FB_CSAR1 address as 0x6000 0000;
5)set the FB_CSMR1=0x01; //which is based on the size of external memory size for BAM bits, //set the bit0 as 1
6)set the other FB registers
Pls have a try.
Hope it can help you
BR
Xiangjun rong
Hi,Xiangjun rong
Thanks for your support and response I will check and let to know
With Regards,
Sivakrishna