@@ -141,4 +141,16 @@ More or less done w/ this now;


Sending these to fab, doing orders, then we're off. I leave the actual CAD design of the mount, etc, to myself in the future.
\ No newline at end of file
Sending these to fab, doing orders, then we're off. I leave the actual CAD design of the mount, etc, to myself in the future.
### Quadrature Decoding
Ah - one last thing. Dave pointed out that I should have paid attention to the rate of quadrature signal generation - so I had an ohshit moment for this...
There's a sheet now, basically I wanted to know how long between pulses at certain rates. This is kind of punishing... I can do 1024 PPR @ 1K RPM makes for 5.8us between pulse, if I go to the encoder's full 4096 PPR I get 1.46us: a lot.
So I have ordered this part `LS7366R-S` which is a hardware counter (SPI interface) that I could inter-pose between the encoder, my circuit, etc... and I just noticed that simpleFOC uses interrupts, seems fine. Here's [their doc](https://docs.simplefoc.com/encoder).
For the interrupts - my beef is that I have some i.e. ~ 4us (?) interrupts happening pretty regularely on the UCBus, so adding this additional requirement is troublesome.
I need to know if interrupts can interrupt others - haha - otherwise a 2us QDEC interrupt spacing on top of a 5us comms interrupt will miss a tick.