toyoshim / SoundCortexLPC

LPC810/812 based SoundCortex

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SoundCortex for LPC

This is an adoption of SoundCortex for LPC810/812. See SoundCortex for details. LPC810 version can support I2C and SPI. LPC812 version can support IOEXT protocol for my CP/Mega32U2 in addition to I2C and SPI.

Schematic

Schematic

This contains RC LPF that consists from 68Ω register and 0.1uF capasitor. Cut-off frequency of the filter is about 23.4kHz. You might be able to connect it to mixer without them, but please do it at your own risk. If you ain't lucky enough, your equipments will be damaged.

How to build

This repository includes prebiult binaries under Release/ directory, but also you can build it by yourself with the LPCXpresso project files included in this repository too. You need to import CMSIS_CORE_LPX8xx and lpc800_driver_lib from /Examples/Legacy/NXP/LPC800/LPC8xx_Libraries.zip to use these libraries. For MCUXpresso, you may need CMSIS_DSPLIB_CM0 instead of lpc800_driver_lib. That can be imported from /Examples/CMSIS_DSPLIB/CMSIS_DSPLIB_Latest.zip.

If you are using MCUXpresso, select 'Import...' from the popup menu, and import this project by 'General > Existing Projects into Workspace'. Dependent libraries can be imported as a project archive, via 'Import project(s) from file system...' menu. Library should exist in /ide/Examples/... .

Pin assign

LPC810

pin function pin function
1 SCL (SCK *1) 8 SDA (MOSI *1)
2 Sound Out 7 GND
3 SWCLK 6 V3.3
4 SWDIO 5 (SSEL *1)

(*1) is description for SPI enabled built

You may need to hold the pin 1 high on PON, since it is originally assigned to /RESET and the reset function is disabled after start up.

LPC812 (SO20)

for IOEXT

pin function pin function
1 - 20 D6
2 D5 19 /W
3 D4 18 /DATA
4 /READY 17 -
5 Sound Out 16 GND
6 SWCLK 15 V3.3
7 SWDIO 14 D0
8 D3 13 D1
9 D2 12 /IOE
10 - 11 D7

for I2C/SPI

pin function pin function
1 - 20 -
2 - 19 SDA (MOSI *1)
3 - 18 -
4 SCL (SCK *1) 17 -
5 Sound Out 16 GND
6 SWCLK 15 V3.3
7 SWDIO 14 -
8 - 13 -
9 - 12 (SSEL *1)
10 - 11 -

(*1) is description for SPI enabled built

You may need to hold the pin 4 high on PON, since it is originally assigned to /RESET and the reset function is disabled after start up. Note that ISP is disabled by CRP for the IOEXT build.

About

LPC810/812 based SoundCortex


Languages

Language:C 99.5%Language:Shell 0.5%