in the PBP manual, look for DATA, WRITE, READ statement

For the sound... HPWM, SOUND, FREQOUT