I want to learn about good techniques on how to choose the suitable clock speed for the microcontroller for a project.
For example i want to create a device with a pic16f877 microcontroller that record voice and store it in the memory and then play it out. I don't want to process the signal in order to use a dsp. The audio will have the specs below:
a sampling ratio of 8Khz
16-bit word length
So if i record 1 minute of sound then i will need 1.8 mb of storage space. The microcontroller also will connect to a DAC with an SPI serial port. My question is how i could figure out the suitable clock speed that i need. Does the DAC and the SPI protocol determine this speed or the sampling rate of the sound?