ugfx/drivers/gaudio/pwm
2018-06-23 13:02:07 +10:00
..
driver.mk Make all include paths in ugfx relative. 2015-11-21 19:27:08 +10:00
gaudio_play_board_template.h Added new type definitions - moving towards V3.0 2018-06-23 13:02:07 +10:00
gaudio_play_config.h First set of V3 macro changes 2018-02-27 17:44:21 +10:00
gaudio_play_pwm.c Added new type definitions - moving towards V3.0 2018-06-23 13:02:07 +10:00
readme.txt New PWM audio driver for audio output using a digital pin on a CPU 2014-03-30 19:10:31 +10:00

This driver uses a PWM output and a timer to implement an audio play channel.

Whilst the default config settings will probably work for your hardware, you may need to change them.
If so copy gaudio_play_config.h to your project directory and then alter it.

The maximum sample frequency is governed primarily by the number of bits of resolution and the
maximum PWM clock rate. The maximum sample frequency should be less than...

	Max PWM Clock / (2 ^ Bits per sample)
	
eg. For the AT91SAM7 max PWM clock = 48MHz / 2
	For 10 bit PWM accuracy that means GAUDIO_PLAY_MAX_SAMPLE_FREQUENCY = 23,437 Hz