• Answer Suggested

Kentec QVGA S1 TM4C123 SPI Driver

Hi,

I see that new booster pack Kentec QVGA S1 has been changed from 8-bit parallel interface to SPI interface. So I am attaching the driver for new interface (SPI Interface) and I hope that it will be helpful for others.

Best Regards,

Sattar Malokani2844.Kentec320x240x16_SSD2119_SPI.c5557.Kentec320x240x16_SSD2119_SPI.h

  • Hello Sattar

    It would definitely be useful to a lot of other forum members.

    Regards
    Amit

    Regards,

    Amit Ashara

  • Also, for all who need it, make sure to remove the R10 resistor. It will not work if you don't do that.

    Paulo

  • Guru 47910 points

    In reply to Paulo Costa:

    Paulo Costa
    make sure to remove the R10 resistor. It will not work if you don't do that.

    Might it prove wise to remove (equal partner in crime) R9 - as well?      With one pulled - 2nd serves NO purpose!

  • In reply to Paulo Costa:

    Hi Paulo,

    Thanks for pointing out R10, I really forgot to point out about R10 when using kentec booster pack.

    Sattar Malokani

  • In reply to SATTAR MALOKANI:

    Sattar,


    I am working on "lab 10" from the TM4C123g Workshop. The workshop code seems to be written for the 8bit version of the Kentec display. Thanks to your SPI driver, I now have the Kentec with the SPI interface working as far as displaying the various widgets.   However, I am not getting any response to the touch screen.  I wonder if there is something additional I have to modify to make the touch screen work?


    best regards,

    -- mike

  • In reply to Michael Litzkow:

    Hello Mike,

    First of all did you remove the R10 resistor and secondly, which touch.c/.h file are you using?

    Regards

    Amit

    Regards,

    Amit Ashara

  • In reply to Amit Ashara:

    Amit,

    Yes, I did remove the R10 resistor, and subsequently the R9 resistor as well.

    I am using the touch.c/h files from "lab 10". The .c file begins with comment:

    // touch.c - Touch screen driver for the DK-LM3S9B96 board.

    I think it may be for the older version of the Boosterpack as well, but I don't know where to find an updated one for the SPI version. Is that a file you can post or send me a reference?

    regards,
    -- mike
  • In reply to Michael Litzkow:

    Hello Mike

    I don't have a tested file, but based on my schematic, the channels are PD0 and PD1 (AIN7 and AIN6 respectively for XP and YP)

    Regards
    Amit

    Regards,

    Amit Ashara

  • In reply to Michael Litzkow:

    Hello Michael,

    The touch drivers for spi are also changed. I have attached the files for you reference. try these I hope these will work.

    regards,

    sattar malokani

    touch350SPI.ctouch.h

  • In reply to SATTAR MALOKANI:

    Hello Sattar,

    There is a bug in the code which is being fixed for the next release. Note that the timer comment is to generate a ADC trigger every 1ms. However the value of system clock when divided by 1000 does not yield a 16-bit load value for the timer. E.g. 80MHz becomes 80000 which is more than 16 bit load value of the timer

    TimerConfigure(TIMER1_BASE, (TIMER_CFG_SPLIT_PAIR |
    TIMER_CFG_A_PERIODIC |
    TIMER_CFG_B_PERIODIC));

    Should be

    TimerConfigure(TIMER1_BASE, TIMER_CFG_PERIODIC);

    Regards
    Amit

    Regards,

    Amit Ashara