2.4 Main Routine
In the main()
function, all the previous configuration functions are
executed before the TCs are enabled. To lower the power
consumption, the device is set to enter Standby sleep mode.
Since peripherals and clock sources are set to run in standby,
the device will continue to generate the encoded signal while
sleeping.