riverdi click with FT813 and easypic V7 with 18f45k22

General discussion on Visual TFT Software.
Author
Message
bartelmebs
Posts: 16
Joined: 11 Aug 2017 21:34

riverdi click with FT813 and easypic V7 with 18f45k22

#1 Post by bartelmebs » 11 Aug 2017 21:43

hello, i need help to use my riverdi click tft on my easy pic v7 board, i need create a new pattern, but i do not know how i make it, and if someone have some example for visualtft...

thanks

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

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

#2 Post by darko.ilijevski » 17 Aug 2017 09:23

Hello,

Sorry for the delay, here is the code which works with the PIC18F45K22. The important thing is to set the SLRCON registers to 0, which enables faster rate of the pin transitions, else they have slew control turned on by default thus slowing or rather breaking up the fast SPI communication. Also I have used SPI divider DIV16 for the example to work. If it still fails at your side, try using DIV64, I had a crystal @ 8MHz (x4 PLL) and Riverdi Click board connected to the screen with the FFC cable.

Best regards
Attachments
RIVERDI CLICK PIC18F45K22.zip
(53.63 KiB) Downloaded 182 times
BR,
Darko

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

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

#3 Post by bartelmebs » 17 Aug 2017 19:05

Thank you Darko, i downloaded this archive, but when try open sample show me error message, can you help me with this?
and you tested on Easypic V7 board or stand alone PIC?

thanks
Attachments
error when try open sample
error when try open sample
error.png (119.81 KiB) Viewed 6480 times

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

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

#4 Post by darko.ilijevski » 18 Aug 2017 13:51

Hello,

I have tested it on the EasyPIC v7 board... but why using Visual TFT standalone version ? Project is made to run in the integrated version of VTFT, which is a newer version of VTFT. Open up the mikroC for PIC project file and when the project is loaded, just use F12. I have used the latest VTFT 7.1.0. When you go to the project edit, switch to the VTFT settings and you will see the pattern too. It's made to work on the mikroBUS 1.

Regards
BR,
Darko

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

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

#5 Post by bartelmebs » 18 Aug 2017 15:14

i wil try, iam new with mikroe solutions. i have other question, do you used in easypic v7 with 3v3 or 5 v on jumper J5 in power supply?
and what jumpers and switches i need change/set to work with microbus? can you take a picture about your configuration?


thanks

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

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

#6 Post by darko.ilijevski » 18 Aug 2017 16:55

Hi,

You have to set it according to your Riverdi Click - so if it's little SMD jumper is set to 3.3V, put the J5 jumper at 3.3V, too (it's by default, I think). Nothing else should affect the functionality of the SPI bus which is the same on both mikroBusses (except for the chip select pin #CS). Chip Select pin should also be in a neutral position, so make sure all the other DIP switches stay either at neutral position, or at OFF position (towards the left side)

Ask freely if you have more questions, I will be happy to answer

Best regards
BR,
Darko

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

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

#7 Post by bartelmebs » 18 Aug 2017 18:33

well, i open project and now ok, i can open :)

but the display until still black, no show anything, if i put all dip switches to ON when start boar, display turn on in blank stat, after seconds turn off. i changed SPIdiv to 16, 64 but not success. Where am I going wrong? 16x2 display and glcd works well, but i can't make on my riverside display :(

this is a picture from my board configuration, and display, i put jumper to 3v3 in riverside click and easy pic.

i need cut the flat, because when i received display and click board, the cable come wrong, but i tested the flat and are ok, no short-circuit and no open circuit.

thanks
Attachments
IMG_6449.JPG
IMG_6449.JPG (150.37 KiB) Viewed 6469 times
IMG_6448.JPG
IMG_6448.JPG (122.12 KiB) Viewed 6469 times
IMG_6447.JPG
IMG_6447.JPG (151.42 KiB) Viewed 6469 times

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

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

#8 Post by darko.ilijevski » 18 Aug 2017 20:00

Hello,

Can you make a photo which shows the flat cable connectors ? And the flat cable itself. Everything else is fine, that should be working...
There's a .hex file inside of the archive. Try uploading only that - start the mikroProg Software Suite apart from the compiler, load the .hex file and upload it to the MCU. Let's see if something goes wrong when you compile the project... Also make sure you have a crystal oscillator @8mhz seated well in the OSC1 socket (I see the jumpers on the photo and those are fine)

