Project 3  Seven-Segment Display
Neff Site
pwm.h
Go to the documentation of this file.
1 
14 #ifndef PWM_H_
15 #define PWM_H_
16 
17 #define PWM_PORT PORTF
18 #define PWM_CCEN TC0_CCCEN_bm
19 #define PWM_CCREG CCC
20 #define PWM_MODULE TCF0
21 #define PWM_PIN_bm PIN2_bm
22 
23 #ifdef __cplusplus
24 extern "C"
25 {
26 #endif
27 
33 void pwm_init(void);
34 
40 void pwm_stop(void);
41 
46 void pwm_start(void);
47 
53 void pwm_duty(uint8_t duty);
54 
55 #ifdef __cplusplus
56 }
57 #endif
58 
59 #endif /* PWM_H_ */
void pwm_duty(uint8_t duty)
Set the duty cycle.
void pwm_stop(void)
Stop the modulation.
void pwm_init(void)
Initialize PWM module.
void pwm_start(void)
Start the modulation.
Contact