File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -41,16 +41,18 @@ Process commands and queries (?) from ESP:
4141 - HFINTOSC (16 MHz),
4242 - I²C (master, 400 kHz)
4343 - UART (38400 Bd, 8 data bit, 1 stop bit)
44- - PWM1_SaP1_out: (125 Hz: 7.2 ms High + 0.8 ms Low = 8 ms) <br >
45- PWM1_SaP2_out: (125 Hz: 2.0 ms High + 6.0 ms Low = 8 ms)
44+ - PWM1_S1P1_out: (125 Hz: 7.2 ms High + 0.8 ms Low = 8 ms) <br >
45+ PWM1_S1P2_out: (125 Hz: 2.0 ms High + 6.0 ms Low = 8 ms) <br >
46+ PWM2_S1P2_out: (125 Hz: 7.6 ms High + 0.4 ms Low = 8 ms)
4647 - Interrupts (see #interrupt.c)
4748
4849### interrupt.c
4950Configures the Vectored Interrupt Manager and contains the corresponding
5051interrupt service routines (ISR).
5152 - PWM1 Parameter Interrupt
5253 - on falling edge of PWM1_SaP2_out (2 ms after H-bridge ON): read motor current
53- - on falling edge of PWM1_SaP1_out (~ 100 µs after H-bridge OFF): read Back EMF
54+ - PWM2 Parameter Interrupt
55+ - on falling edge of PWM2_S1P2_out (~ 400 µs after H-bridge OFF): read Back EMF
5456 - TMR0 (1 ms system clock)
5557 - U1RX (UART1 RX data from ESP)
5658
You can’t perform that action at this time.
0 commit comments