文件名称:6_PWM_LED
介绍说明--下载内容来自于网络,使用问题请自行百度
TA(Timer_A定时器)可用于自动输出PWM而无需CPU干预。
编写PWM初始化、设定频率改写占空比的库函数文件TA _PWM.c。
主函数调用库函数TA0_PWM_Init()完成TA_PWM初 始化,然后休眠。
P1.3事件处理函数中,循环递增静态局部变量循环递增静态局部变量 Bright的值,并调用库函数TA0_PWM_SetPeriod()改写PWM占空比参数。-TA (Timer_A timer) can be used for the automatic output of PWM without CPU intervention.
Preparation of PWM initialization, set the frequency to rewrite the duty ratio of the library file TA _PWM.c.
The main function call library function TA0_PWM_Init (TA_PWM) to complete the initialization, and then sleep.
Function P1.3 event processing, circulation increasing static local variable cycle increasing value of the static local variable Bright, and call the library function TA0_PWM_SetPeriod () to rewrite the PWM duty cycle parameters.
编写PWM初始化、设定频率改写占空比的库函数文件TA _PWM.c。
主函数调用库函数TA0_PWM_Init()完成TA_PWM初 始化,然后休眠。
P1.3事件处理函数中,循环递增静态局部变量循环递增静态局部变量 Bright的值,并调用库函数TA0_PWM_SetPeriod()改写PWM占空比参数。-TA (Timer_A timer) can be used for the automatic output of PWM without CPU intervention.
Preparation of PWM initialization, set the frequency to rewrite the duty ratio of the library file TA _PWM.c.
The main function call library function TA0_PWM_Init (TA_PWM) to complete the initialization, and then sleep.
Function P1.3 event processing, circulation increasing static local variable cycle increasing value of the static local variable Bright, and call the library function TA0_PWM_SetPeriod () to rewrite the PWM duty cycle parameters.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
6_PWM_LED/6_PWM_LED.dep
6_PWM_LED/6_PWM_LED.ewd
6_PWM_LED/6_PWM_LED.ewp
6_PWM_LED/6_PWM_LED.eww
6_PWM_LED/6_PWM_LEDCustomSfr.sfr
6_PWM_LED/Debug/Exe/6_PWM_LED.d43
6_PWM_LED/Debug/Obj/6_PWM_LED.pbd
6_PWM_LED/Debug/Obj/6_PWM_LED.pbd.browse
6_PWM_LED/Debug/Obj/main.pbi
6_PWM_LED/Debug/Obj/main.pbi.cout
6_PWM_LED/Debug/Obj/main.r43
6_PWM_LED/Debug/Obj/TA_PWM.pbi
6_PWM_LED/Debug/Obj/TA_PWM.pbi.cout
6_PWM_LED/Debug/Obj/TA_PWM.r43
6_PWM_LED/main.c
6_PWM_LED/path.txt
6_PWM_LED/settings/6_PWM_LED.cspy.bat
6_PWM_LED/settings/6_PWM_LED.dbgdt
6_PWM_LED/settings/6_PWM_LED.dni
6_PWM_LED/settings/6_PWM_LED.wsdt
6_PWM_LED/TA_PWM.c
6_PWM_LED/TA_PWM.h
6_PWM_LED/Debug/Exe
6_PWM_LED/Debug/List
6_PWM_LED/Debug/Obj
6_PWM_LED/Debug
6_PWM_LED/settings
6_PWM_LED
6_PWM_LED/6_PWM_LED.ewd
6_PWM_LED/6_PWM_LED.ewp
6_PWM_LED/6_PWM_LED.eww
6_PWM_LED/6_PWM_LEDCustomSfr.sfr
6_PWM_LED/Debug/Exe/6_PWM_LED.d43
6_PWM_LED/Debug/Obj/6_PWM_LED.pbd
6_PWM_LED/Debug/Obj/6_PWM_LED.pbd.browse
6_PWM_LED/Debug/Obj/main.pbi
6_PWM_LED/Debug/Obj/main.pbi.cout
6_PWM_LED/Debug/Obj/main.r43
6_PWM_LED/Debug/Obj/TA_PWM.pbi
6_PWM_LED/Debug/Obj/TA_PWM.pbi.cout
6_PWM_LED/Debug/Obj/TA_PWM.r43
6_PWM_LED/main.c
6_PWM_LED/path.txt
6_PWM_LED/settings/6_PWM_LED.cspy.bat
6_PWM_LED/settings/6_PWM_LED.dbgdt
6_PWM_LED/settings/6_PWM_LED.dni
6_PWM_LED/settings/6_PWM_LED.wsdt
6_PWM_LED/TA_PWM.c
6_PWM_LED/TA_PWM.h
6_PWM_LED/Debug/Exe
6_PWM_LED/Debug/List
6_PWM_LED/Debug/Obj
6_PWM_LED/Debug
6_PWM_LED/settings
6_PWM_LED
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.