- Category:
- SCM
- Tags:
-
[C/C++]
[源码]
- File Size:
- 152kb
- Update:
- 2014-07-25
- Downloads:
- 0 Times
- Uploaded by:
- 林志浩
Description: 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.
To Search:
File list (Check if you may need any files):
6_PWM_LED\6_PWM_LED.dep
.........\6_PWM_LED.ewd
.........\6_PWM_LED.ewp
.........\6_PWM_LED.eww
.........\6_PWM_LEDCustomSfr.sfr
.........\Debug\Exe\6_PWM_LED.d43
.........\.....\Obj\6_PWM_LED.pbd
.........\.....\...\6_PWM_LED.pbd.browse
.........\.....\...\main.pbi
.........\.....\...\main.pbi.cout
.........\.....\...\main.r43
.........\.....\...\TA_PWM.pbi
.........\.....\...\TA_PWM.pbi.cout
.........\.....\...\TA_PWM.r43
.........\main.c
.........\path.txt
.........\settings\6_PWM_LED.cspy.bat
.........\........\6_PWM_LED.dbgdt
.........\........\6_PWM_LED.dni
.........\........\6_PWM_LED.wsdt
.........\TA_PWM.c
.........\TA_PWM.h
.........\Debug\Exe
.........\.....\List
.........\.....\Obj
.........\Debug
.........\settings
6_PWM_LED