These is the block circuit diagram: