![]() ![]() This option only works with the SOFT clock mode. The usage of the optional SECTIC routine will use 30 bytes of the hardware stack. It is important that you use the name SECTIC and that you return with a RETURN statement from this label. ![]() Since the interrupt occurs every second you may handle various tasks in the sectic label. This option allows to jump to a user routine with the label sectic. Use USER to write/use your own code in combination with an I2C clock chip for example. In general you enable global interrupts after all interrupts are setup.įor the SOFT mode you need to connect a special low frequency crystal with a value of 32768 Hz to the ASYNC TIMER oscillator pins. While the compiler could enable the global interrupt automatic, you would not have control anymore when it is enabled when using multiple interrupts. The timer interrupt is enabled automatic but the global interrupt you need to enable yourself. You need to add an ENABLE INTERRUPTS statement to your code since the SOFT mode uses the timer in interrupt mode. Use SOFT for using the software based clock routines. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |