this is a digital intercom projects using ADC PWM and uart interrupt.
you take the value from mic enter it to ADC and then send serially to the other microcontroller which receives the data and transform the digital data into analog data by PWM which is connected to speaker