From 4a2dbc3b1a40760ba18bf4258e7f9478a2953027 Mon Sep 17 00:00:00 2001 From: Eric Brombaugh <ebrombaugh1@cox.net> Date: Tue, 11 Apr 2023 12:49:21 -0700 Subject: [PATCH] Update docs --- examples/spi_dac/README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/examples/spi_dac/README.md b/examples/spi_dac/README.md index 7693f5d..6a6b923 100644 --- a/examples/spi_dac/README.md +++ b/examples/spi_dac/README.md @@ -16,7 +16,7 @@ TIM1 on the CH32V003 is set up to generate a 48kHz square wave which is output on GPIO pin PC4 and serves as the frame sync or WS. The timer is configured to run in center-aligned mode 3 which generates DMA requests on both rising and falling edges. Channel 4 is configured as the output and the threshold is set -to 50%. +to 50% and the overall period is set to 48kHz. ### SPI setup SPI1 is configured for 16-bit TX with a bit clock of 48MHz/8 (3MHz) which is @@ -47,5 +47,6 @@ Connect a PT8211 DAC as follows: * DAC pin 6 (LCH) - left channel output * DAC pin 8 (RCH) - right channel output -Connect an oscilloscope to the left and right channel outputs and observe -sine and sawtooth waves at different frequencies. +Connect an oscilloscope to the left and right channel outputs and observe a +sine waveform at 187Hz on the right channel output and a sawtooth wave at +47Hz on the left channel output. -- GitLab