riverdi click with FT813 and easypic V7 with 18f45k22

General discussion on Visual TFT Software.
Author
Message
User avatar
darko.ilijevski
Posts: 581
Joined: 21 Mar 2017 16:57

Re: riverdi click with FT813 and easypic V7 with 18f45k22

#16 Post by darko.ilijevski » 31 Aug 2017 09:55

Hi,

I think I have found what was wrong with the display: Riverdi was shipping their displays with the physical oscillator, now they ship them with no osc physically soldiered. Mine is pretty old and it had a oscillator on itself, but when I took another one (new) I have discovered they have no osc soldiered.

Also , I was not able to fry my Riverdi on 5V (but it didn't work either) so you do not have to worry about that. The riverdi screen won't work with 5V though, so bring back both the Click board and the MCU to 3.3V

Here, try this code instead, you should upload the existing .hex file first, just in case, but I am almost 100% certain it will work now...
I am looking forward to your answer...

Good luck and best regards
Attachments
RIVERDI CLICK PIC18F45K22_INTERNAL.7z
(140.48 KiB) Downloaded 204 times
BR,
Darko

bartelmebs
Posts: 16
Joined: 11 Aug 2017 21:34

Re: riverdi click with FT813 and easypic V7 with 18f45k22

#17 Post by bartelmebs » 31 Aug 2017 21:52

yeaaa, now its work, thank you!!

now i need a help for make a pattern, i have a visualTFT, and make interfaces there, but need help to put values for this board there, and need know what i need for work without oscillator on riverdi board, can you explain me it?

thanks

User avatar
darko.ilijevski
Posts: 581
Joined: 21 Mar 2017 16:57

Re: riverdi click with FT813 and easypic V7 with 18f45k22

#18 Post by darko.ilijevski » 01 Sep 2017 20:33

Hi,

You have all you need in that archive. When you press F12, it will jump into the visualTFT (integrated one) and it will show you settings if you go to Edit Project > VTFT settings tab, you can see all that I have set for that to work. There, you can play with the settings. Mind you - PIC18F was never meant to drive TFT, it can get pretty tight with the memory and things... If you prefer stand alone - just copy the values in there. If you have troubles with that, I will help you, but I encourage you to work on the integrated TFT as it's newer version than the standalone.

Specifically - for the oscillator - you just need to select "internal oscillator" on the config page of the integrated VTFT, set it to 12MHz (it's multiplied by the PLL to 48, internally).

IF you have some earlier edition of mikroC for PIC, I strongly suggest you to upgrade to the latest version and get the integrated VTFT.
Anyway, I am really glad that I helped you show the picture on your display, sorry about the oscillator issue, didn't figure it out right away.

Best regards
BR,
Darko

bartelmebs
Posts: 16
Joined: 11 Aug 2017 21:34

Re: riverdi click with FT813 and easypic V7 with 18f45k22

#19 Post by bartelmebs » 01 Sep 2017 21:46

ok, its work..

well all ok now, just have some trouble on touchscreen, when start i can calibrate, but when star program some times i can't touch on button, just touch near button to work, do you have calibration parameters? maybe have some interference on touch?

i tested with USB power and External power are same problem.

thanks

User avatar
darko.ilijevski
Posts: 581
Joined: 21 Mar 2017 16:57

Re: riverdi click with FT813 and easypic V7 with 18f45k22

#20 Post by darko.ilijevski » 02 Sep 2017 16:54

Hi,

Unfortunately, that is a problem for me, too. Try playing around with the SPI divider, that is the only thing I could do to make it reacts a bit better - that's actually the issue I was talking in another thread - electrical characteristics of the PIC 16 and 18 MCUs. I do not see such behavior in PIC32 or STM32... I will test it on more PICs, especially some of the latest models of 16 and 18 family, they might have better MSSP modules inside of them. I haven't been able to solve it yet, but if I find out something, I will let you know.

Best regards
BR,
Darko

bartelmebs
Posts: 16
Joined: 11 Aug 2017 21:34

Re: riverdi click with FT813 and easypic V7 with 18f45k22

#21 Post by bartelmebs » 04 Sep 2017 13:34

ok, and i have a stm32F467re board, and i can use VTFT to make some library for it? i don't find arm on VTFT, do you know if work with this? or if i download demo mikron for ARM i can use for STM board?

User avatar
darko.ilijevski
Posts: 581
Joined: 21 Mar 2017 16:57

Re: riverdi click with FT813 and easypic V7 with 18f45k22

#22 Post by darko.ilijevski » 04 Sep 2017 19:49

Hi,

VisualTFT has one license. It will work for all the VTFT versions, so you can freely use that key you have and activate the standalone VTFT, which you can use on STM board. We are preparing the integrated VTFT for the ARM compilers, but for the time being, you should use the standalone (older) version of VTFT.

Best regards
BR,
Darko

bartelmebs
Posts: 16
Joined: 11 Aug 2017 21:34

Re: riverdi click with FT813 and easypic V7 with 18f45k22

#23 Post by bartelmebs » 04 Sep 2017 22:12

ok, but open a visualTFT, but don't find my microcontroler ARM on lis, what i can do?
see picture
Attachments
tft.png
tft.png (194.51 KiB) Viewed 5706 times

User avatar
darko.ilijevski
Posts: 581
Joined: 21 Mar 2017 16:57

Re: riverdi click with FT813 and easypic V7 with 18f45k22

#24 Post by darko.ilijevski » 05 Sep 2017 20:09

Hi,

That is really a strange issue you have there. Maybe the Visual TFT doesn't see the path of the mikroC PRO for ARM correctly or some other data got corrupted. I have all the STM devices along with the one you are using. I have tested this on many computers in our lab and offices, haven't seen such an issue. Try reinstalling the ARM compier (latest version) then reinstal VTFT if that doesn't help... You should be able to see them all.

Best regards
Attachments
mikroc.jpg
mikroc.jpg (79.55 KiB) Viewed 5690 times
BR,
Darko

bartelmebs
Posts: 16
Joined: 11 Aug 2017 21:34

Re: riverdi click with FT813 and easypic V7 with 18f45k22

#25 Post by bartelmebs » 06 Sep 2017 20:59

hi, its solved now, thank you.

i have a finish question, how i can use a external memory for use TFT in my PIC? i saw have a option to put code on SD card, have some sample? i have a SDboard, how i can do it?

User avatar
dusan.poluga
mikroElektronika team
Posts: 780
Joined: 02 Feb 2017 14:21

Re: riverdi click with FT813 and easypic V7 with 18f45k22

#26 Post by dusan.poluga » 07 Sep 2017 15:28

Hi,

That can be done by opening Project Settings and clicking on the Resources tab.
Their you will find the option to store the resources Externally.

Regards,
Dusan Poluga.

bartelmebs
Posts: 16
Joined: 11 Aug 2017 21:34

Re: riverdi click with FT813 and easypic V7 with 18f45k22

#27 Post by bartelmebs » 08 Sep 2017 15:16

hi Dusan, only code for display will be on SD card? code for microcontroler still go to microcontroler ROM?

User avatar
darko.ilijevski
Posts: 581
Joined: 21 Mar 2017 16:57

Re: riverdi click with FT813 and easypic V7 with 18f45k22

#28 Post by darko.ilijevski » 08 Sep 2017 18:20

Hi,

In this case, VTFT will collect the resources and place them on the SD card. Resources consist mostly of the images and fonts data. All of the executive code is still ran by the MCU and remains there.

Regards
BR,
Darko

Post Reply

Return to “Visual TFT General”