I am porting code from old mc56f82748 to new mc56f83763.
In GCT I see that new DSC is missing XBAR B - Crossbar Switch B option?
Why is that so and how can I use this settings to help me port it?
what should i use to intiliase my XBAR and AOI? i dont have AOI.h for the new DSC?
/* configure XBARA module */
ioctl(XBAR_A,XBAR_A_INIT,NULL);
/* configure XBARB module */
ioctl(XBAR_B,XBAR_B_INIT,NULL);
/* configure AOI module */
ioctl(AOI,AOI_INIT,NULL);
Hi, Fasih
I think you can use the macro to write the crossbar register:
XiangJun Rong
Hi,
for example, the IGT generate the constantin appconfig.h
#define XBAR_A_SEL23_INIT 0x1400U
you can use the code to write it to crossbar reg.
ioctl(XBAR_A,XBAR_A_WRITE_CROSSBAR_REG_23,XBAR_A_SEL23_INIT);
BR
XiangJun Rong
Hi, Fasih,
For the MC56F83xxx, the Xbar module is reorganized, the XBARB is removed, the XBARA becomes XBAR. In other words, there is only one XBAR module.
Pls refer to the following Screenshot,
XBAR_OUT47 EVTG0_A EVTG0 Input
XBAR_OUT48 EVTG0_B EVTG0 Input
XBAR_OUT49 EVTG0_C EVTG0 Input
XBAR_OUT50 EVTG0_D EVTG0 Input
XBAR_OUT51 EVTG1_A EVTG1 Input
XBAR_OUT52 EVTG1_B EVTG1 Input
XBAR_OUT53 EVTG1_C EVTG1 Input
XBAR_OUT54 EVTG1_D EVTG1 Input
XBAR_OUT55 EVTG2_A EVTG2 Input
XBAR_OUT56 EVTG2_B EVTG2 Input
XBAR_OUT57 EVTG2_C EVTG2 Input
XBAR_OUT58 EVTG2_D EVTG2 Input
XBAR_OUT59 EVTG3_A EVTG3 Input
XBAR_OUT60 EVTG3_B EVTG3 Input
The above is the EVTG input source. For example, if you select XB_IN2 Package Pin XBAR_IN2 as the AOI0_A0 pin, you can use the code:
XBARA_SEL23=0x00;
XBARA_SEL23|=2<<8;
Hope it can help you
BR
XiangJun Rong