We are currently in the process of converting the website to the new design. Some pages, like this one, are still broken. We appreciate your patience.
RISCY BUSINESS»Episode Guide
Writing a PWM Speed Test
?
?

Keyboard Navigation

Global Keys

[, < / ], > Jump to previous / next episode
W, K, P / S, J, N Jump to previous / next marker
t / T Toggle theatre / SUPERtheatre mode
V Revert filter to original state Y Select link (requires manual Ctrl-c)

Menu toggling

q Quotes r References f Filter y Link c Credits

In-Menu Movement

a
w
s
d
h j k l


Quotes and References Menus

Enter Jump to timecode

Quotes, References and Credits Menus

o Open URL (in new tab)

Filter Menu

x, Space Toggle category and focus next
X, ShiftSpace Toggle category and focus previous
v Invert topics / media as per focus

Filter and Link Menus

z Toggle filter / linking mode

Credits Menu

Enter Open URL (in new tab)
0:07Recap and set the stage for the day
0:07Recap and set the stage for the day
0:07Recap and set the stage for the day
0:26Resume studying global_interrupts.c with a view to seeing how it uses the 16MHz clock speed1
📖
0:26Resume studying global_interrupts.c with a view to seeing how it uses the 16MHz clock speed1
📖
0:26Resume studying global_interrupts.c with a view to seeing how it uses the 16MHz clock speed1
📖
5:32Determine to test the speed at which the HiFive1 is running using PWM Interrupts2
5:32Determine to test the speed at which the HiFive1 is running using PWM Interrupts2
5:32Determine to test the speed at which the HiFive1 is running using PWM Interrupts2
7:50deathmaggedon Ahoy
🗪
7:50deathmaggedon Ahoy
🗪
7:50deathmaggedon Ahoy
🗪
8:35Create test.c based on led_fade.c
8:35Create test.c based on led_fade.c
8:35Create test.c based on led_fade.c
11:03deathmaggedon I just noticed your board on the upper camera
🗪
11:03deathmaggedon I just noticed your board on the upper camera
🗪
11:03deathmaggedon I just noticed your board on the upper camera
🗪
12:06Trim down test.c to the essentials
12:06Trim down test.c to the essentials
12:06Trim down test.c to the essentials
12:36deathmaggedon Plug your phone into the board
🗪
12:36deathmaggedon Plug your phone into the board
🗪
12:36deathmaggedon Plug your phone into the board
🗪
13:47Remove the LED blinking and input handling code
13:47Remove the LED blinking and input handling code
13:47Remove the LED blinking and input handling code
18:48Set up the pulse-width modulator3 and the interrupts4
18:48Set up the pulse-width modulator3 and the interrupts4
18:48Set up the pulse-width modulator3 and the interrupts4
25:07Consult the other demos to see how they set up the interrupts
📖
25:07Consult the other demos to see how they set up the interrupts
📖
25:07Consult the other demos to see how they set up the interrupts
📖
29:40#include plic_driver.h and call PLIC_init()
29:40#include plic_driver.h and call PLIC_init()
29:40#include plic_driver.h and call PLIC_init()
32:25Register and set up our table of interrupts
32:25Register and set up our table of interrupts
32:25Register and set up our table of interrupts
36:31Introduce pwm_0_handler() and enable the interrupts
36:31Introduce pwm_0_handler() and enable the interrupts
36:31Introduce pwm_0_handler() and enable the interrupts
41:11Call the wfi instruction in a busy-loop
41:11Call the wfi instruction in a busy-loop
41:11Call the wfi instruction in a busy-loop
42:44Fix compile errors
42:44Fix compile errors
42:44Fix compile errors
44:32Upload test.c to our HiFive1, connect and try to reset the board
🏃
44:32Upload test.c to our HiFive1, connect and try to reset the board
🏃
44:32Upload test.c to our HiFive1, connect and try to reset the board
🏃
47:18Try to set PWM_CMP0 to 0xFF0
47:18Try to set PWM_CMP0 to 0xFF0
47:18Try to set PWM_CMP0 to 0xFF0
47:53Make clean and try to upload test.c to our board, before checking the SiFive Forums to see how to correctly make clean5
47:53Make clean and try to upload test.c to our board, before checking the SiFive Forums to see how to correctly make clean5
47:53Make clean and try to upload test.c to our board, before checking the SiFive Forums to see how to correctly make clean5
50:59Run make tools6 and close the stream with a shout-out to new pledger while this runs
50:59Run make tools6 and close the stream with a shout-out to new pledger while this runs
50:59Run make tools6 and close the stream with a shout-out to new pledger while this runs