Hi All,
Teaching myself AVRs and AVR-GCC... (still)
My setup is ATMEGA328P 16Mhz on an Arduino Uno.
I just got this bit of kit:
http://www.hobbytronics.co.uk/arduino/arduino-shields/arduino-tft-shield
Featuring a 128 x 160 18 bit colour TFT screen driven by a ST7735, connected in 4 wire SPI mode.
I've converted a driver I found on the interweb to avr-gcc and it works.
I'm bit-banging the SPI for the moment but will be using the hardware SPI at some point.
However, according to my very basic calculations, it should only take ~140mS to fill the screen with coloured pixels because, looking at the dis-assembly, there's 110 instructions to set a single pixel plus 288 instructions for the loops.
(20480 x 110) x 62nS = ~139mS
where 62nS = 1 over 16 Million.
However, it takes about 2 seconds for the display to update.
Can anyone shed any light on this?
I can post the code if it's not obvious.
Any help is highly appreciated...
Many thanks.
Darren.