Li-ion Battery Charger

MPC | | |

This reference design demonstrates the new thread-based programming style that we created to complement the RS08, but it's used on an HC08.

RS08's interrupts can wake the processor from sleep but don't change program flow. We've extended the ISR declaration mechanism to include compiled expressions that act as "pseudo-hardware" and cause the dispatch of thread functions under main program control.

The same system can be used on any processor: use true interrupts for lower-level I/O and use threads for higher-level state machines. This design represents a complete separation of concerns where thread dispatch code is separate from thread payload.

Get the reference design in a PDF and the related files (source and listing) in a zip file.