Digital controller for low power AMLCD-equipped portable devices