Check 2 - PWMAnnouncementsData Path For Checkpoint 2Mode 1 FSMLED Board ProtocolLED BoardPulse Width ModulationPWM ExampleDebugging TipsDue next weekCheck 2 - PWM•Announcements•Overview•LED Board•PWMWhat’s due:•Prelab•LabAnnouncements•Checkpoint 2 handout has suggestions for the lab.•Corrections to older versions of checkpoint 2: •Add lab9pinout.sch and lab9 LIB file.•Wire wrap LED board •To test Mode 1, use :U:\WVLIB\Transmitter\Transmitter.exeSee Readme file.Data Path For Checkpoint 2PWM BlockSwitch Bank 5LED BoardROMUARTSRAMMode 1 FSMMode 1 FSM•Very simple•Wait for a header•Write 10x14 = 140 bytes to SRAM•Enable PWM until reset is asserted•K.I.S.S.LED Board Protocol•LED Board Protocol•Inputs DATAOUT, CLKOUT, DISPE_HHex row digit14 binary Column digitsRow3Row2Row1Row0Col0Col1Col2Col3Col8Col9Col10Col11Col4Col5Col6Col7Col12Col13DATAOUTCLKOUTLED Board •CLKOUT >> 19.2 kHz•8,9,10 MHz are goodCLKOUTDISPE_HPulse Width Modulation3LED 2LED 1TimeTimePWM ExampleBrightness = 4 / 310 1 2 3 4 5 6 7 8ONOFF59Debugging TipsWorks in sim, but not in hardware!! What now?•Run the TA bit file to verify hardware.•U:\wvlib\cs150\lab9.bit•Verify on oscilloscope that clkout is glitch-free.•Use NUMLED1 to output debugging signals such as state.Due next week•Prelab•Complete State Transition Diagrams for entire project.•PWM and Mode 1 schematics, test scripts and waveform results.•Lab•Display image from Transmitter program•Partial credit for still image, grey-scale
View Full Document