文件名称:chuangxing
-
所属分类:
- 标签属性:
- 上传时间:2013-04-08
-
文件大小:110.81kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
配置CCP1模块使之工作于PWM模式,并初始化周期和占空比。单片机的UART接口工作于全双工异步模式,1个起始位,8个数据位,1个停止位,波特率为9600,并开启接收中断,与PC机通信。编写程序实现功能:当UART接收到命令“S”时,LCD上显示“PWM Start”, PWM开始工作。当UART接收到命令“U”时,占空比增加,当UART接收到命令“D”时,占空比减少,并在LCD上显示占空比。当UART接收到命令“P”时, PWM停止工作,LCD上显示“PWM Stop”。并用示波器观察PWM输出波形的变化。
并使用ICD2仿真器进行程序的烧写和仿真调试。
-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.
并使用ICD2仿真器进行程序的烧写和仿真调试。
-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.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
串行数据传输控制PWM/
串行数据传输控制PWM/18f452i.lkr
串行数据传输控制PWM/Ex5-3.cod
串行数据传输控制PWM/Ex5-3.cof
串行数据传输控制PWM/Ex5-3.hex
串行数据传输控制PWM/Ex5-3.lst
串行数据传输控制PWM/Ex5-3.map
串行数据传输控制PWM/Ex5-3.mcp
串行数据传输控制PWM/Ex5-3.mcs
串行数据传输控制PWM/Ex5-3.mptags
串行数据传输控制PWM/Ex5-3.tagsrc
串行数据传输控制PWM/P18F_LCD.h
串行数据传输控制PWM/WAP_LCD.c
串行数据传输控制PWM/WAP_LCD.o
串行数据传输控制PWM/ex5-3.c
串行数据传输控制PWM/ex5-3.mcw
串行数据传输控制PWM/ex5-3.o
串行数据传输控制PWM/18f452i.lkr
串行数据传输控制PWM/Ex5-3.cod
串行数据传输控制PWM/Ex5-3.cof
串行数据传输控制PWM/Ex5-3.hex
串行数据传输控制PWM/Ex5-3.lst
串行数据传输控制PWM/Ex5-3.map
串行数据传输控制PWM/Ex5-3.mcp
串行数据传输控制PWM/Ex5-3.mcs
串行数据传输控制PWM/Ex5-3.mptags
串行数据传输控制PWM/Ex5-3.tagsrc
串行数据传输控制PWM/P18F_LCD.h
串行数据传输控制PWM/WAP_LCD.c
串行数据传输控制PWM/WAP_LCD.o
串行数据传输控制PWM/ex5-3.c
串行数据传输控制PWM/ex5-3.mcw
串行数据传输控制PWM/ex5-3.o
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.