Search found 104 matches

by Cyberzim
25 Apr 2010 01:05
Forum: mikroC PRO for PIC General
Topic: Nokia 3310 lcd - cannot clear screen
Replies: 0
Views: 1016

Nokia 3310 lcd - cannot clear screen

Hello, I have successfully initialized a nokia 3310 lcd. But after the initialization, the display only shows a filled screen, and I cannot make it blank. It is a newer lcd, just so you know. Here is the code for the initialization: void set_xy_3310(unsigned short x, unsigned short y) { //Set cursor...
by Cyberzim
24 Feb 2010 00:15
Forum: mikroC PRO for PIC General
Topic: VS1011 mp3
Replies: 10
Views: 5833

Re: VS1011 mp3

Hi PeterA,
I tried to change the code back so they both run on the same busses beneath the cs pins.
I got the same result. It doesn't work.
Also thanks for the tip about the buffer write.
I'll guess we just have to live with, that we need 2 more I/O's to get it working.

Regards,

Simon H.A.
by Cyberzim
23 Feb 2010 18:16
Forum: mikroC PRO for PIC General
Topic: VS1011 mp3
Replies: 10
Views: 5833

Re: VS1011 mp3

After I have written my own spi code, I got no more problems. Well, I need to work on the speed, because I got some small crunchy sounds when playing at 128kbit/s, but not at 80kbit/s. Thank you a lot PeterA for your support. Without you I would never had made it work. Edit: By chaning delay_cyc wit...
by Cyberzim
23 Feb 2010 17:15
Forum: mikroC PRO for PIC General
Topic: VS1011 mp3
Replies: 10
Views: 5833

Re: VS1011 mp3

Hi, Now my pic runs at 40 MHz, and I have again tested that it can init and find my file on the sd card and also make a test tone. But it still wont work. The only sound I get is some scrambling sound that comes in intervals. Also I have discovered, that when I just touch any connection on the bread...
by Cyberzim
22 Feb 2010 21:46
Forum: mikroC PRO for PIC General
Topic: VS1011 mp3
Replies: 10
Views: 5833

VS1011 mp3

Hello, I have succesfully tested the sinewave tone with the VS1011, so now I want to play a mp3 song. I have some problems, it wont play anything. The mp3 file is 32kbit rate and the pic18f2685 runs at 16MHz. I have called the file 001.mp3 and I have tested that it can find the file and read 32 byte...
by Cyberzim
18 Feb 2010 13:26
Forum: mikroC PRO for PIC General
Topic: VS1011 - pinouts
Replies: 12
Views: 4939

Re: VS1011 - pinouts

Awesome, now it works with div/4 @ 16 MHz ; )
Now I can begin to decode mp3 files.
I hope I wont have to ask again, but we will see.

Regards,

Simon H.A.
by Cyberzim
18 Feb 2010 01:37
Forum: mikroC PRO for PIC General
Topic: VS1011 - pinouts
Replies: 12
Views: 4939

Re: VS1011 - pinouts

I got it working now! Thanks for all the effort you had shown making this work. But it does only work when master_osc is div/64. That is very slow for only 4 MHz MCU speed. I got onboard 12.288 MHz crystal with VS1011. How do I send clock command so it doubles the operating clock cycle? I don't quit...
by Cyberzim
17 Feb 2010 19:03
Forum: mikroC PRO for PIC General
Topic: VS1011 - pinouts
Replies: 12
Views: 4939

Re: VS1011 - pinouts

Hi again. Still no results. I'm getting really crazy because it wont work :S #define cs portb.f0 #define dreq portb.f1 #define reset portb.f2 #define bsync portb.f3 void VS1011_data(unsigned short data_out) { bsync = 1; spi1_write(data_out); bsync = 0; } void VS1011_write(unsigned short adress, unsi...
by Cyberzim
17 Feb 2010 17:10
Forum: mikroC PRO for PIC General
Topic: VS1011 - pinouts
Replies: 12
Views: 4939

Re: VS1011 - pinouts

I tried what you suggested, but It won't work at all.
What about the interface?
Are there supposed to be any pull-ups/pull-downs on the data lines?

Regards,

Simon H.A.
by Cyberzim
17 Feb 2010 12:00
Forum: mikroC PRO for PIC General
Topic: VS1011 - pinouts
Replies: 12
Views: 4939

Re: VS1011 - pinouts

Hi, Thanks for the response. I wrote a code based on what you posted PeterA. It worked once and almost blowed my ears off, but now when I restart the circuit, it won't work anymore. Here is the code I wrote: #define cs portb.f0 #define dreq portb.f1 #define reset portb.f2 void VS1011_data(unsigned s...
by Cyberzim
17 Feb 2010 00:49
Forum: mikroC PRO for PIC General
Topic: VS1011 - pinouts
Replies: 12
Views: 4939

VS1011 - pinouts

Hello, I'm trying to make the VS1011 work using this board: http://www.sparkfun.com/commerce/product_info.php?products_id=8819 But I don't really understand what pinouts should be used and not. As far as I know from the datasheets I have these pinouts: CS - Chip select (Activated low) SCLK - Serial ...
by Cyberzim
07 Jan 2010 15:44
Forum: mikroC PRO for PIC General
Topic: Digital pot interface.
Replies: 4
Views: 3393

Hi Mince-n-Tatties, Well, I use it as a passive volume control for my class-D ampifier. I have the output from the digipot grounded with a 2K7 ohm resistor to provide almost none output when the volume is 0%. Also there is a 1st order low-pass filter at 230Hz to provide extra bass, since I use full-...
by Cyberzim
05 Jan 2010 23:56
Forum: mikroC PRO for PIC General
Topic: Digital pot interface.
Replies: 4
Views: 3393

Hmm.. image didn't work, you can just get url then.

http://imageshack.dk//viewimage.php?fil ... Y32058.jpg
by Cyberzim
05 Jan 2010 23:55
Forum: mikroC PRO for PIC General
Topic: Digital pot interface.
Replies: 4
Views: 3393

Alright, problem is solved. You can have both digipots controlled with the same I/O. I took some breakout boards I had made and then tested it on breadboard and it works. It must be my board then, probably because my layout is very very tiny as you can see on the picture, and therefore there could b...
by Cyberzim
05 Jan 2010 22:29
Forum: mikroC PRO for PIC General
Topic: Digital pot interface.
Replies: 4
Views: 3393

Digital pot interface.

Hello, I'm making a volumecontrol for my sound system. Since it is stereo, i'm using 2 digital potentiometers that uses the U/D protocol. CS and U/D pins are connected together and then to the microcontroller. My problem is, that one of them are working great, but the other one doesn't. I got low vo...

Go to advanced search