Newbie level 1
I want to know how I can use an external interrupt to control a timer interrupt. I am using keil as my compiler and programming in c. Let's say I want to produce a square wave in the timer interrupt and then every time my external interrupt is active I want to turn off/turn on the square wave. I pretty much just want to know how I can use the external interrupt to control my timer interrupt or would I just complement the square wave in the external interrupt anytime the external interrupt is activated? Any advice on how to go about doing this would be great. Thanks!