ZKit-51 Analog I/O Board

The ZKit-51 Analog I/O Board provides A-to-D and D-to-A capabilities to the main board. The board is based on NXP PCF8591 8-bit A/D and D/A converter, with four analog inputs, one analog output and a serial I2C interface.

Features

The ZKit-51 Analog I/O Board offers the following features

  • PCF8591 ADC/DAC chip.

  • I2C interface.

  • ADC with 4 channels, 8-bit, max. 11kHz sampling rate.

  • 2 ADC channels connected to POT.

  • 2 ADC channels terminated in Phonix header.

  • DAC with single channel, 8-bit, max. 11kHz conversion rate.

  • DAC channel terminated in Phonix header.

Sample Code

adc

This sample demonstrates ADC interfacing. When the program is executed, the voltage on ADC channel 1 is displayed on the LCD. When the POT connected to channel 1 is adjusted, the LCD is updated accordingly.

dac

This sample demonstrates DAC interfacing. When the program is executed, a 5Hz 4V peak-to-peak square wave appears on the AOUT pin. The output can be seen on an oscilloscope.