TSS and FlexBus on TWR-K70 and MQX

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

TSS and FlexBus on TWR-K70 and MQX

Jump to solution
607 Views
friederschrempf
Contributor IV

I'm using eGUI and TWR-LCD via FlexBus on MQX 4.0.1 with CW 10.3.

Now I wanted to add touch sensing with TSS library. Unfortunately TSS seems to interfere with FlexBus so I don't get an image on the screen anymore.

I looked at the pinout and found several TSI pins that are also used by FlexBus. Therefore I reduced the number of electrodes in TSS_SystemSetup.h to only one (TSI0_CH5) which is not on a FlexBus pin.

Unfortuantely I still get no image on the screen.

Is this possible what I try to do? What can be wrong?

Thank you for your help!

0 Kudos
1 Solution
356 Views
friederschrempf
Contributor IV

I found the lines where the pins are configured for TSI operation.

In the bsp in init_gpio.c I edited the function _bsp_tss_io_init, so every pin used by FlexBus isn't switched to TSI:

/* Set Electrodes for TSI function */

    PORTB_PCR0 = PORT_PCR_MUX(0);

    PORTB_PCR1 = PORT_PCR_MUX(0);

    PORTB_PCR2 = PORT_PCR_MUX(0);

    PORTB_PCR3 = PORT_PCR_MUX(0);

    //PORTC_PCR0 = PORT_PCR_MUX(0);        // disable for FlexBus

    //PORTC_PCR1 = PORT_PCR_MUX(0);        // disable for FlexBus

    //PORTC_PCR2 = PORT_PCR_MUX(0);        // disable for FlexBus

    PORTA_PCR4 = PORT_PCR_MUX(0);

    //PORTB_PCR16 = PORT_PCR_MUX(0);        // disable for FlexBus

    //PORTB_PCR17 = PORT_PCR_MUX(0);        // disable for FlexBus

    //PORTB_PCR18 = PORT_PCR_MUX(0);        // disable for FlexBus

    //PORTB_PCR19 = PORT_PCR_MUX(0);        // disable for FlexBus


View solution in original post

0 Kudos
1 Reply
357 Views
friederschrempf
Contributor IV

I found the lines where the pins are configured for TSI operation.

In the bsp in init_gpio.c I edited the function _bsp_tss_io_init, so every pin used by FlexBus isn't switched to TSI:

/* Set Electrodes for TSI function */

    PORTB_PCR0 = PORT_PCR_MUX(0);

    PORTB_PCR1 = PORT_PCR_MUX(0);

    PORTB_PCR2 = PORT_PCR_MUX(0);

    PORTB_PCR3 = PORT_PCR_MUX(0);

    //PORTC_PCR0 = PORT_PCR_MUX(0);        // disable for FlexBus

    //PORTC_PCR1 = PORT_PCR_MUX(0);        // disable for FlexBus

    //PORTC_PCR2 = PORT_PCR_MUX(0);        // disable for FlexBus

    PORTA_PCR4 = PORT_PCR_MUX(0);

    //PORTB_PCR16 = PORT_PCR_MUX(0);        // disable for FlexBus

    //PORTB_PCR17 = PORT_PCR_MUX(0);        // disable for FlexBus

    //PORTB_PCR18 = PORT_PCR_MUX(0);        // disable for FlexBus

    //PORTB_PCR19 = PORT_PCR_MUX(0);        // disable for FlexBus


0 Kudos