Description: Configure the CCP1 module for PWM operation, and initialize the period and duty cycle. The microcontroller UART interface operates in full-duplex asynchronous mode, one start bit, 8 data bits, 1 stop bit, baud rate of 9600, and open to receive interrupt communication with the PC. Write a program to achieve functional: " PWM Start" , PWM start working when the UART receiver to command " S" is displayed on the LCD. Increase the duty cycle when received by the UART command " U" , When UART receives command " D" , the duty cycle to reduce the duty cycle is displayed on the LCD. When the when UART receives command " P" , the the PWM stop working, PWM Stop " is displayed on the LCD. And observe the change of the PWM output waveform with an oscilloscope. And to use ICD2 emulator for procedural programming and simulation debugging.
To Search:
File list (Check if you may need any files):
串行数据传输控制PWM
...................\18f452i.lkr
...................\Ex5-3.cod
...................\Ex5-3.cof
...................\Ex5-3.hex
...................\Ex5-3.lst
...................\Ex5-3.map
...................\Ex5-3.mcp
...................\Ex5-3.mcs
...................\Ex5-3.mptags
...................\Ex5-3.tagsrc
...................\P18F_LCD.h
...................\WAP_LCD.c
...................\WAP_LCD.o
...................\ex5-3.c
...................\ex5-3.mcw
...................\ex5-3.o