Search found 2800 matches

by Panu
Yesterday 9:24
Forum: VS1010 Forum
Topic: VS1010 utility programs
Replies: 11
Views: 5481

Re: VS1010 utility programs

DLXINFO, utility to print info about executables and check that firmware files have not been corrupted:

viewtopic.php?f=15&t=2733&p=13928#p13928
by Panu
Yesterday 9:21
Forum: System Software
Topic: VS1053b I2S output to Esp32
Replies: 4
Views: 25

Re: VS1053b I2S output to Esp32

Hi!

The VS1053 outputs 16 bits per sample. Can the ESP32 receive I2S frames that have only 2 x 16 bits?

-Panu
by Panu
Tue 2021-02-23 12:47
Forum: VS1010 Forum
Topic: Safely storing application settings in the flash
Replies: 1
Views: 456

Safely storing application settings in the flash

Saving application settings in the flash across power off conditions is a common need in VS1010 applications. There are two questions involved in implementing this functionality: 1) where to store the application settings in the RAM and 2) how to safely load and store that application state persiste...
by Panu
Fri 2021-02-19 6:48
Forum: VS1010 Forum
Topic: LF: VS1010D example code for timer & GPIO interrupts
Replies: 6
Views: 679

Re: LF: VS1010D example code for timer & GPIO interrupts

Thank you for your kind words, glad that it works!

Good luck!

-Panu
by Panu
Thu 2021-02-18 16:12
Forum: VS1010 Forum
Topic: GPIOs 2.0 - 2.2 playing USB audio
Replies: 1
Views: 111

Re: GPIOs 2.0 - 2.2 playing USB audio

Here's all the ROM code that writes to GPIO2 pins: usbaudio3.c: __y void *DoSetInterfaceAudio(int k) { GpioSetPin(0x20,0); GpioSetPin(0x21,0); GpioSetPin(0x22,0); if (usp.d.setup.value != 0) { // Any USB audio interface setting except 'no audio' GpioSetPin(0x22,1); } voaudio.c: case IOCTL_AUDIO_SET_...
by Panu
Tue 2021-02-16 8:18
Forum: VS1010 Forum
Topic: LF: VS1010D example code for timer & GPIO interrupts
Replies: 6
Views: 679

Re: LF: VS1010D example code for timer & GPIO interrupts

Here's the interrupt version of the above program. It sets up GPIO1 controller to fire an interrupt from the falling edge of bit 3 and the interrupt handler. volatile u_int32 lastInterval; volatile int interruptOccurred; #pragma interrupt y 0x28 void MyGpio1InterruptHandler(void) { lastInterval = Ca...
by Panu
Tue 2021-02-16 7:44
Forum: VS1010 Forum
Topic: LF: VS1010D example code for timer & GPIO interrupts
Replies: 6
Views: 679

Re: LF: VS1010D example code for timer & GPIO interrupts

Hi! Here's the first part of the answer - the timer part without interrupts. It's easier to concentrate first on the timer before tackling the interrupts. The first version of the program sets up timer 1 and then goes into a loop waiting for the button to be pressed. At each press, it prints out the...
by Panu
Mon 2021-02-15 9:22
Forum: VS1010 Forum
Topic: LF: VS1010D example code for timer & GPIO interrupts
Replies: 6
Views: 679

Re: LF: VS1010D example code for timer & GPIO interrupts

Hi!

I'll take a look, but you do realize that it's the chip select of the SPI flash, don't you? So if you use the flash, horrible things will happen.

-Panu
by Panu
Fri 2021-02-12 13:18
Forum: VS1010 Forum
Topic: Reducing Power Draw on the VS1010
Replies: 3
Views: 301

Re: Reducing Power Draw on the VS1010

Here's version 2. It's a little more elaborate, and still experimental. It adds a few commands; tvoff to switch off the SPI1 TV-Out, crawl to divide xtali by 512, making the core run at 24 kHz, i2soff to switch off i2s, and shell , which is an experimental internal shell that keeps the core at crawl...
by Panu
Thu 2021-02-11 16:08
Forum: VS1010 Forum
Topic: Reducing Power Draw on the VS1010
Replies: 3
Views: 301

Re: Reducing Power Draw on the VS1010

Hi! I've been solving this parallel with Hannu, here's my take. Generally power consumption problems need to be solved on a board by board basis, so I made a program, power.dlx, that has various functions that you can try one after another, to find a combination that works best for you. My best achi...