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  Next
 
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
albertsm

Administrator



Joined: 09 Apr 2004
Posts: 5921
Location: Holland

blank.gif
PostPosted: Wed Mar 12, 2014 12:43 pm    Post subject: Reply with quote

yes Peter did a great job. i used his code on an xmega.
I am busy making an asm driver for ft800. bascom will support some specific ft800 functions, and for the rest Peters code will be used with some modifications.
for example this code will become ftWR8 sub routine. the test you see below.
Sub Wr8(Byreg r16 As Dword , Byreg r20 As Byte)
!jmp ft_wr8
end sub

some code is used like :

Sub ColorRGB(Bystack R As Byte , Bystack G As Byte , Bystack B As Byte)
'-----------------------------------------------------------
' Set the current Colour of Red, Green and Blue
$asm
ld r20,y+ ; last param passed last so B goes to wb0/r20
ld r21,y+
ld r22,y+
$end asm
setreg r23 , 4
ftsend32 ___DWTMPB , ftstend
End Sub

this make the calling code most efficient. but it uses a new features (well enhanced actually) that allows to pass parameters via the softstack or a register.
so do not waste too much time and better play with the functions.

_________________
Mark
Back to top
View user's profile Visit poster's website
PeterM

Bascom Member



Joined: 09 Jun 2008
Posts: 118

australia.gif
PostPosted: Wed Mar 12, 2014 2:31 pm    Post subject: Reply with quote

Per

Thanks for the nice words, there has been more code written since that post, the whole Programmers
manual has been converted to Bascom but no point posting that code here since Mark is working
behind the scenes making a Optimised Fast FT800 Library (did I say that correct )Mark Very Happy
which will take some time and will need some testing.

If you can't wait somehow send me your email? and I can give you something to play till
the time comes.

BTW I was so impressed by the demos from FTDI Eve demos and Gameduino2 demos that I had to buy one
of those Displays to have a playl

I noticed a new Datasheet out for the FT801 which is the same as the FT800 but a Capacitive Touch version

_________________
Peter
Back to top
View user's profile
Per Svensson

Bascom Member



Joined: 03 Oct 2004
Posts: 235
Location: Gothenburg, Sweden

sweden.gif
PostPosted: Wed Mar 12, 2014 3:46 pm    Post subject: Reply with quote

Peter and Mark,

Yes I would certainly like to take part in this FT80x lib progress. My email is PS(at)monolitsystem(dot)se

I strongly feel that this is a driver that we can benefit from many years to come as, together with
this display family, it solves a problem we have faced for many years. Graphic+Touch+Sound
AVR is a great processor but really was not built for heavy stuff like cosine-matrix math and alike.
If we can now unburden all graph tasks and even som 3D, we really have got a newstart for AVR.
So this is really great. Please tell me if there is something I can do to help. If it is within my reach I'll try.

Best regards
/Per
Back to top
View user's profile Visit poster's website
PeterM

Bascom Member



Joined: 09 Jun 2008
Posts: 118

australia.gif
PostPosted: Tue Mar 18, 2014 11:35 am    Post subject: Reply with quote

Larry

FTDI just released a FT800 emulator, not sure how to use it properly but you can
place Widgets of the screen, move and stretch them, view the parameters etc.

Note: will not run on XP, Vista/Win7 only

http://www.ftdichip.com/Support/SoftwareExamples/EVE/setup%20ft800%20emulator.zip

_________________
Peter
Back to top
View user's profile
albertsm

Administrator



Joined: 09 Apr 2004
Posts: 5921
Location: Holland

blank.gif
PostPosted: Tue Mar 18, 2014 11:45 am    Post subject: Reply with quote

it looks nice but i have no clue how to use it.
maybe good to know that some one develops a graphical editor. i have seen a very early beta. idea is that it will support bascom as well.
Peter, Per, i will update you with a new version today. I only need to check out Peters latest mods.

_________________
Mark
Back to top
View user's profile Visit poster's website
lander72

Bascom Member



Joined: 29 Jul 2007
Posts: 25
Location: Fraser Valley BC

canada.gif
PostPosted: Sat Mar 22, 2014 6:28 pm    Post subject: Reply with quote

Hi Peter,

I had a chance to look at the FT800 emulator, thanks for the link. A tutorial would be helpful from FTDI.

I am interested in the updates you did to the code. My mail is lander72 at shaw dot ca

