Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
ch32v003fun
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Andreas Horn
ch32v003fun
Commits
4a2dbc3b
Commit
4a2dbc3b
authored
1 year ago
by
Eric Brombaugh
Browse files
Options
Downloads
Patches
Plain Diff
Update docs
parent
34e5839f
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
examples/spi_dac/README.md
+4
-3
4 additions, 3 deletions
examples/spi_dac/README.md
with
4 additions
and
3 deletions
examples/spi_dac/README.md
+
4
−
3
View file @
4a2dbc3b
...
...
@@ -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.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment