View previous topic :: View next topic |
Author |
Message |
albertsm
Joined: 09 Apr 2004 Posts: 5921 Location: Holland
|
Posted: Wed Mar 12, 2014 12:43 pm Post subject: |
|
|
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 |
|
|
PeterM
Joined: 09 Jun 2008 Posts: 118
|
Posted: Wed Mar 12, 2014 2:31 pm Post subject: |
|
|
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
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 |
|
|
Per Svensson
Joined: 03 Oct 2004 Posts: 235 Location: Gothenburg, Sweden
|
Posted: Wed Mar 12, 2014 3:46 pm Post subject: |
|
|
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 |
|
|
PeterM
Joined: 09 Jun 2008 Posts: 118
|
|
Back to top |
|
|
albertsm
Joined: 09 Apr 2004 Posts: 5921 Location: Holland
|
Posted: Tue Mar 18, 2014 11:45 am Post subject: |
|
|
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 |
|
|
lander72
Joined: 29 Jul 2007 Posts: 25 Location: Fraser Valley BC
|
Posted: Sat Mar 22, 2014 6:28 pm Post subject: |
|
|
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 |
|
|
Per Svensson
Joined: 03 Oct 2004 Posts: 235 Location: Gothenburg, Sweden
|
Posted: Fri Mar 28, 2014 6:59 pm Post subject: |
|
|
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 |
|
|
factorc
Joined: 09 Sep 2007 Posts: 1
|
Posted: Mon Apr 21, 2014 4:15 pm Post subject: |
|
|
Hi.
Is there already something new because of the FT800 library ? |
|
Back to top |
|
|
PeterM
Joined: 09 Jun 2008 Posts: 118
|
Posted: Mon Apr 21, 2014 5:10 pm Post subject: |
|
|
factorc
Aparently it's under development. _________________ Peter |
|
Back to top |
|
|
apam
Joined: 07 Sep 2009 Posts: 20
|
Posted: Wed Jun 25, 2014 7:24 pm Post subject: |
|
|
How does it look to the library for FT800? |
|
Back to top |
|
|
PeterM
Joined: 09 Jun 2008 Posts: 118
|
Posted: Thu Jun 26, 2014 2:28 pm Post subject: |
|
|
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 |
|
|
apam
Joined: 07 Sep 2009 Posts: 20
|
Posted: Sat Jun 28, 2014 11:23 pm Post subject: |
|
|
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 |
|
|
PeterM
Joined: 09 Jun 2008 Posts: 118
|
Posted: Sun Jun 29, 2014 10:56 am Post subject: |
|
|
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 |
|
|
apam
Joined: 07 Sep 2009 Posts: 20
|
Posted: Sun Jun 29, 2014 1:08 pm Post subject: |
|
|
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 |
|
|
apam
Joined: 07 Sep 2009 Posts: 20
|
Posted: Mon Jun 30, 2014 7:54 am Post subject: |
|
|
inserting a tag I already solved. |
|
Back to top |
|
|
|