Skip to content

Commit 0386ee9

Browse files
authored
Update README.md
1 parent 25d33f9 commit 0386ee9

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

PIC-ValveControl/README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff 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
4950
Configures the Vectored Interrupt Manager and contains the corresponding
5051
interrupt 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

0 commit comments

Comments
 (0)