Search found 175 matches

by cobra1
Thu Dec 08, 2011 5:28 pm
Forum: Flowcode V2 & V3
Topic: .Bmp to LCD ??
Replies: 52
Views: 22495

Re: .Bmp to LCD ??

Hi Ben, I just downloaded your demo of dsPIC, it only has 1 PIC listed in the devices. Is this just because its a demo?? I was just going to see what differences there were to these port registers, is it just like changing "porta" to "PORTA" etc Also from your last post, what do you mena by typecast...
by cobra1
Thu Dec 08, 2011 1:48 pm
Forum: Flowcode V2 & V3
Topic: .Bmp to LCD ??
Replies: 52
Views: 22495

Re: .Bmp to LCD ??

Hi guys Ok. Just thought I would update on progress. I have the SD card working in PLL but not at full speed. Thanlks Ben for the pointer. Although its working its still painfully slow at loading my images. The screen currently loads 6 images measiring 90x90 pixels and it takes about 2 seconds I am ...
by cobra1
Thu Dec 01, 2011 11:43 pm
Forum: Flowcode V2 & V3
Topic: .Bmp to LCD ??
Replies: 52
Views: 22495

Re: .Bmp to LCD ??

Hi jonny, Your on late, didnt expect a reply yet. It appears my EEPROM isnt big enough, only 125kb so thats not good since i require 3 images to be loaded at various points in the program. I just wanted to see if you could answer something for me, before trying anything else. Using the FAT component...
by cobra1
Thu Dec 01, 2011 7:15 pm
Forum: Flowcode V2 & V3
Topic: .Bmp to LCD ??
Replies: 52
Views: 22495

Re: .Bmp to LCD ??

Hi, With Mikat's help i we have come to the conclusion that the FAT macros are slowing the screen write down too much, fastest i can get is 8 seconds, i tried low resolution but it really does look awful. I was thinking that maybe a EEPROM might be faster, although it still uses the SPI. I would lik...
by cobra1
Wed Nov 30, 2011 4:30 pm
Forum: Flowcode V2 & V3
Topic: .Bmp to LCD ??
Replies: 52
Views: 22495

Re: .Bmp to LCD ??

Mika. When updating the LCD it starts with the pixel in the lower left corner and scans horizontally moving up a line at a time. For some reason bitmaps are stored upside down
by cobra1
Tue Nov 29, 2011 3:10 pm
Forum: Flowcode V2 & V3
Topic: .Bmp to LCD ??
Replies: 52
Views: 22495

Re: .Bmp to LCD ??

Just out of interest. Would a PIC24 run this any faster? If it would I would consider buying flowcode fo pic24. If I could use pic24 would I need any modifications to this code?
by cobra1
Tue Nov 29, 2011 1:52 pm
Forum: Flowcode V2 & V3
Topic: .Bmp to LCD ??
Replies: 52
Views: 22495

Re: .Bmp to LCD ??

Ok cool ill see how fast it is with this mod and get back to you :)
by cobra1
Tue Nov 29, 2011 1:35 pm
Forum: Flowcode V2 & V3
Topic: .Bmp to LCD ??
Replies: 52
Views: 22495

Re: .Bmp to LCD ??

That's great. Thanks. Just one thing. Do is till save the image in 16 bit. Or 256 colour?
by cobra1
Tue Nov 29, 2011 11:47 am
Forum: Flowcode V2 & V3
Topic: .Bmp to LCD ??
Replies: 52
Views: 22495

Re: .Bmp to LCD ??

Also 256 colour would be ok too
by cobra1
Tue Nov 29, 2011 11:21 am
Forum: Flowcode V2 & V3
Topic: .Bmp to LCD ??
Replies: 52
Views: 22495

Re: .Bmp to LCD ??

Hi jonny

I might be able to sacrifice resolution for speed. Hopefully it won't look too bad.

I don't suppose I could be cheeky and ask for a guide on how to make this extra macro?
by cobra1
Mon Nov 28, 2011 11:48 pm
Forum: Flowcode V2 & V3
Topic: .Bmp to LCD ??
Replies: 52
Views: 22495

Re: .Bmp to LCD ??

Hi jonny, I removed the load pixel macro from the loop and set it away, it fills the screen with pixels in about 1 second. So i think that rules out the LCD writes being a problem. I moved the force load to where you said and the screen definatly loads much faster :) about 8-10 seconds. I still dont...
by cobra1
Mon Nov 28, 2011 9:16 pm
Forum: Flowcode V2 & V3
Topic: .Bmp to LCD ??
Replies: 52
Views: 22495

Re: .Bmp to LCD ??

Ok, just a bit of an update. I have got the .bmp displaying on the screen properly, had to save it in 16 bit, which isnt all that easy because not many programs support it. Altered the colours to RGB565 so thats all good now. Only thing is now i cant figure out how to make it update the screen faste...
by cobra1
Mon Nov 28, 2011 6:23 pm
Forum: Flowcode V2 & V3
Topic: .Bmp to LCD ??
Replies: 52
Views: 22495

