Materials
- Lecture 8 slides
- Experiment 4 procedure
- Update: Producing the modified sine wave is required. Production of a true sine wave will count as extra credit.
Microcontroller materials
- Framework for inverter control
- Microcontroller materials and tutorials
Download the above zip file and insert your code in main.c. It should compile and run as is. This code causes timerB to produce the four logic outputs to drive the MOSFETs of the full bridge inverter circuit to produce a modified square wave, on pins P4.1 to P4.4. The switching times are set by entries in the Event_Times vector. The timer counts from zero to (8MHz/(4*60Hz)) = 33333, and event times between 0 and 33333 correspond to one complete ac output period of 1/60 = 16.67 msec.