Connect a pin of the microcontroller to a piezoelectric speaker or an ordinary speaker (voltage and current ratings should be considered while connecting an ordinary speaker). Then you can generate a tone of particular frequency by making the pin high and low in that frequency.
MikroC Pro for PIC Microcontrollers provides built in library routines for tone generation…………