Again wishes for the Glcd..

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 4.
To post in this forum you must have a registered copy of Flowcode 4 or higher. To sign up for this forum topic please use the "Online Resources" link in the Flowcode Help Menu.

Moderator: Benj

Mikat
Posts: 258
Joined: Wed Nov 29, 2006 6:32 pm
Location: Finland
Has thanked: 7 times
Been thanked: 36 times
Contact:

Re: Again wishes for the Glcd..

Postby Mikat » Tue Dec 20, 2011 7:07 am

Martin, did you change the target processor at 30f4013?
Because the c file has line:
#define P30F2011
The warning about undefined and unused variables can ignored, I remove those later...
But all the errors seems to be at port a...

Mika

User avatar
medelec35
Valued Contributor
Valued Contributor
Posts: 8809
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2553 times
Been thanked: 3712 times
Contact:

Re: Again wishes for the Glcd..

Postby medelec35 » Tue Dec 20, 2011 11:14 am

Ahh Silly me, your correct, Just compiled while 1/2 a sleep (normal night time state) sorry about that.
More awake now! After removing port, changing to correct device this time and adding a port set at PORTF_L (I'm am assuming its SD01 your interested in)
Compiles with no problem at all

I'm guessing whole of PORTF_L is correct, Can you let me know if you want just want me to set single bit 3 of PORTF_L (that's if I have got it right), and I will repost

Also I would of thought you would want an i/p for receiving spi commands (but that could be set up in custom code?), but I have not and much to do with SPI, that will change soon.

Martin
Attachments
Flowcode1.c
(27.58 KiB) Downloaded 181 times
Flowcode1.hex
(27.97 KiB) Downloaded 125 times
Martin

If you read a post that is useful, please show appreciation by clicking on thumbs up Icon.

Mikat
Posts: 258
Joined: Wed Nov 29, 2006 6:32 pm
Location: Finland
Has thanked: 7 times
Been thanked: 36 times
Contact:

Re: Again wishes for the Glcd..

Postby Mikat » Tue Dec 20, 2011 2:11 pm

Sorry I have messed with the files...
The file what I post to you was directly imported at flowcode for pic, and has wrong port assigns...
Lets try again, this should be right version...And the port assign shoul be ok, just change the target processor to 30f4013...


Mika
Attachments
ssd1289 test 16bit.fcf_pic16
(10.5 KiB) Downloaded 185 times

User avatar
medelec35
Valued Contributor
Valued Contributor
Posts: 8809
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2553 times
Been thanked: 3712 times
Contact:

Re: Again wishes for the Glcd..

Postby medelec35 » Tue Dec 20, 2011 2:24 pm

No problem.

Change to 30F4013 and compiles with no errors.

Hope it works for you.

Martin
Attachments
ssd1289 test 16bit.c
(27.45 KiB) Downloaded 188 times
ssd1289 test 16bit.hex
(27.89 KiB) Downloaded 121 times
Martin

If you read a post that is useful, please show appreciation by clicking on thumbs up Icon.

Mikat
Posts: 258
Joined: Wed Nov 29, 2006 6:32 pm
Location: Finland
Has thanked: 7 times
Been thanked: 36 times
Contact:

Re: Again wishes for the Glcd..

Postby Mikat » Tue Dec 20, 2011 3:45 pm

Here is the result....
255 frames at 14 sec = 18 frames per second@33MIPS...
So the 16bit runs that code abut double speed/MIPS vs. 8bit..

Mika

User avatar
medelec35
Valued Contributor
Valued Contributor
Posts: 8809
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2553 times
Been thanked: 3712 times
Contact:

Re: Again wishes for the Glcd..

Postby medelec35 » Tue Dec 20, 2011 3:54 pm

That's interesting.
So good thing about 16bit not only a quicker refresh time for Glcd but the superior mathematical functions. So rather than using look up tables for thermistors, the temperature can be calculated directly by using beta value directly into a formula.
Hmm.
Me thinks gonna play more with 16Bit. :)

