• Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Pic input capture

Status
Not open for further replies.
I have this doubt about pic controllers or in general micro controllers if i have two input capture modules and if there are two timers you can configure to input capture. Should different timers need to be configured to different input capture or same timer can be configured to both the modules.
 

cowboybob

Well-Known Member
Most Helpful Member
Should different timers need to be configured to different input capture or same timer can be configured to both the modules
Of course, it largely depends on the μC, but:

If the "input capture" events will always occur at different times or under different circumstances, one timer with suffice. In this case, of course, you'll have to have some manner of identifying which event is currently being captured. And you may have to perform some interim timer manipulation to accommodate differing event parameters. There might also be issues with the timing between events, especially if that timing is extremely short, i.e., μsecs.

If the "input capture" events might occur simultaneously, then 2, different timers must be used.
 
Iam sorry i have not explained the question properly. The two capture events are connected to different hardware pins. There is no dependancy between the two.
 
Status
Not open for further replies.

Latest threads

EE World Online Articles

Loading
Top