When your intestines are backed up, as in constipation, it slows the rate in which your stomach can empty, which in turn may cause heartburn. Atonic colon is essentially a "vicious circle" phenomena.