SDAA429 June 2026 MSPM0G5187
Digit recognition technology is a fundamental capability with broad applications across embedded and personal consumer markets. However, deploying reliable recognition on embedded systems presents a significant challenge: traditional template-matching approaches lack robustness against the natural variability in human handwriting. The emergence of Edge AI offers a compelling design - enabling accurate, real-time inference directly on the device itself, without reliance on cloud connectivity. CPU-based inference pipelines demand substantial computational resources that exceed the processing capabilities typically available on resource-constrained microcontrollers.
The MSPM0G5187 microcontroller addresses this challenge by integrating a dedicated TinyEngine NPU, designed to accelerate ML workloads with minimal power and memory overhead. The design demonstrates classification of single-digit character images into one of 10 categories (0-9). The application receives a 28×28 grayscale image as pixel data over the UART back channel, performs hardware-accelerated model inference using the on-chip NPU, and sends the recognized digit class back to a host GUI for display.
Leveraging the on-chip NPU, the digit recognition system achieves approximately 99% classification accuracy with an inference latency of only 6.05ms, while consuming just 73KB of Flash and 10.9KB of RAM, as shown in Table 5-6. These results demonstrate the viability of on-device machine learning on resource-constrained microcontrollers.
| Metric | Value |
|---|---|
| Accuracy | Approximately 99% |
| Flash Usage | 73KB |
| RAM Usage | 10.9KB |
| Inference Latency (NPU) | 6.05ms |
| Inference Power Consumption (AVG) | 424.65uJ |
Table 5-5 shows the mode main information.
| Property | Value |
|---|---|
| Model Architecture | CNN |
| Number of Parameters | 60,000 |
| Input Shape | (1, 28, 28) |
| Output Classes | 10 |
| Quantization | INT8 |