Section 11.3 Day 11x In-Class: Writing the PWM Code
On Tuesday we got a motor turning. We wired the TB6612 breakout, set the motor’s direction by hand from the truth table, and then ran
TTmotor_ramp.c, which ramped the speed up and back down while we watched the duty cycle change on the oscilloscope. Today we’ll open that program and read it one register at a time. For any line of its setup you’ll be able to describe which register it writes and why. We’ll work from the reference manual, RM0490, from the figures, and from the code.
