What is the difference for GCT's "X-Bar CrossBar switch" settings in new MC56F83763?

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

What is the difference for GCT's "X-Bar CrossBar switch" settings in new MC56F83763?

1,689 Views
fasihahmed
Contributor IV

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? 

 

fasihahmed_0-1604260364813.png

 

fasihahmed_1-1604260384093.png

 

@xiangjun_rong 

0 Kudos
Reply
4 Replies

1,672 Views
fasihahmed
Contributor IV

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);

 

fasihahmed_0-1604311047232.png

 

0 Kudos
Reply

1,667 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi, Fasih

 

I think you can use the macro to write the crossbar register:

void setCrossBar(void)
{
//ADC triggering
ioctl(XBAR_A,XBAR_A_SET_OUT_ADCA_TRIGGER,XBAR_A_INPUT_GPIO_C...


BR

XiangJun Rong

0 Kudos
Reply

1,664 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

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

0 Kudos
Reply

1,679 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

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

 

xiangjun_rong_0-1604301769216.png

 

0 Kudos
Reply