TCS Pune

PIC: Timer Interrupt Fundamentals

Practical lesson

PIC: Timer Interrupt Fundamentals

Create periodic events without blocking the main program.

◷ 60 min

Parts and tools

  • PIC development board
  • PICkit
  • Oscilloscope or logic analyser

Lesson

Learning objective

Create periodic events without blocking the main program.

Procedure

  1. Review the circuit and confirm the board voltage.
  2. Build and inspect the wiring before applying power.
  3. Upload the example, observe the result and record your readings.
  4. Change one parameter, predict the result and test again.

Troubleshooting

Check power, ground, pin selection, polarity, compiler target and serial output. Use a multimeter or logic analyser where appropriate.

Example code

void __interrupt() isr(void){ /* clear flag, service event */ }

Knowledge check

Why must an interrupt flag be cleared?

Ready when you are

Need help with your laptop or computer?

Send us the model and fault details. Start your repair request online or contact TCS Pune directly.

WA