Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Display TFT ST7789 (OshonSoft Basic).

DogFlu66

Member
I leave the library to use ST7789 TFT display, I have translated one that is in C language. But unfortunately I have not been able to get it to work yet. I leave the files in case someone with more experience with these displays can review it.
 

Attachments

  • Main_ST7789.bas
    1.5 KB · Views: 292
  • ST7789_240X240.bas
    15 KB · Views: 258
  • _SPI_Library.bas
    6 KB · Views: 268
  • _Pic18F26K22Library.bas
    46.4 KB · Views: 253
  • _SetUpAmicus18.bas
    2.9 KB · Views: 247
Dip.jpg
 
There shouldn't be any difference in the microcontrollers because the packaging is different.

I've tested both types of displays with the 46K22 and 46K20, and they worked fine.
Hi I and D,
As all of my peripherals work (need re-checking) with MODE 2 I'll leave the TFT SPI set like that FOR NOW, until I've clarified it.

Looking at the 18F46K20 errata d/s
Here is one very similar to what I'm getting with the data analyser (CLK error)

ERROR.jpg

Microchip want me to clarify a couple of things, so I'll mention this.

NOTE: I have a lot of difficulty with my analyser using CPOL CPHA and the 1846K20 D/S using CPE CKP. (START MIDDLE and END??)
C
 
Hi D,
I though so.
My problems could be surface mount 18F46K20s and my PCB combination.
C.

There should be no difference, surely it's just the exact same die in a different encapsulation. Any issues are more likely to be errors in the code or in the PCB.

Don't try and do everything all at once, strip the code right back so nothing except the display is there, and get that working first - then gradually add extra parts - checking each time, that the display still works, and that the new sections do.
 
There should be no difference, surely it's just the exact same die in a different encapsulation. Any issues are more likely to be errors in the code or in the PCB.

Don't try and do everything all at once, strip the code right back so nothing except the display is there, and get that working first - then gradually add extra parts - checking each time, that the display still works, and that the new sections do.
Hi N,
I've had strange problems with this PIC for a year or two suspecting, and being advised that it's most likely my fault, but there are SPI errors shown in the D/S for this pick when set a certain way.

I'm going through all of the other possibilities, to report to Microchip as they have asked me to. One is SMD or TTH, and D hasn't had any problems with his TTH PIC, that's all.
C.
 

Latest threads

New Articles From Microcontroller Tips

Back
Top