[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3760: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3184)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3762: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3184)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3763: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3184)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3764: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3184)
forum.hobby-roboter.de • View topic - 440 Hz sin wave generator with LPC1114

440 Hz sin wave generator with LPC1114

creating sound with microcontrollers

440 Hz sin wave generator with LPC1114

Postby chris on Sun Jan 13, 2013 7:19 pm

The LPC1114 is an 32 bit ARM M0 processor with 48Mhz. This chip is available in a 28 DIP package which is a big advantage for hobbyists.

Here is the code for a sin wave generator with an LPC1114. I used an LPC1114Xpresso board ( it is quite cheap ).
Be aware that the code is not running with the LPC1114FN28 Dip package because the pin used is not connected. For the LPC1114FN28 see the code further down in this thread.

features:
audio output: 10bit pwm
sampling rate: 48kHz
sin wave frequency: 440 Hz ( may be changed in code )

Here is a link to a pdf on how to interface a LPC1114 to a LPC1114Xpresso:
http://www.sase.com.ar/2012/files/2012/ ... -DIP28.pdf

LPC1114 Data Sheet: http://www.nxp.com/documents/data_sheet/LPC111X.pdf
Attachments
dds_sinwave_LPC1114.c.zip
(2.49 KiB) Downloaded 572 times
SinWave.png
SinWave.png (4.7 KiB) Viewed 6832 times
Last edited by chris on Wed Jul 31, 2013 7:02 am, edited 4 times in total.
chris
 
Posts: 289
Joined: Sun May 25, 2008 7:21 am

bell sound

Postby chris on Wed Jan 16, 2013 8:01 pm

Creating bell sounds with a 5 channel DDS:
Attachments
ArmGlocke.zip
(3.71 KiB) Downloaded 677 times
Last edited by chris on Sat Jan 26, 2013 6:26 pm, edited 1 time in total.
chris
 
Posts: 289
Joined: Sun May 25, 2008 7:21 am

PC simulation of LPC1114 sound

Postby chris on Sat Jan 26, 2013 6:25 pm

It is very usefull to develop the routines for sound generation on the PC. It is easier to debug and you can store the sound as file on the PC instead of recording it from the ARM.
The following program can be compiled either for running on the PC or the LPXpresso1114.
Attachments
ArmPcSound.zip
(7.07 KiB) Downloaded 654 times
chris
 
Posts: 289
Joined: Sun May 25, 2008 7:21 am

envelope generator and playtune sequencer

Postby chris on Sun Feb 03, 2013 9:41 am

Newest version:

- envelope generator with attack, decay, sustain and release
- playtune sequencer
Attachments
chArmSound_20130203.zip
(35.82 KiB) Downloaded 625 times
chris
 
Posts: 289
Joined: Sun May 25, 2008 7:21 am

Pin-Dip-Package now supported

Postby chris on Sun Feb 17, 2013 4:21 pm

New Version: LPC1114FN102 28-PIN-DIP package supported.
Output now at PWM-Pin P0.8

Additional features: different waveforms supported
Attachments
ArmLPC1114FN28_Synth.jpg
ArmLPC1114FN28_Synth.jpg (73.2 KiB) Viewed 5895 times
chArmPcSound_20130217.zip
(23.9 KiB) Downloaded 647 times
chris
 
Posts: 289
Joined: Sun May 25, 2008 7:21 am

LPC1114FN links

Postby chris on Wed Jul 31, 2013 7:03 am

Very simple setup:
Image
Image
chris
 
Posts: 289
Joined: Sun May 25, 2008 7:21 am


Return to sound

Who is online

Users browsing this forum: No registered users and 1 guest

cron