ARM Microprocessor Systems: Cortex-M Architecture, Programming, and Interfacing