{"id":1185,"date":"2020-11-27T15:24:15","date_gmt":"2020-11-27T15:24:15","guid":{"rendered":"https:\/\/ibex.tech\/embedded\/?p=1185"},"modified":"2024-07-18T15:41:01","modified_gmt":"2024-07-18T14:41:01","slug":"tmr0-pic12","status":"publish","type":"post","link":"https:\/\/ibex.tech\/embedded\/microchip\/mplab-x\/mcc\/peripherals\/pic12-peripherals\/tmr0-pic12","title":{"rendered":"TMR (using MCC)"},"content":{"rendered":"\n<h4 class=\"wp-block-heading\">TMR0 &#8211; IRQ<\/h4>\n\n\n\n<h5 class=\"wp-block-heading\">Using your own irq function<\/h5>\n\n\n\n<pre class=\"wp-block-code\"><code>\n\t\/\/----- ENABLE INTERRUPTS -----\n\tINTCONbits.PEIE = 1;\n\tENABLE_INT;\n\n\t\n\t\/\/----- SET ADDRESS OF OUR INTERRUPT HANDLERS -----\n\tTMR0_SetInterruptHandler(*Our_TMR0_InterruptHandler);\t\t\/\/No need to start TMR0, it will already be running\n\n\n\/\/***********************************************\n\/\/***********************************************\n\/\/********** TIMER 0 INTERRUPT HANDLER **********\n\/\/***********************************************\n\/\/***********************************************\nvoid Our_TMR0_InterruptHandler(void) \n{\n\n}<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>TMR0 &#8211; IRQ Using your own irq function<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[129,132],"tags":[],"class_list":["post-1185","post","type-post","status-publish","format-standard","hentry","category-pic12-peripherals","category-timers-and-delays-xc8-compiler-pic12"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/embedded\/wp-json\/wp\/v2\/posts\/1185","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibex.tech\/embedded\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibex.tech\/embedded\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibex.tech\/embedded\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ibex.tech\/embedded\/wp-json\/wp\/v2\/comments?post=1185"}],"version-history":[{"count":3,"href":"https:\/\/ibex.tech\/embedded\/wp-json\/wp\/v2\/posts\/1185\/revisions"}],"predecessor-version":[{"id":1558,"href":"https:\/\/ibex.tech\/embedded\/wp-json\/wp\/v2\/posts\/1185\/revisions\/1558"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/embedded\/wp-json\/wp\/v2\/media?parent=1185"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/embedded\/wp-json\/wp\/v2\/categories?post=1185"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/embedded\/wp-json\/wp\/v2\/tags?post=1185"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}