Firmware - C Code

Implementation of Initialization and Interrupt Service Routine in C language is the same as that of Assembly language. For more details, refer Firmware - Assembly Code. It is to be noted that ISR implemented in C language takes 46 CPU cycles with Optimization set to Os.