Thanks for the inspiration Mika


Martin
Martin

If you read a post that is useful, please show appreciation by clicking on thumbs up Icon.

Mikat
Posts: 258
Joined: Wed Nov 29, 2006 6:32 pm
Location: Finland
Has thanked: 7 times
Been thanked: 36 times
Contact:

Re: Again wishes for the Glcd..

Postby Mikat » Tue Dec 20, 2011 4:18 pm

Yep..
Id like to upload video but the board won't allow load the avi file....
But the text is the same which is in the earlier pictures, and the refresh is about 18 fps, and that is at 33MIPS, think about 24F ep series 80MIPS :P .

Mika

User avatar
Benj
Matrix Staff
Posts: 14786
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4750 times
Been thanked: 4358 times
Contact:

Re: Again wishes for the Glcd..

Postby Benj » Tue Dec 20, 2011 5:44 pm

Hi Mika,

To upload a video, upload to Youtube and then paste the link onto the forums.
I'm afraid we don't have that kind of bandwidth on our server to host videos directly.

There is also a way to embed the youtube video directly onto the page if you like using the new youtube button available when creating or editing a post.

Mikat
Posts: 258
Joined: Wed Nov 29, 2006 6:32 pm
Location: Finland
Has thanked: 7 times
Been thanked: 36 times
Contact:

Re: Again wishes for the Glcd..

Postby Mikat » Tue Dec 20, 2011 6:38 pm

Yep, maybe later, and maybe in the Tell us about your projects tread more about the tft, and the touchscreen, I update my projects there when I have time...
But now the ssd1289 code works bot the 8bit and the 16 bit devices, but the 16bit are little bit problematic because the style of the ports...

Mika

Mikat
Posts: 258
Joined: Wed Nov 29, 2006 6:32 pm
Location: Finland
Has thanked: 7 times
Been thanked: 36 times
Contact:

Re: Again wishes for the Glcd..

Postby Mikat » Wed Dec 21, 2011 7:29 am

Hello.
Here is both of the custom components, the 8bit and 16bit.
Unfortunately the 16bit works only at the devices which are pin to pin compatible at 30f4013, and connected data port b and d command port f(if I remember right, the port should be like my example/test file above)...
The problem at 16bit devices are that the port width changes between the devices, so each type of port configuration need own path..
But later I will update the 16bit component that way that it uses single 16bit port for data, but that is only 64 pins and over devices, actually that update is quite easy..
And the ILI9325 support should be done too..
But here is the components, the 8bit is fixed version...
By the way, Ben you say that internal CAN don't work at PIC24 devices in 16bit flowcode, is that the thing at the version 5 too?
And does that mean that the thing is same at dspic33 devices, I think that it uses same CAN module as the 24F...

Mika
Attachments
PIC16BIT_Custom2.c
16 bit
(27.05 KiB) Downloaded 200 times
PIC_Custom2.c
8 bit
(78.36 KiB) Downloaded 202 times
These users thanked the author Mikat for the post:
STibor (Mon Apr 09, 2012 6:55 am)
Rating: 5%
 

Mikat
Posts: 258
Joined: Wed Nov 29, 2006 6:32 pm
Location: Finland
Has thanked: 7 times
Been thanked: 36 times
Contact:

Re: Again wishes for the Glcd..

Postby Mikat » Fri Dec 30, 2011 8:42 pm

Okay, I promised you some video, so here is 30F4013 running tha code at 33MIPS......
And here some action with the touchscreen, 18F6680 @ 10MIPS...



Mika
These users thanked the author Mikat for the post (total 2):
Benj (Mon Feb 20, 2012 11:20 am) • medelec35 (Wed Feb 22, 2012 12:01 am)
Rating: 10%
 

Mikat
Posts: 258
Joined: Wed Nov 29, 2006 6:32 pm
Location: Finland
Has thanked: 7 times
Been thanked: 36 times
Contact:

Re: Again wishes for the Glcd..

Postby Mikat » Sun Feb 19, 2012 8:59 pm

Hi all.
Little update for the component.
Here is "new" version of the 16bit ssd1289 component, it has fixed bug for invert color print, and the port config allows now all configuration between one 16 bit wide to 1/15 and 15/ bit,all what it need is set 2 variables at the program start...
The Port_hi_mask and Port_lo_mask, those variables are used masking away the port hi and port lo pins, which are not use at the tft component...
Like this way:
If the tft is connected at port b 0-9 and port d 10-15
The Port_lo_mask is 0b0000001111111111 = 0x03FF (portb)
and Port_hi_mask is 0b1111110000000000 = 0xFC00 (portd)
So at the program star should place c-code block like this
Port_hi_mask = 0xFC00;
Port_lo_mask = 0x03FF;
So that way the component don't drive the pins which are 0 at the mask binary..
Actually the code should allow to use ports any way as long there is max 2 ports and all the bits from 0 to 15 are used, so the configuration could like the odd bits on one and the even bits on other port, just mask out the unused bits...
Btw. the display run very nice and quick at the dsPIC30F@100MHz, it's about 5 times faster than 18F@40MHz :P ..

Mika
Attachments
PIC16BIT_custom2.c
(27.64 KiB) Downloaded 166 times
These users thanked the author Mikat for the post (total 2):
Benj (Mon Feb 20, 2012 11:20 am) • medelec35 (Wed Feb 22, 2012 12:02 am)
Rating: 10%
 

User avatar
STibor
Posts: 262
Joined: Fri Dec 16, 2011 3:20 pm
Has thanked: 115 times
Been thanked: 112 times
Contact:

Re: Again wishes for the Glcd..

Postby STibor » Mon Apr 09, 2012 7:04 am

Hi Mikat!
Thanks for the help so far!
Pic18f4550 and Flowcode4 Flowcode5 and works perfectly with your program.
How could a "bmp" image displayed on the SSD1289?
Attachments
glcd.jpg
glcd.jpg (109.17 KiB) Viewed 6749 times

User avatar
Benj
Matrix Staff
Posts: 14786
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4750 times
Been thanked: 4358 times
Contact:

Re: Again wishes for the Glcd..

Postby Benj » Tue Apr 10, 2012 10:11 am

Hello,

For a bitmap you could store the data into the program memory on a byte by byte basis if you have enough memory available to do this.

Other alternative methods are to stream the data in eg via a serial connection from a VB program running on a PC and maybe store the data into an external EEPROM device so you can use it later.

Another option may be to stream the data from a SD card or other memory device.

Mikat
Posts: 258
Joined: Wed Nov 29, 2006 6:32 pm
Location: Finland
Has thanked: 7 times
Been thanked: 36 times
Contact:

Re: Again wishes for the Glcd..

Postby Mikat » Fri Apr 13, 2012 7:24 pm

Little update for the project, I just managed to get the Ilitek ILI9325 (used most of the 2.4 inc tft displays) driver working, so far it's only at the 16bit, but I post the updated file here soon as I managed to combine both drivers at the same component..
Ben what is the schedule of the flowcode5 for dspic?

Mika

User avatar
STibor
Posts: 262
Joined: Fri Dec 16, 2011 3:20 pm
Has thanked: 115 times
Been thanked: 112 times
Contact:

Re: Again wishes for the Glcd..

Postby STibor » Sun Apr 15, 2012 7:56 pm

Hi!
Dealt with the little screen.
Flowcode5 was made. Unfortunately, the huge size of the program.
Resolution:240*160 color depth:1bit.
Attachments
glcd_bmp_8_160_160.rar
(12.4 KiB) Downloaded 213 times
HPIM9986.jpg
HPIM9986.jpg (133.54 KiB) Viewed 6695 times
These users thanked the author STibor for the post:
Benj (Mon Apr 16, 2012 11:06 am)
Rating: 5%