I'm trying to output a 2Mhz clock to pin PE0 which has a peripheral B function of TIOA9 which is Timer-Counter 3 (TC3) Channel 0. I am trying to use START to configure this but I am not getting an output, the pin just stays high.
In START I selected the Timer_0 driver which I added to the project to edit the parameters. I selected the HAL:Driver:Timer from Driver and TC3 for the Instance and selected PE0 (TIOA/9) checkbox to assign this pin to this channel. For the Timer configuration on TC3 below that I selected MCK/8 and put in 100us for the tic time. All other boxes left unchecked (Event output enable, external events/trigger, fault output control). Then Gen Proj, and compiled.
If I check the pin mux configurator I see that pin is assigned to the timer_0 peripheral so that's good.
in the driver_init.c code I see the following code was inserted:
* Enables Timer peripheral, clocks and initializes Timer driver
static void TIMER_0_init(void)
timer_init(&TIMER_0, TC3, _tc_get_timer());
Is there anything additional I need to do to get this signal to the pin? Thanks.