I've been trying to interface a 28X1 to a VS1002 MP3 chip via the PICAXE's SPI port, but despite all my efforts, I've come up empty. My program runs fine (setting IO states etc) and gets though the HSPISETUP command (I've tried several configuration options for this command as well with no luck) but as soon as it hits the HSPIOUT command the program "dies". It appears that I am encountering the "error" timeout of the SPI port with the system resetting itself every couple of seconds.
What should the state of the serial input pin (SDI) be? I don't quite understand the concept of the SDO pin having to be "in the expected default state". The timing diagram in the 16F886 (Figure 13-2) seems to show a "mid-state" between high and low and upon power up, the VS1002 has a voltage of 1.64V on its SO (SPI output) pin, or roughly Vdd/2. Aside, would such a default state change depending on the SPI mode configuration?
I don't have a logic analyser or oscilloscope but as far as I can tell, there are no signals coming out from the SDO or SCLK pins. Disconnecting the VS1002 chip makes no difference either (with or without pull-up/down resistors).
Concerned that it may be due to the fact that I am running the PICAXE chip from a 3.3V supply in order to comply with the VS1002's input specifications (although Figure 17-1 suggests the PICAXE chip should be able to run on this voltage okay, plus I've got the DISABLEBOD at the top of my program), I've also tried disconnecting the connections to the VS1002 chip and running the (now completely standalone) PICAXE chip from a regulated 5V supply with no change in results - all works well until the HSPIOUT command.
I've also tried using another 28X1 chip with identical results. Firmware version "A.0".
Hopefully I've covered all that I've tried to do. Any and all help is appreciated in advance!
<b><i>ylp88 </b> </i>
What should the state of the serial input pin (SDI) be? I don't quite understand the concept of the SDO pin having to be "in the expected default state". The timing diagram in the 16F886 (Figure 13-2) seems to show a "mid-state" between high and low and upon power up, the VS1002 has a voltage of 1.64V on its SO (SPI output) pin, or roughly Vdd/2. Aside, would such a default state change depending on the SPI mode configuration?
I don't have a logic analyser or oscilloscope but as far as I can tell, there are no signals coming out from the SDO or SCLK pins. Disconnecting the VS1002 chip makes no difference either (with or without pull-up/down resistors).
Concerned that it may be due to the fact that I am running the PICAXE chip from a 3.3V supply in order to comply with the VS1002's input specifications (although Figure 17-1 suggests the PICAXE chip should be able to run on this voltage okay, plus I've got the DISABLEBOD at the top of my program), I've also tried disconnecting the connections to the VS1002 chip and running the (now completely standalone) PICAXE chip from a regulated 5V supply with no change in results - all works well until the HSPIOUT command.
I've also tried using another 28X1 chip with identical results. Firmware version "A.0".
Hopefully I've covered all that I've tried to do. Any and all help is appreciated in advance!
<b><i>ylp88 </b> </i>