cinera_handmade.network/miotatsu/riscy/riscy/riscy029_1.hmml

31 lines
2.2 KiB
Plaintext

[video member=miotatsu stream_platform=twitch project=riscy title="PWM & The LED Fade Demo (1/2)" vod_platform=youtube id=5WvDPQRDlUw annotator=Miblo]
[0:06][Recap and set the stage for the day]
[0:36][Read about the PWM Compare Registers[ref
site="SiFive Developers"
page="Platform Reference Manual"
url=https://www.sifive.com/documentation/freedom-soc/freedom-e300-platform-reference-manual/]][:peripheral :research]
[6:46][Consult the diagram and text on Generating Left- or Right-Aligned PWM Waveforms[ref
site="SiFive Developers"
page="Platform Reference Manual"
url=https://www.sifive.com/documentation/freedom-soc/freedom-e300-platform-reference-manual/]][:peripheral :research]
[10:28][Summarise how the counter works in the PWM compare register][:peripheral :research]
[16:20][Continue reading about left- and right-aligned waveform generation[ref
site="SiFive Developers"
page="Platform Reference Manual"
url=https://www.sifive.com/documentation/freedom-soc/freedom-e300-platform-reference-manual/]][:peripheral :research]
[22:39][Consult the circuit diagram for the E300 PWM :Peripheral[ref
site="SiFive Developers"
page="Platform Reference Manual"
url=https://www.sifive.com/documentation/freedom-soc/freedom-e300-platform-reference-manual/] to try and determine what's creating the waveform output][:research]
[29:58][Note that having XOR for GPIOs built in to the :hardware is a convenient way to make left-aligned waveforms][:research]
[30:43][Consult the table of pwms and pwmscenter values, and read about Generating Center-Aligned (Phase-Correct) PWM Waveforms[ref
site="SiFive Developers"
page="Platform Reference Manual"
url=https://www.sifive.com/documentation/freedom-soc/freedom-e300-platform-reference-manual/]][:peripheral :research]
[40:33][Read about Generating Arbitrary PWM Waveforms using Ganging, Generating One-shot Waveforms, and PWM Interrupts[ref
site="SiFive Developers"
page="Platform Reference Manual"
url=https://www.sifive.com/documentation/freedom-soc/freedom-e300-platform-reference-manual/]][:peripheral :research]
[44:35][Consult led_fade.c for how it sets up the RGB PWM, with a few words on light receptors in the human eye][:biology :peripheral :research]
[/video]