[sdiy] MIDI Clock sync advice

Tom Wiltshire tom at electricdruid.net
Fri Mar 15 11:56:58 CET 2024

> On 15 Mar 2024, at 08:29, Spiros Makris via Synth-diy <synth-diy at synth-diy.org> wrote:
> I often get students asking for advice for getting into microcontrollers and device programming, and the most common thing I have to explain to them is that good uC design usually means code that orchestrates the operation of hardware peripherals and glues their functionality, rather than code that "does the thing".

I think this is an excellent point.

I've had a recent example of that with the project I'm working on. The current processor is a 16F1518, which isn't a bad chip, but finishes up doing quite a lot of the work itself. It only has a single SPI interface for example, so some of the comms it needs to do is bit-banged. I'm currently working on moving the code to the 18F27Q43 chip, which is a whole different ballgame. That chip not only has enough SPIs to be able to do the comms with hardware, but it also includes assignable DMA channels, so you don't even have to feed the SPI peripherals the data. Instead, you point the DMA at the data in RAM and leave it feeding the SPI while you can get on with something else. The whole job becomes orchestrating the peripherals and DMA to do the work. the actual uP itself should finish up with little to do.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://synth-diy.org/pipermail/synth-diy/attachments/20240315/95d7d5e9/attachment.htm>

More information about the Synth-diy mailing list