--- In AVR-Chat@yahoogroups.com, "warm38spl" <warm38@...> wrote: > TDC0.CNT = 0x0000; > TCD0.CCA = 0x0000; > TCD0.PER = 0x065F; > TCD0.CTRLA = TC_CLKSEL_DIV1_gc; Either you didn't show us all of your initialization or you're missing something. You also need something like shown below (insert prior to the write to CTRLA), assuming the use of event channel 0. TCD0.CTRLB = TC0_CCAEN_bm; TCD0.CTRLD = TC_EVACT_CAPT_gc | TC_EVSEL_CH0_gc | 0x0002; You also didn't show your event channel configuration or the configuration of the pin for event generation so there could be something wrong with those, too. Don Kinzer ZBasic Microcontrollers http://www.zbasic.net
Message
Re: ATxmega64A3 Capture TCD0.CCA problem
2011-07-27 by Don Kinzer