Drama
We should have some drama today!
Otherwise, let’s look at a couple of things
- PWM: terminology and implementation
- frequency, period, duration
- Demonstration from Wolfram
- bit banging PWM
void playTone(float frequencyHz, float durationS)
void playTone(int frequencyHz, long durationUS)
- Music with PWM and interrupts
- PWM with filters
- Calculation Practice for CSCI 107 exam
- Memories
- Exponent rules at Khan Academcy
- To enumerate n objects, you need log2(n) bits
- It just ain’t so
- 8 M = 820
- 820/213 = 47
- What bit rate would be needed to generate 16-bit 44.1 kHz with PWM?
- Programming with only unconditional and conditional branches
- MIPS 32 calling conventions
- MIPS32 instructions
- Arrays
- Computing
1000*duration
quickly
- C and Java bit-wise operators:
&
,|
,^
,~
,<<
and>>
- C logical operators
- On input:
0
is false and anything but0
is true - On output:
0
is false and1
is true
- On input:
- C pointers and arrays
- C pointers and structures