Requirement: MPLAB x Project file (ProjectName.X)
Code requirement is for demonstration of ADC sampling at every minute and logging sampled values in a microSD card. Ever log is to be associated with respective time-stamp from ds1307 RTC. Regular updates of logging are to be printed over UART for loop execution status track.
Minimum of 10 ADC (10-bit) to be sampled. Date and time from ds1307 RTC is retained over i2c. microSD card communication is over SPI with a logic level shifter between microcontroller and SD card.
Peripherals: UART, I2C, ADC, SPI
Additional components: ds1307, microSD card
Software: MPLAB x , Mplab code Configurator
Note: The peripheral drivers are to generated by MPLAB Code Configurator for easy understanding.
DM if additional details and circuit diagram required.