diff options
| author | Keith Packard <keithp@keithp.com> | 2010-10-31 00:38:39 -0700 |
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2010-10-31 00:38:39 -0700 |
| commit | 3493b456399bcc0ea43d28fd4105928bd8793cff (patch) | |
| tree | 869bc731152146632fc55cf9df7d4d6f125e8b68 /src/cc1111.h | |
| parent | 3f53e5daeca4d9257aef017594fd65b379b97a1e (diff) | |
teleterra: Add PWM audio system
This uses timers 3 and 4 to emit 8-bit 11025Hz audio using a 93.8kHz
carrier. A simple low-pass filter to eliminate the 93.8kHz signal
results in credible 8-bit audio.
There is a giant sample for testing in the ao_audio code which shouldn't
be included in a product.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/cc1111.h')
| -rw-r--r-- | src/cc1111.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cc1111.h b/src/cc1111.h index 20ed052a..5d1e2b06 100644 --- a/src/cc1111.h +++ b/src/cc1111.h @@ -329,9 +329,13 @@ sfr __at 0xEE T4CCTL1; /* Timer compare value */ sfr __at 0xCD T3CC0; +__xdata __at (0xDFCD) volatile uint8_t T3CC0XADDR; sfr __at 0xCF T3CC1; +__xdata __at (0xDFCF) volatile uint8_t T3CC1XADDR; sfr __at 0xED T4CC0; +__xdata __at (0xDFED) volatile uint8_t T4CC0XADDR; sfr __at 0xEF T4CC1; +__xdata __at (0xDFEF) volatile uint8_t T4CC1XADDR; /* * Peripheral control |
