Show how the input controller described in Example 8.13 on page 364 can be used for a volume control knob with an incremental encoder.
Example 8.13
Design an input controller that has 8-bit binary-coded input from a sensor. The value can be read from an 8-bit input register. The controller should interrupt the embedded Gumnut core when the input value changes. The controller is the only interrupt source in the system.