chipKIT® Development Platform

Inspired by Arduino™

example code for timer input capture?

Created Sat, 28 May 2011 18:43:00 +0000 by jbeale


jbeale

Sat, 28 May 2011 18:43:00 +0000

I'm interested in using the PIC32's timer input capture mode to measure pulsewidths with better accuracy (80 MHz clock = 12.5 ns resolution) than I can get with a stock 16 MHz Arduino.

Are there any examples of such a thing online? Can it be done using the Chipkit version of the standard Arduino dev environment? Which timers does the system use (eg. millis() clock)?


Mark

Sun, 29 May 2011 02:28:26 +0000

It definitely can be done. Its something I have to get working for a project my Dad is working on so it will get done sooner or later. Its on my priority list but not at the top. Maybe someone else will get it done before me.

Mark