A module on the microcontroller is configured using a contro
A module on the microcontroller is configured using a control register called CTL that has the format shown below. SLP CLK CAP IE 2- 3- 2- 1- · · · SLP: selects sleep mode; value between 0 and 3 CLK: selects clock speed, value between 0 and 7 CAP. selects built-in capacitor value, choice between 0 and 3 E: interrupt enable bit (1: enable/ 0: disable) To support programming the device, the environment has declared the symbolic constants: has declared the symbolic constants
Solution
a) line of code
SLP
SLE
CAP
b) higly maskable interrupt
lower value of CTP used
