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!
PIC18F8722 AND TFT LMT056DID DRIVER SSD1963
- jovana.medakovic
- mikroElektronika team
- Posts: 986
- Joined: 18 Dec 2018 10:36
Re: PIC18F8722 AND TFT LMT056DID DRIVER SSD1963
Hello,
Can you zip and send me your project for review?
Kind regards,
Jovana
Can you zip and send me your project for review?
Kind regards,
Jovana
Re: PIC18F8722 AND TFT LMT056DID DRIVER SSD1963
Hello!
I share the file is compressed
good day!!
I share the file is compressed
good day!!
- Attachments
-
- CPU-COLOR3.rar
- (83.47 KiB) Downloaded 103 times
- jovana.medakovic
- mikroElektronika team
- Posts: 986
- Joined: 18 Dec 2018 10:36
Re: PIC18F8722 AND TFT LMT056DID DRIVER SSD1963
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
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
Re: PIC18F8722 AND TFT LMT056DID DRIVER SSD1963
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.
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.
Re: PIC18F8722 AND TFT LMT056DID DRIVER SSD1963
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 ???
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 ???
- jovana.medakovic
- mikroElektronika team
- Posts: 986
- Joined: 18 Dec 2018 10:36
Re: PIC18F8722 AND TFT LMT056DID DRIVER SSD1963
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
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
Re: PIC18F8722 AND TFT LMT056DID DRIVER SSD1963
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
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