Take a picture of your display also, or post here it's PID (mikroe - xxxx) let's see if we're using the same one... although I have used the one with FT813...

Regards
BR,
Darko

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

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

#9 Post by bartelmebs » 18 Aug 2017 20:59

hi

i loaded hex file only, but no success.
i use a 8mhz and its fine, work with other codes like a blink led...

see pictures and help me please, maybe display come with problem?

remember, my microbus riverdi come with jumper on 5vcc, and my easypicV7 stay with jumper on 5vcc...
Attachments
IMG_6454.JPG
IMG_6454.JPG (123.06 KiB) Viewed 6464 times
IMG_6453.JPG
IMG_6453.JPG (73.42 KiB) Viewed 6464 times
IMG_6452.JPG
IMG_6452.JPG (115.95 KiB) Viewed 6464 times

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

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

#10 Post by darko.ilijevski » 18 Aug 2017 22:25

Hi,

Well I do not like the looks of that cable at all... That last trace seems loose, can't you get a proper 20pin FCC cable somewhere at least to try it out ?
As for the riverdi click, 3.3V is ok, but you should run the board at 3.3V too...
I suggest you to try to find a proper 20pin FFC , since although it can have good connections between lines - there's a questionable contact with the zif socket itself.
In case you want to get a proper one, I'll post the data. Try to find one that matches (0.5mm pitch, 20pins) :

FFC 20 pin cable with 0.5 mm pitch, same side pins exposed (type 'C')

Also do not use too long cable either, SPI is sensitive to EMI interferrences... My cable was ~ 15cm
Regards
BR,
Darko

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

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

#11 Post by bartelmebs » 21 Aug 2017 18:15

ok, i will try buy one new flat cable, but i tested with tester and all pins are ok, no shortcircuit or open circuit...

i will post a feedback when do it.

thanks!

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

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

#12 Post by bartelmebs » 30 Aug 2017 15:35

Hello Darko, today i received my new cable, like your recommendation, but no success :(

i think display are some problem, but i bought it new from mouser USA, i think i can't change for a new unit because i stay in Brasil...
see pictures about cable and display/clickboard, i make a video too, i will try put on youtube for you see it, because when i turn on the board, display come blank and turn off again.

i try on DIV16 and DIV64, tested my oscillator cristal and are OK.

link of video https://youtu.be/zgQ7EJ_NKzo
Attachments
IMG_6533.JPG
IMG_6533.JPG (62.33 KiB) Viewed 6370 times
IMG_6532.JPG
IMG_6532.JPG (93.33 KiB) Viewed 6370 times
IMG_6531.JPG
IMG_6531.JPG (81.01 KiB) Viewed 6370 times

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

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

#13 Post by darko.ilijevski » 30 Aug 2017 19:50

Hello,

Yes now the connection looks proper, at least we can exclude that factor.
I see that your voltage selection is set to 5V. Try running your Easy PIC board and the Riverdi click both at 3.3V and see if there's any change - judging by the riverdi datasheet, logic levels should stay within 3.3V - my board was also at 3.3V. I will take a video of my setup at the lab tomorrow and will send it to you - maybe you miss something regarding the code, etc... At the end - it might really be the hardware, but I want to make sure we tried everything we can.

Best regards
BR,
Darko

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

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

#14 Post by bartelmebs » 30 Aug 2017 20:12

are you think i burned FT813 because i use 5V? i change to 3V3 but no success.

when arrive riverdi click, the jumper are on 5vcc, and i use my easy pic on 5vcc too, i saw data sheet from riverdi, and works with 3v3 spi line, then i think i burned FT wen works with easy pic on 5vcc...

what do you think about this?

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

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

#15 Post by darko.ilijevski » 30 Aug 2017 21:38

Hi,

I don't think you can burn it with 5v. I will test it thoroughly in the lab tomorrow, also I will check my code once more. We would have many more complaints if 5V would fry the MCU on it - I believe the lines wouldn't work at 5V but not get burned. There is a possibility that you've simply got a faulty unit - nothing is impossible... I will know more tomorrow.

Best regards
BR,
Darko

Post Reply

Return to “Visual TFT General”