This circuit is about as good as it gets for generating morse code tones. It may be used as a code practice oscillator, a tone generator for a keyer, or a sidetone oscillator for a transmitter.
PIC16F84 based with source code
for CW operating with SSB TRX