solved: clock example 2 not working on UC3C-EK

Go To Last Post
3 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Clock example 2 should output a clock onto GCLK0 pin(wich is LED3 according to the example doc). Unfortunatly i cannot see any clock on LED3 signal with my osci.

(ASF 3.2.1. Have not tried earlier versions of ASF yet.)

Has anyone used this example or the clock system of ASF successfully for clock output?

The example configures the GCLK0 Pin as normal GPIO pin as for LED usage. Maybe there's something different needed here for clock output?

Holger

Last Edited: Thu. Jun 21, 2012 - 09:44 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

This line is missing in main:

gpio_enable_module_pin(GCLK_PIN, GCLK_FUNCTION);	//enable GCLK output

I also commented out the following in init.c:

//gpio_configure_pin(LED3_GPIO,GPIO_DIR_OUTPUT | GPIO_INIT_HIGH);

Holger

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

ASF bugzilla:
[url]http://asf.atmel.com/bugzilla/sh...
[/url]