2.5 Hardware

This application was created using the Curiosity High Pin Count (HPC) Development Board with a PIC18F47Q43 microcontroller. The MikroElektronika microSD Click board™ and the LCD mini Click board™ were used for SD card reading and the display, respectively. The microSD Click board is a standard SD card connector that can be interfaced using the SPI protocol. The LCD Click board consists of a 2x16 HD44780-compatible LCD display in 4-data-pin mode, connected to a MCP23S17 port expander and MCP4161 digital potentiometer for contrast control (both controlled using SPI). The ADC continuously samples the potentiometer on pin RA0 to control the frequency of the waveform being generated. The buttons on pins RB4 and RC5 are used to select the waveform that will be generated, as described in the User Interface section, and the waveform is on pin RA2.