Code needed in HCS12 microcontroller
Write a C or assembly program for a digital clock. IRQ is connected to a function generation. If the frequency of the function generator is 30HZ, the IRQ is interrupted 30 times in each second. In IRQ ISR, increment the time by one second every time the IRQ is interrupted 30 times. It may not be a good idea to use 1Hz frequency because any error in the frequency can cause
OR
OR