Freqout in PBP has a max of 32,767hz. If using a pic you could set up hpwm registers for 38khz then toggle the output for a pulse (tris), but I'm not familiar with a stamps capabilities or the stamps basic.