Re: .Bmp to LCD ??

ok, it looks like i might be almost there. I have got it to display the picture on the LCD :) There is a couple of small problems, 1: the picture is being printed 4 times across the bottom 1/4 of the screen, after about a 1/4 of the way up it turns to jargon, just random coloured pixels. 2: the colo...
by cobra1
Mon Nov 28, 2011 6:06 pm
Forum: Flowcode V2 & V3
Topic: .Bmp to LCD ??
Replies: 52
Views: 22495

Re: .Bmp to LCD ??

Ok, i made the changes you suggested and now it initialises and then tries to open the file, when trying to open the file i get a retval "11"

I cant get it to go past this part.
by cobra1
Sun Nov 27, 2011 1:09 pm
Forum: Flowcode V2 & V3
Topic: .Bmp to LCD ??
Replies: 52
Views: 22495

Re: .Bmp to LCD ??

Hi Jonny, i tried to follow your flowcharts, but i think im getting a bit stuck with the load_pixel macro, i think i might have messed it up, what i did was changed the fat_file_offset variable to pixel variable in a new macro, so i have 3 macros in total. Load Bitmap Load Word Load Pixel i have att...
by cobra1
Sat Nov 19, 2011 9:17 am
Forum: Flowcode V2 & V3
Topic: Audio streaming
Replies: 20
Views: 8506

Re: Audio streaming

Hi ben.

I am currently running it at 16Mhz in PLL mode. Giving me a speed of 64Mhz. I am also using the fat component.
by cobra1
Fri Nov 18, 2011 2:51 pm
Forum: Flowcode V2 & V3
Topic: Audio streaming
Replies: 20
Views: 8506

Re: Audio streaming

Hi. So iv been trying different things and still can't get rid of this crappy sound. I had a chat with a few friends and they say it might be better to read the audio directly from an array at the cost of program memory. Since I have loads of memory I think this is a better option. However since the...
by cobra1
Tue Nov 15, 2011 11:22 pm
Forum: Flowcode V2 & V3
Topic: Audio streaming
Replies: 20
Views: 8506

Re: Audio streaming

Hi Ben, Ok, so i played with the buffers a bit, when altering one buffer i balanced the other out to always give 512. So heres what happened, when reducing the bytes in the buffer below around 100 bytes i heard a prominent clicking, this is as described in your article, if i increase the bytes in th...
by cobra1
Mon Nov 14, 2011 3:39 pm
Forum: Flowcode V2 & V3
Topic: Audio streaming
Replies: 20
Views: 8506

Re: Audio streaming

What do you mean by changing the normal buffer toi match? I thought there was just one buffer which is the part that loops 112 times. Am I missing something ?
by cobra1
Mon Nov 14, 2011 2:19 pm
Forum: Flowcode V2 & V3
Topic: Audio streaming
Replies: 20
Views: 8506

Re: Audio streaming

When you say change the number of bytes do you mean the number of times it loops?
by cobra1
Mon Nov 14, 2011 1:35 pm
Forum: Flowcode V2 & V3
Topic: Audio streaming
Replies: 20
Views: 8506

Re: Audio streaming

Hi Ben Thanks for your reply. I read that part of the article, I know its the buffer that stops the noise. Problem is there's not really much in the buffer part of the code to change. Its just a loop really. One thing I did notice that I jusyt wanted to check was whencompiling I get an error saying ...
by cobra1
Mon Nov 14, 2011 12:08 am
Forum: Flowcode V2 & V3
Topic: Audio streaming
Replies: 20
Views: 8506

Re: Audio streaming

Ok, no problem, thank you for looking anyhow.
by cobra1
Sun Nov 13, 2011 9:27 pm
Forum: Flowcode V2 & V3
Topic: Audio streaming
Replies: 20
Views: 8506

Re: Audio streaming

Ok, so i have increased the speed upto 64Mhz incase it was a speed issue. Some of the static noise has gone, but there is a prominent clicking noise while streaming. The clicking sounds like static, think of an old LP playing, its thats sort of noise but it has a sort of frequency. By that i mean li...
by cobra1
Sun Nov 13, 2011 8:08 pm
Forum: Flowcode V2 & V3
Topic: Audio streaming
Replies: 20
Views: 8506

Re: Audio streaming

Hi spanish dude,

Its the one found here:

http://www.matrixmultimedia.com/mmforum ... ming#p9320
by cobra1
Sun Nov 13, 2011 4:22 pm
Forum: Flowcode V2 & V3
Topic: Audio streaming
Replies: 20
Views: 8506

Re: Audio streaming

A little bit of progress made, because i have dropped the frequency to 19.6608Mhz, it resulted in the PWM frequency dropping into the audiable range. I have altered the PWM slightly to put it outside audio range. That takes care of the high pitch squealing. I have still not been able to get rid of t...