A programmable sound generator produces audio by combining basic waveforms like square waves, noise, and triangle waves. Instead of playing back recorded digital audio, the host processor writes pitch, volume, and envelope data directly to the chip's registers. This hardware synthesis allows complex music and sound effects to be generated with minimal memory and processing overhead.
Check the data sheet to see how long we've to hold the write pin low when updating the PSG registers.
Engineers often refer to the distinct, raw square-wave audio produced by these chips as chiptune, a style still heavily emulated in retro-style hardware design.