An interrupt could be generated for example by a timer in a predefined frequency , or by a serial port receiving a byte . An interrupt could be generated for example by a timer in a predefined frequency , or by a serial port controller receiving a byte .