Hello
I'm having trouble getting TIOB6 to work on PC26. I noticed there was a small voltage on the pin which //PIO_Configure(PIOA,PIO_OUTPUT_0,PIO_PA29,PIO_DEFAULT ) ; solves but regardless the pin still isn't set correctly. TIOA6 on PC25 works fine.
volatile int freq = 50000;
void setup(){
pmc_set_writeprotect(false);
pmc_enable_periph_clk((uint32_t)TC6_IRQn);
TC_Configure(TC2, 0,TC_CMR_WAVE|TC_CMR_WAVSEL_UP_RC|TC_CMR_TCCLKS_TIMER_CLOCK1|TC_CMR_ACPA_CLEAR|TC_CMR_ACPC_SET|TC_CMR_BCPB_CLEAR|TC_CMR_BCPC_SET);
TC_SetRA(TC2, 0, (freq/3));
TC_SetRB(TC2, 0, (freq/2));
TC_SetRC(TC2, 0, freq);
PIO_Configure(PIOC,PIO_PERIPH_B,PIO_PC25B_TIOA6,PIO_DEFAULT);
PIO_Configure(PIOC,PIO_PERIPH_B,PIO_PC26B_TIOB6,PIO_DEFAULT);
//PIO_Configure(PIOA,PIO_OUTPUT_0,PIO_PA29,PIO_DEFAULT ) ;
TC_Start(TC2, 0);
}
void loop(){
}
Any help much appreciated, Thanks Rufe0