Search found 1968 matches

by pasi
Today 9:09
Forum: VS1010 Forum
Topic: VS1010 Create PWM with GPIO1_7 for Fading LED effect on Startup
Replies: 1
Views: 5

Re: VS1010 Create PWM with GPIO1_7 for Fading LED effect on Startup

You can try the below "advanced pulse density modulation" version I made a few weeks back. I modified it to use GPIO1, that part is untested. void DeClickIO1(register __c0 s_int16 start, register __c1 s_int16 speed, register __d0 s_int16 bitNum); Call DeClickIO1(0x7fff, -16, 7); to fade GP...
by pasi
Sat 2022-05-21 11:31
Forum: VS1010 Forum
Topic: VS1010D USB DAC supports IPAD and IPH?
Replies: 1
Views: 13

Re: VS1010D USB DAC supports IPAD and IPH?

Does iOS support standard USB Audio Devices? To my knowledge, yes.
by pasi
Thu 2022-05-19 10:05
Forum: Microcontroller Software
Topic: Mikromedia PIC24FJ256GB110 VS1053
Replies: 18
Views: 309

Re: Mikromedia PIC24FJ256GB110 VS1053

in the Initialisation software I write the below to SCI_CLOCKF. WriteSci(SCI_CLOCKF, HZ_TO_SC_FREQ(12288000)); This sets the base XTALI value, but not the internal clock multiplier (PLL). The vs1053b will then run with 1.0x clock, which is not enough for higher bitrates and samplerates in stereo. 1...
by pasi
Wed 2022-05-18 13:37
Forum: Microcontroller Software
Topic: Mikromedia PIC24FJ256GB110 VS1053
Replies: 18
Views: 309

Re: Mikromedia PIC24FJ256GB110 VS1053

If it's slow, then either: - The decoder is not decoding it quickly enough. Do you have SCI_CLOCKF set? E.g. 2.5x should be enough for vs1053b to decode all mp3 files. - You're not providing the data quickly enough. What's your storage? After you have written SCI_CLOCKF, you can probably increase yo...
by pasi
Wed 2022-05-18 12:11
Forum: Microcontroller Software
Topic: Mikromedia PIC24FJ256GB110 VS1053
Replies: 18
Views: 309

Re: Mikromedia PIC24FJ256GB110 VS1053

If your DREQ handling works, you should not need to "time" the data transfer. Just check DREQ before sending each 32 bytes, and wait if it's low. Reread your code carefully -- you may think you're checking DREQ, but an extra or missing parenthesis or semicolon might change the meaning of y...
by pasi
Sat 2022-05-14 11:44
Forum: Microcontroller Software
Topic: nrf52 master VS1053 slave
Replies: 2
Views: 33

Re: nrf52 master VS1053 slave

Hi, The first things to check are that - You don't have xCS and xDCS asserted (low) at the same time. - xTEST is pulled high or connected to IOVDD. - The SPI clock speed is low enough with the correct clock polarity. After reset you should get values from SCI_MODE, SCI_STATUS, and SCI_AUDATA without...
by pasi
Fri 2022-05-13 9:25
Forum: DSP and Audio Software
Topic: Change Speed of MP3 file
Replies: 10
Views: 913

Re: Change Speed of MP3 file

SCI_AUDATA sets the samplerate the playback is performed at. SCI_CLOCKF tells the system what is the XTAL (input) frequency, and the samplerate control value is calculated from that and the current desired samplerate. If you "lie" about the XTAL frequency, the control value is off by the c...
by pasi
Thu 2022-05-12 14:49
Forum: DSP and Audio Software
Topic: Change Speed of MP3 file
Replies: 10
Views: 913

Re: Change Speed of MP3 file

Hi, It seems to me could do all this by keeping a sine wave of the desired frequency playing using sinetest, and then just adjust the volume of each channel (two vs10xx). You can use volume of e.g. -90dB to "turn off" the sine of other channels, and set 0dB on the one that should output th...
by pasi
Wed 2022-05-11 11:22
Forum: DSP and Audio Software
Topic: Change Speed of MP3 file
Replies: 10
Views: 913

Re: Change Speed of MP3 file

I read in previous comment and in the datasheet about using SCI_AUDATA or SCI_CLOCKF or the samplerate finetune control. So sounds like you can speed up playback by either altering the samplerate or the microcontroller's clock frequency? Does this change the pitch or only the speed? Playing the sam...
by pasi
Tue 2022-05-10 12:11
Forum: Microcontroller Software
Topic: Mikromedia PIC24FJ256GB110 VS1053
Replies: 18
Views: 309

Re: Mikromedia PIC24FJ256GB110 VS1053

If it takes no time, print the length parameter in LoadPlugin() to see that it is correct.

You could perhaps try without loading the patches package to get everything working first.