clock  1.4
Clock functions for Xmega
clock.h File Reference

Clock functions for Xmega. More...

Go to the source code of this file.

Functions

void Config32MHzClock (void)
 Enables clock with 32 MHz internal RC oscillator. More...
 
void Config32MHzClock_Ext16M (void)
 Enables 32 MHz clock with an external 16 MHz crystal. More...
 
void Config16MHzClock_Ext16M (void)
 Enables 16 MHz clock with an external 16 MHz crystal. More...
 
void init_clock (void)
 Enables 32 MHz clock with an external 16 MHz crystal. More...
 
void AutoCalibration32M (void)
 Autocalibrates 32 MHz internal RC oscillator. More...
 
void AutoCalibration2M (void)
 Autocalibrates 2 MHz internal RC oscillator. More...
 
void AutoCalibrationTosc32M (void)
 Calibrates 32 MHz internal RC oscillator with external 32 kHz crystal. More...
 
void AutoCalibrationTosc2M (void)
 Calibrates 2 MHz internal RC oscillator with external 32 kHz crystal. More...
 

Detailed Description

Clock functions for Xmega.

Author
Wim Dolman (w.e.dolman@hva.nl)
Date
10-07-2019
Version
1.4

Function Documentation

◆ AutoCalibration2M()

void AutoCalibration2M ( void  )

Autocalibrates 2 MHz internal RC oscillator.

This example is code 23.26 from 'De taal C en de Xmega' second edition, see Voorbeelden uit 'De taal C en de Xmega'

Returns
void

◆ AutoCalibration32M()

void AutoCalibration32M ( void  )

Autocalibrates 32 MHz internal RC oscillator.

This example is code 23.25 from 'De taal C en de Xmega' second edition, see Voorbeelden uit 'De taal C en de Xmega'

Returns
void

◆ AutoCalibrationTosc2M()

void AutoCalibrationTosc2M ( void  )

Calibrates 2 MHz internal RC oscillator with external 32 kHz crystal.

This function is useful with het HvA-Xmegaboard version 1, which has a 32 kHz crystal

Returns
void

◆ AutoCalibrationTosc32M()

void AutoCalibrationTosc32M ( void  )

Calibrates 32 MHz internal RC oscillator with external 32 kHz crystal.

This function is useful with het HvA-Xmegaboard version 1, which has a 32 kHz crystal

This example is code 23.27 from 'De taal C en de Xmega' second edition, see Voorbeelden uit 'De taal C en de Xmega'

Returns
void

◆ Config16MHzClock_Ext16M()

void Config16MHzClock_Ext16M ( void  )

Enables 16 MHz clock with an external 16 MHz crystal.

This function is useful with het HvA-Xmegaboard version 2, which has a 16 MHz crystal

Returns
void

◆ Config32MHzClock()

void Config32MHzClock ( void  )

Enables clock with 32 MHz internal RC oscillator.

This example is code 23.24 from 'De taal C en de Xmega' second edition, see Voorbeelden uit 'De taal C en de Xmega'

Returns
void

◆ Config32MHzClock_Ext16M()

void Config32MHzClock_Ext16M ( void  )

Enables 32 MHz clock with an external 16 MHz crystal.

This function is useful with het HvA-Xmegaboard version 2, which has a 16 MHz crystal

This example is code 23.28 from 'De taal C en de Xmega' second edition, see Voorbeelden uit 'De taal C en de Xmega'

Returns
void

◆ init_clock()

void init_clock ( void  )
inline

Enables 32 MHz clock with an external 16 MHz crystal.

This inline function is useful with het HvA-Xmegaboard version 2, which has a 16 MHz crystal

Returns
void