Datasheet

VS1053b Datasheet
10 VS1053B REGISTERS
10.7 GPIO Registers
GPIO registers, prefix GPIO_
Reg Type Reset Abbrev[bits] Description
0xC017 rw 0 DDR[7:0] Direction
0xC018 r 0 IDATA[11:0] Values read from the pins
0xC019 rw 0 ODATA[7:0] Values set to the pins
GPIO_DIR is used to set the direction of the GPIO pins. 1 means output. GPIO_ODATA
remembers its values even if a GPIO_DIR bit is set to input.
GPIO_IDATA is used to read the pin states. In VS1053 also the SDI and SCI input pins
can be read through GPIO_IDATA: SCLK = GPIO_IDATA[8], XCS = GPIO_IDATA[9], SI =
GPIO_IDATA[10], and XDCS = GPIO_IDATA[11].
GPIO registers don’t generate interrupts.
Note that in VS1053b the VSDSP registers can be read and written through the SCI_WRAMADDR
and SCI_WRAM registers. You can thus use the GPIO pins quite conveniently.
Version: 1.13, 2011-05-27 68