This Application Note demonstrates a simple 8-direction digital compass application using Zilog`s Z8 Encore! ® MCU and an external sensor- compass hardware. Communication ports are pro- vided for the digital compass to receive commands and send status on the I 2 C bus as well as the UART from/to an external host. According to the command received
, the digital compass toggles an output that generates an interrupt for a specific direction. This Application Note provides the schematics and software to implement the Digital Compass appli- cation. It also provides host-side Application Pro- gramming Interface (APIs) to communicate with the Z8 Encore! MCU-based digital compass. The host CAN be any processor with UART and/or I 2 C peripherals. However, the APIs are written based on using Z8 Encore! MCU as an external host.