Mark, very glad to see that you will be enhancing Peters code. I hope that you get a chance to put together an example
for graphics, touch, and sound similar to the BASCOM manual examples that are such a huge benefit for learning / understanding.

Regards Larry
Back to top
View user's profile
Per Svensson

Bascom Member



Joined: 03 Oct 2004
Posts: 235
Location: Gothenburg, Sweden

sweden.gif
PostPosted: Fri Mar 28, 2014 6:59 pm    Post subject: Reply with quote

I made a small demo showing the Power of this FT800 Graphics Engine driven by an Mega128 at 16MHz
Communication is 4MHz SPI
Resolution is 480x272 pix
All non Graphics programmed in BASCOM
Much of the low level hard work done thanks to Mark and Peter.


http://www.youtube.com/watch?v=3db_Mzy10JI

/Per
Back to top
View user's profile Visit poster's website
factorc

Bascom Member



Joined: 09 Sep 2007
Posts: 1

germany.gif
PostPosted: Mon Apr 21, 2014 4:15 pm    Post subject: Reply with quote

Hi.
Is there already something new because of the FT800 library ?
Back to top
View user's profile
PeterM

Bascom Member



Joined: 09 Jun 2008
Posts: 118

australia.gif
PostPosted: Mon Apr 21, 2014 5:10 pm    Post subject: Reply with quote

factorc

Aparently it's under development.

_________________
Peter
Back to top
View user's profile
apam

Bascom Member



Joined: 07 Sep 2009
Posts: 20

czechrepublic.gif
PostPosted: Wed Jun 25, 2014 7:24 pm    Post subject: Reply with quote

How does it look to the library for FT800?
Back to top
View user's profile
PeterM

Bascom Member



Joined: 09 Jun 2008
Posts: 118

australia.gif
PostPosted: Thu Jun 26, 2014 2:28 pm    Post subject: Reply with quote

apam

As mentioned in the previous post still under development so dates
are unfortunately unknown at the moment but for now, can you
give some examples of what you want to do ?

_________________
Peter
Back to top
View user's profile
apam

Bascom Member



Joined: 07 Sep 2009
Posts: 20

czechrepublic.gif
PostPosted: Sat Jun 28, 2014 11:23 pm    Post subject: Reply with quote

I am looking for information about the interrupts. I can not seem to adjust. First we set the global interrupt Reg_int_en, after set mask Reg_int_mask and then waits for a signal of INT pin to be able to read reg_int_flags

Code:

$regfile "M32def.dat"
...
Config Int0 = Rising
On Int0 Int_
Config Portd.2 = Input                                      'int0
Enable Int0
Enable Interrupts
...


Wr8 Reg_int_en , 1
Wr8 Reg_int_mask , &B11111111

...
int_:
   Ft800_interrupts = Rd8(reg_int_flags)
return

 


The int signall is all the time in low.
Does anyone know where is the error?
Back to top
View user's profile
PeterM

Bascom Member



Joined: 09 Jun 2008
Posts: 118

australia.gif
PostPosted: Sun Jun 29, 2014 10:56 am    Post subject: Reply with quote

In case there is some trick to it, I searched at some of FTDI's FT800 demos but I cannot
find any reference to how to use their Interrupts (except for reference in the Datasheet).

I wonder if you should email FTDI, but let me warn you a reply may take a while
(unless you call them).

I would not have thought you need to use Interrupts at this stage as you can do pretty much anything
with out them.

_________________
Peter
Back to top
View user's profile
apam

Bascom Member



Joined: 07 Sep 2009
Posts: 20

czechrepublic.gif
PostPosted: Sun Jun 29, 2014 1:08 pm    Post subject: Reply with quote

ok, do you know how to set Tag value in graphic objects? It is working correctly only for command cmd_keys. Other objects get 255. I do not know how to set it. Now i can use commands Cmd_spinner, Cmd_logo, Cmd_clock, Cmd_button, Cmd_gauge, Cmd_gradient, Cmd_keys, Cmd_callibrattion, all about sound and midi and commands in your example. At the moment I stand at interrupts and add a tag to objects.
Back to top
View user's profile
apam

Bascom Member



Joined: 07 Sep 2009
Posts: 20

czechrepublic.gif
PostPosted: Mon Jun 30, 2014 7:54 am    Post subject: Reply with quote

inserting a tag I already solved.
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  Next
Page 2 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