Description: 利用freescale公司的型号为MC9S12XS128单片机。在编译环境为Code Warrior编译器环境下实现对IIC器件PCF8574的读写操作。其中,器件PCF8574的并行进入的数据通过IIC模拟接口串行输出到MC9S12XS128中,然后通过LED发光二极管显示出来。其中PCF8574串行数据是通过拨码开关设置的。分别对各并行数据端口进行相应设置。其中PCF8574的器件地址也可以设置。-Using the company' s model MC9S12XS128 freescale microcontroller. In the build environment for the Code Warrior compiler environment to realize the IIC devices to read and write operations PCF8574. Among them, the device parallel accessible PCF8574 data through IIC serial output to MC9S12XS128 analog interface, and then through the LED light-emitting diode display. PCF8574 serial data which is set by DIP switch. Respectively, the parallel data port settings accordingly. PCF8574 device address which can be set. Platform: |
Size: 212992 |
Author:陶赞 |
Hits: