Timerone function

Hello

I've used the arduino to program a PI controller for a linear actuator and I used the timerone.h library to make an interrupt as a timer for my integration.
This made me wonder. How does the timerone function? is it a hardware or a software interrupt? does it make a certain number of meaningless calculations to match the specified period?

I'm quite new to C programming so excuse me if it is a stupid question :slight_smile: references to background literature are welcome.

Thank you in advance

Kristian Justesen

Along with the timerone.h file, there should be a timerone.cpp file that answers all of your questions.

Or, you could look at the documentation for the timer1 library.
http://www.arduino.cc/playground/Code/Timer1

This library is a collection of routines for configuring the 16 bit hardware timer called Timer1 on the ATmega168/328.