Wireless Mesh Stack and External Clock Source?

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

Hi All and Alex

 

I am using the ATMEGA 1284p and AT86RF233 with the Mesh Stack.

 

I would like to know how I can swap the clock source from the internal RC to the clock being outputted on CLKM pin from AT86RF233?

 

I have set the fuse on the AVR to an external input, but I am guessing there is much more then that?

 

Ideally I would like to set it to 8Mhz or 4Mhz.

 

Thank You

 

Regards

 

 

Thanks

Regards

DJ

Last Edited: Fri. Oct 16, 2015 - 12:22 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

djoshi wrote:
 the Mesh Stack.

Which "Mesh Stack"?

 

This one: http://www.atmel.com/tools/light... ?

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

Just select external clock in the fuses, that's it if you want to run at 1 MHz (the default for the radio). If you want higher frequency, then you'll need to program the radio to provide that frequency. It is a simple register write, you can put it in the PHY_Init() function, for example.

NOTE: I no longer actively read this forum. Please ask your question on www.eevblog.com/forum if you want my answer.