PIC18F8722 AND TFT LMT056DID DRIVER SSD1963

Post your requests and ideas on the future development of mikroBasic PRO for PIC.
Post Reply
Author
Message
Frank73
Posts: 33
Joined: 09 Jan 2012 15:56

PIC18F8722 AND TFT LMT056DID DRIVER SSD1963

#1 Post by Frank73 » 16 Dec 2019 03:14

Hello!

I want to thank in advance the effort made to make the compiler more robust every day.
I work in a development with a PIC 18F8722 and a TFT screen with SSD1963 controller, which so far has seemed an excellent controller.
IN THE MOMENT I HAVE A PROBLEM when calling the function ADC_READ ().
The program runs well, I load an image without problem, but once you finish reading the A / D channel, the routine restarts and only shows one reading.

I HOPE TO RECEIVE YOUR HELP TO CONTINUE THANKS!

User avatar
jovana.medakovic
mikroElektronika team
Posts: 986
Joined: 18 Dec 2018 10:36

Re: PIC18F8722 AND TFT LMT056DID DRIVER SSD1963

#2 Post by jovana.medakovic » 16 Dec 2019 17:22

Hello,

Can you zip and send me your project for review?

Kind regards,
Jovana

Frank73
Posts: 33
Joined: 09 Jan 2012 15:56

Re: PIC18F8722 AND TFT LMT056DID DRIVER SSD1963

#3 Post by Frank73 » 17 Dec 2019 03:14

Hello!

I share the file is compressed

good day!!
Attachments
CPU-COLOR3.rar
(83.47 KiB) Downloaded 103 times

User avatar
jovana.medakovic
mikroElektronika team
Posts: 986
Joined: 18 Dec 2018 10:36

Re: PIC18F8722 AND TFT LMT056DID DRIVER SSD1963

#4 Post by jovana.medakovic » 17 Dec 2019 12:02

Hi Frank,

If you use ADC_Get_Sample function instead of ADC_Read, do you have the same problem? Don't forget to use ADC_Init before ADC_Get_Sample function.

In the attachment, you can find a simple example where I use ADC_Read function. Try to run it and let me know if you have the same problem.

Kind regards,
Jovana
Attachments
ADC on LEDs.zip
(55.9 KiB) Downloaded 100 times

Frank73
Posts: 33
Joined: 09 Jan 2012 15:56

Re: PIC18F8722 AND TFT LMT056DID DRIVER SSD1963

#5 Post by Frank73 » 02 Jan 2020 19:53

HELLO JOVANA GOOD DAY!

the ADC_Read () function does not work correctly together with the TFT_Init_SSD1963_8bit library.
Calling the ADC_Get_Sample (4) function works perfect, but with the other ADC_Read () instruction it does not work creates a conflict and restarts the routine.

Frank73
Posts: 33
Joined: 09 Jan 2012 15:56

Re: PIC18F8722 AND TFT LMT056DID DRIVER SSD1963

#6 Post by Frank73 » 03 Jul 2020 13:18

Hi good day

In this same development I gave myself the task of looking for a Pic of greater efficiency to replace the PIC18F8722 and I found that the PIC 18F87K22 share the same architecture.
After adjusting the A / D registers that these do change noticeably, I found that the COMPILER has errors in such a way that some functions are blocked and does not respond as it should.
I gave the cake to pass this code to C and test it with both references I speak of the PIC18F8722 AND THE PIC18F87K22 and it works correctly.
What is happening with the Compiler ??? :( :(

User avatar
jovana.medakovic
mikroElektronika team
Posts: 986
Joined: 18 Dec 2018 10:36

Re: PIC18F8722 AND TFT LMT056DID DRIVER SSD1963

#7 Post by jovana.medakovic » 06 Jul 2020 14:04

Hello,

Could you provide me with more details, please?
Which functions are you referring to exactly?
Can you zip and send me a minimal project which demonstrates these issues?

Kind regards,
Jovana

Frank73
Posts: 33
Joined: 09 Jan 2012 15:56

Re: PIC18F8722 AND TFT LMT056DID DRIVER SSD1963

#8 Post by Frank73 » 17 Jul 2020 02:57

Hi!

my purpose is none other than to report the bugs I find in the compiler, in order for them to be corrected and provide better performance.
I take the trouble to test the code in another compiler that is not to my liking, I will understand that this work takes time.
Being punctual with the failures that arise will mention them again:
1 when using the A / D converter its registration is unstable and there is no way to keep it, example:
I measure the existing voltage in a Pot. 5K on the first channel of the A / D
and on the multimeter I have a register of 1.4555, but on the screen that I control through pic its first register is 1.4500, after 20 seconds without moving the pot. now the record is 1.4122 and so it keeps going down ...
2 the TFT library FOR DRIVER SSD1963 does not work correctly, it has the following faults:
It takes too long to start the Screen
B costs Bimap images or files from SD memory

Post Reply

Return to “mikroBasic PRO for PIC Wish List”