AnsweredAssumed Answered

Timer6 EXT_CLK mode

Question asked by tcmichals on Nov 4, 2010
Latest reply on Nov 9, 2010 by tcmichals

I want to make sure this is correct:

  • Goal: Use Timer6 with external clock source, ie TMR6 (TMR pin) (Max input clok is 30Khz, 50% duty cycle, SCLK at 133Mhz) and generate an interrupt when a count is reached.
  • Set TIMER_CONFIG6 to
    • TMODE 11 (EXT_CLK)
  • //Setting up command table for Timer 6
    ADI_TMR_GP_CMD_VALUE_PAIR TimerConfigurationTable[] = {


            { ADI_TMR_GP_CMD_SET_TIMER_MODE,            (void *)0x03            },
            { ADI_TMR_GP_CMD_SET_COUNT_METHOD,            (void *)TRUE            },
            { ADI_TMR_GP_CMD_SET_INTERRUPT_ENABLE,        (void *)TRUE            },
            { ADI_TMR_GP_CMD_SET_OUTPUT_PAD_DISABLE,    (void *)TRUE            },
            { ADI_TMR_GP_CMD_SET_PERIOD,                (void *)0x08000000        }, Or should this be a count?
            { ADI_TMR_GP_CMD_END,                        NULL                    },
    };

 

adi_tmr_GPControl(m_TimerType, ADI_TMR_GP_CMD_TABLE, TimerConfigurationTable);

 

Also set the PORTG_MUX BITS[9:8] to 0

 

Is this correct? 

Outcomes