Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Using SPI on 3.5 display with FTDI FT800 controller.
Goto page Previous  1, 2, 3
 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    www.mcselec.com Forum Index -> BASCOM-AVR Archive
View previous topic :: View next topic  
Author Message
PeterM

Bascom Member



Joined: 09 Jun 2008
Posts: 118

australia.gif
PostPosted: Mon Jun 30, 2014 8:40 am    Post subject: Reply with quote

apan

Yes using a 'TAG' can be assign to what ever you are drawing with.
I thought you already was using TAG because you said 'Other objects get 255'

Try and also look in the F800 Programmers Guide

http://www.ftdichip.com/Support/Documents/ProgramGuides/FT800%20Programmers%20Guide.pdf

_________________
Peter
Back to top
View user's profile
apam

Bascom Member



Joined: 07 Sep 2009
Posts: 20

czechrepublic.gif
PostPosted: Mon Sep 01, 2014 5:55 pm    Post subject: Reply with quote

Hi PeterM,
I need your help, do you know how to make sliding text or writing text to the next line and keep your original text before? For example, an extract from the UART chronologically.
Thank you for your response.
Back to top
View user's profile
PeterM

Bascom Member



Joined: 09 Jun 2008
Posts: 118

australia.gif
PostPosted: Tue Sep 02, 2014 1:57 am    Post subject: Reply with quote

Apam

Are you talking about having a Scrolling Display of text
as the text reaches the bottom of the screen you add a new
line and scroll the text up one line ?

If so you could store the text in some type of array.
Move the data in and out in the order you receive them from the array
and then output the array to the LCD.

I have some experience in the inner workings of the FT800 but
not an expert in some of the graphic commands.

P.S. Don't delete your post this time Very Happy

_________________
Peter
Back to top
View user's profile
apam

Bascom Member



Joined: 07 Sep 2009
Posts: 20

czechrepublic.gif
PostPosted: Tue Sep 02, 2014 7:08 am    Post subject: Reply with quote

Yes, I mean this, use the data array also occurred to me. I thought that going to make it easier than use the much memory for the string fields.
Back to top
View user's profile
PeterM

Bascom Member



Joined: 09 Jun 2008
Posts: 118

australia.gif
PostPosted: Tue Sep 02, 2014 9:27 am    Post subject: Reply with quote

I realise you don't want to use much Ram but I don't know if you could possibly read the incoming data
and display it on the LCD, but as you get to the bottom somehow move the whole LCD image UP and
add the new data at the last line. I wonder if Cmd_Append can be used or somehow save the Display List
and re-use it.

_________________
Peter
Back to top
View user's profile
PeterM

Bascom Member



Joined: 09 Jun 2008
Posts: 118

australia.gif
PostPosted: Tue Sep 02, 2014 9:42 am    Post subject: Reply with quote

I emailed someone to see if he has some ideas to help, may
take a day or so till I get a reply.

_________________
Peter
Back to top
View user's profile
PeterM

Bascom Member



Joined: 09 Jun 2008
Posts: 118

australia.gif
PostPosted: Tue Sep 02, 2014 11:49 pm    Post subject: Reply with quote

Apan

Here is a reply I just received.

Quote:

I'll need to have a think on the best way but one way that came to mind would be to write each line into the FT800's RAM_G. That way you don't need to store all the text in the MCU.

Reserve a different section of RAM_G for each line of text on the screen (let's say 10 lines for example so 10 blocks of RAM) and keep a table of: index (1-10), start addr, length

Each time the MCU has a new line of text, it could create a DL to display each new line of text and store it into the next RAM_G section in a circular buffer type of arrangement. i.e. put in next block wrapping round at 10 to overwrite oldest entry. The method shown in our Gauges example can be used (I am doing an appnote with an example of append, you can find the code below which does something similar)

Now, the MCU would use ten Append commands to create a final display list where the text is all stored in the RAG_G. It would keep a second pointer to define the order in which it ran the 10 appends and would add in the coordinates over SPI.

The downside is that the MCU would have quite a few different indexes to keep track of. I'm doing something similar with a scrolling graph but each case is going to be quite different if it's to be efficient for the MCU.

There might be a better way, if I think of anything I'll let you know.

_________________
Peter


Last edited by PeterM on Wed Sep 03, 2014 9:38 am; edited 1 time in total
Back to top
View user's profile
apam

Bascom Member



Joined: 07 Sep 2009
Posts: 20

czechrepublic.gif
PostPosted: Wed Sep 03, 2014 7:54 am    Post subject: Reply with quote

Hi PeterM,
it is a good idea, i will try to create some example. Thanks for idea. Smile
Back to top
View user's profile
jhulsbergen

Bascom Member



Joined: 08 Nov 2006
Posts: 3

blank.gif
PostPosted: Wed Oct 01, 2014 7:12 pm    Post subject: Reply with quote

Hello Peter,

Do you have the latest code for the FT800 for me. I follow your discusions about the FT800 for a long time and i will try the code on a test board.
Can you send me the code to info at jahuls-electronica dot nl

Jaap
Back to top
View user's profile
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    www.mcselec.com Forum Index -> BASCOM-AVR Archive All times are GMT + 1 Hour
Goto page Previous  1, 2, 3
Page 3 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum