This application note describes the interface between Motorola'sM68HC05 Family of microcontrollers and Motorola's MC145051 analogto-digital converter (ADC). The MC145051 is a 10-bit, 11-channel, serialinterface ADC. The microcontroller unit (MCU) interface must be able to"talk" to the MC145051 using a serial communication link. One of themost popular hardware modules available in the M68HC05 Family is theserial peripheral interface (SPI). This application note provides thehardware and software design to link the SPI module on theMC68HC705C8 MCU to the MC145051.Not all M68HC05 Family members have SPI modules. An M68HC05MCU without an SPI must interface to the MC145051 using a softwaredriver. This method "bit bangs" a port of the MCU to communicate withthe MC145051. Although not as efficient as the hardware SPI method, itprovides MCUs without an SPI a means to retrieve data from theMC145051. This application note will utilize the MC68HC705K1 MCU todemonstrate the software driver routine.
猜您喜欢
评论