#include "fw_hal.h"Go to the source code of this file.
Functions | |
| INTERRUPT (Timer2_Routine, EXTI_VectTimer2) | |
| void | main (void) |
Variables | |
| __BIT | dir = SET |
| uint8_t | dc = 0 |
| INTERRUPT | ( | Timer2_Routine | , |
| EXTI_VectTimer2 | |||
| ) |
Definition at line 28 of file pwm_2ch_timer2_interrupt.c.
| void main | ( | void | ) |
Definition at line 45 of file pwm_2ch_timer2_interrupt.c.
| uint8_t dc = 0 |
Definition at line 26 of file pwm_2ch_timer2_interrupt.c.
| __BIT dir = SET |
Demo: 2-channel with timer2 interrupt
P1.0 -> 1k Ω resistor -> LED1+ P1.1 -> 1k Ω resistor -> LED2+ GND -> LED1- GND -> LED2-
Definition at line 25 of file pwm_2ch_timer2_interrupt.c.