Search found 104 matches

by Cyberzim
29 May 2012 10:30
Forum: mikroC PRO for PIC General
Topic: MMC_FAT_ReadN potential bug?
Replies: 4
Views: 1329

Re: MMC_FAT_ReadN potential bug?

Hi,
I will test this further when I have converted my breadboard to a pcb. I do have some problems with stability due to high speed operations, so a prober pcb layout could solve this.

Regards,

Simon H.A.
by Cyberzim
28 May 2012 11:45
Forum: mikroC PRO for PIC General
Topic: MMC_FAT_ReadN potential bug?
Replies: 4
Views: 1329

Re: MMC_FAT_ReadN potential bug?

Hello, I've got the compiler version 5.61. Okay, so I've got this functioning code: unsigned short MP3BUFFER[32]; void LoadBuffer() { int i; for(i = 0; i < 32; i++) MMC_FAT_Read(&MP3BUFFER[i]); } If I replace it with this: unsigned short MP3BUFFER[32]; void LoadBuffer() { MMC_FAT_ReadN(&MP3BUFFER, 3...
by Cyberzim
27 May 2012 18:04
Forum: mikroC PRO for PIC General
Topic: MMC_FAT_ReadN potential bug?
Replies: 4
Views: 1329

MMC_FAT_ReadN potential bug?

Hello, I've got some problems with the MMC_FAT_ReadN function. MMC_FAT_Read works just fine, but when I try to switch to MMC_FAT_ReadN, I don't get any valid data. I send data to a VS1011 mp3 decoder. It works perfectly fine with MMC_FAT_Read, but when I try to read 32 bytes at once I don't get any ...
by Cyberzim
23 Apr 2012 20:59
Forum: mikroC PRO for PIC General
Topic: SSD1963 controller problem
Replies: 12
Views: 7733

Re: SSD1963 controller problem

Okay, after a double check the corner is still black even with the random pixel that appears after initialization. It's pretty weird why it does so :S
by Cyberzim
23 Apr 2012 18:19
Forum: mikroC PRO for PIC General
Topic: SSD1963 controller problem
Replies: 12
Views: 7733

Re: SSD1963 controller problem

No suggestion at all? Here is my test code: /*This library is written for the SSD1963 LCD display controller. **Author: Simon H.A. **Device: PIC18F4455 **Speed: 48MHz (4 MHz crystal w. PLL) */ #define TDATA TRISB #define TDC TRISD.F4 #define TWR TRISD.F5 #define TCS TRISD.F6 #define TRST TRISD.F7 #d...
by Cyberzim
21 Apr 2012 13:15
Forum: mikroC PRO for PIC General
Topic: SSD1963 controller problem
Replies: 12
Views: 7733

Re: SSD1963 controller problem

Thank you very much! The delay was the only thing that kept me from initializing the display properly. After adding delay it is now fully working. Great regards, Simon H.A. Edit: I have a little problem. A tiny is black all the time. It's not a pixel error since it doesn't appear from the beginning:...
by Cyberzim
20 Apr 2012 15:08
Forum: mikroC PRO for PIC General
Topic: SSD1963 controller problem
Replies: 12
Views: 7733

Re: SSD1963 controller problem

After trying some different values I've finally made the display appear solid black after initialization. But I can't write any data to the display. Here is a code that should initialize the display and paint it fully red afterward: #define TDATA TRISB #define TDC TRISD.F4 #define TWR TRISD.F5 #defi...
by Cyberzim
19 Apr 2012 12:59
Forum: mikroC PRO for PIC General
Topic: SSD1963 controller problem
Replies: 12
Views: 7733

Re: SSD1963 controller problem

Yes, that was my first app note I tried to use (not the first code I posted). Didn't work at all.
My current initialization code is the closest I've got to make it functioning.

Regards,

Simon H.A.
by Cyberzim
19 Apr 2012 10:58
Forum: mikroC PRO for PIC General
Topic: SSD1963 controller problem
Replies: 12
Views: 7733

Re: SSD1963 controller problem

I'll take a look on it later today. The problem is, that my display, which is from Newhaven http://www.newhavendisplay.com/index.php?main_page=product_info&cPath=1_593&products_id=4304 doesn't supply with that much info. Nothing about how to initialize the display, and the appnotes doesn't either ha...
by Cyberzim
19 Apr 2012 00:37
Forum: mikroC PRO for PIC General
Topic: SSD1963 controller problem
Replies: 12
Views: 7733

Re: SSD1963 controller problem

Here is an updated version of my code. It gives me a different output but it's not functional yet. I have a doubt on how to set HSP and VSP. #define TDATA TRISB #define TDC TRISD.F4 #define TWR TRISD.F5 #define TCS TRISD.F6 #define TRST TRISD.F7 #define DATA PORTB #define DC PORTD.F4 #define WR PORT...
by Cyberzim
12 Apr 2012 17:53
Forum: mikroC PRO for PIC General
Topic: SSD1963 controller problem
Replies: 12
Views: 7733

SSD1963 controller problem

Hi, I've just started working with a 5,7" TFT display with the SSD1963 controller. But I have encountered a problem. I get random output on the screen. I will also note you that I accidently added 5V to the display and not 3.3V. But that doesn't seem to have broken the controller, since I only get t...
by Cyberzim
25 Jul 2010 23:03
Forum: mikroC PRO for PIC General
Topic: Low byte rate when reading MMC
Replies: 1
Views: 1234

Low byte rate when reading MMC

Hello, I'm developing a mp3-player with a QVGA color screen using SD-card for mp3-file storage. My problem is, that I can only read around 100kbytes/s which is not enough when I need to decode wav-files that has around 1400kbit/s or 180byte/s. How come it? I have 6K2 pull-up's on every dataline (CS,...
by Cyberzim
15 Jul 2010 15:09
Forum: mikroC PRO for PIC General
Topic: Problems w. division - unsigned long
Replies: 4
Views: 1595

Re: Problems w. division - unsigned long

Awesome!
That solved all my problems I had.

Thank you,

Simon H.A.
by Cyberzim
15 Jul 2010 01:01
Forum: mikroC PRO for PIC General
Topic: Problems w. division - unsigned long
Replies: 4
Views: 1595

Re: Problems w. division - unsigned long

Hi Slaviza, Haven't been able to answer for some time due to Roskilde festival and glandular fever. I use a number generated from the mmc_fat_reset function. In my testrun, the song had a filesize of 13MB. I'm using 'filesize' with the mmc_fat_reset and then copies the number to startsize so I have ...
by Cyberzim
24 Jun 2010 03:15
Forum: mikroC PRO for PIC General
Topic: Problems w. division - unsigned long
Replies: 4
Views: 1595

Problems w. division - unsigned long

Hi, I have a code for a time bar for my mp3-player used on a QVGA color touch screen. My problem is, when I do the calculation to determine how long I'm in the song, it wont give me any number but 0. Every variable here is a unsigned long. I have tested the code, and after I divide 'percent' with 's...

Go to advanced search