Page 4 of 5
Re: ST7735
Posted: Fri Feb 25, 2022 8:39 pm
by mnfisher
- IMG_20220225_203357.jpg (95.29 KiB) Viewed 2979 times
With PICKIT 3 providing the power..
Re: ST7735
Posted: Fri Feb 25, 2022 8:48 pm
by WingNut
I'm not sure how I can do that. The 18F2620 doesnt have a 32MHz option
Re: ST7735
Posted: Fri Feb 25, 2022 10:18 pm
by mnfisher
You'll need to set the clock speed etc in program options... Whatever it runs at (19MHz??) - it will affect the delays
Looking at the CAL_SPI TransactionWriter code - it just call Master_byte multiple times - so I can't see why the transaction version doesn't work - but tried it again and it doesn't
Sorted - It wasn't working with transactions because the buffer in Initialise was too small (I'd initially left out the gamma adjustments which needed 16 bytes...)
Phew
Re: ST7735
Posted: Mon Feb 28, 2022 9:18 pm
by WingNut
Is there an ILI9163 display available anywhere. This is still the best option at the moment as its the only one which does anything for me. When I search all i can find is the same display from different sources which state st7735/ILI9163 which are clearly not the same ( or are they as slow as each other)
N
Re: ST7735
Posted: Mon Feb 28, 2022 9:41 pm
by mnfisher
Just trying to get going with a PIC18F27J13 - but I can't compile for it:
16405: (1504) the PIC18 extended instruction set was enabled but is not supported by this compiler
Anyone any ideas on this?
#pragma config XINST = OFF - seems one possibility - but where to add ?
Martin
Re: ST7735
Posted: Mon Feb 28, 2022 9:50 pm
by WingNut
Ive had that before - just disabled it in project options
Re: ST7735
Posted: Mon Feb 28, 2022 9:58 pm
by mnfisher
I see it - thanks..
Re: ST7735
Posted: Mon Feb 28, 2022 10:08 pm
by WingNut
NP
for info, Ive added a thermistor into my circuit and an extra line to display the temperature and now the screen takes 12 seconds to update the data versus the previous 6 seconds - still using the ili9163 component. Is this problem more pic related?
Re: ST7735
Posted: Mon Feb 28, 2022 10:22 pm
by mnfisher
Seems - very slow... Can you run a 1s flasher correctly?
I've got a LPLC PIc18 board from a Kickstarter (back in 2014!) - and can't find any docs on it (pinouts etc) - so it is going to take a bit of play to get it working.. So far - I can program it
and have a 1Hz flasher running -but seems to be using a 4MHz clock (should be 48MHz) - so I've a way to go yet...
Re: ST7735
Posted: Tue Mar 01, 2022 5:48 pm
by WingNut
So I stuck a led in and a 5 second flash in 3 different locations -1 at the very start of the program, one immediately after initialising the display and one in the main loop to see if I could tell where the issue lay.
At 40mhz the led is on full time so i changed to 1mhz and the first stage flashes at 1 second (5 times). The next stage takes a few seconds to start flashing so the initialisation is slow. It then flashes for 1 second (5 times). The next stage in the main loop flashes 5 times at 1 second but the display update remains the same (plus the delays)