Example Code

Microcontroller interrupt code

I would like to ask you that I want to write code in C language or asm using the microcontroller PIC16F84, when I applicate a voltage on RA4/T0CKI of PORTA an interrupt hapens making the program switchs or jumps to second sub function or loop void interrupt() doing some instructions and back after it has finished or done to the main program void main() that means switching or moving between two functions by interrupt.
is it possible?.

    thank you.

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.