CONFIG SYSCLOCK XTINY

Top  Previous  Next

Action

Selects the oscillator source for the system clock.

 

 

Syntax

CONFIG SYSCLOCK=sysclock , CLOCKOUT=clockOtp,  PRESCALE=prescale

 

 

Remarks

SYSCLOCK

The oscillator used for generation of the system clock. This oscillator must be running.

Possible values:

- 20MHz : internal 20 MHz oscillator

- 32KHz_INT : internal ultra low power oscillator

- 32KHz_EXT : 32 Khz external crystal oscillator

- EXTERNAL : external clock

CLOCKOUT

The Xtiny can route the clock output to a pin. Select ENABLED or DISABLED.

Possible values:

1 , 2 ,4, 8, 16, 32, 64, 128,256,512

PRESCALE

The Xtiny can divide the oscillator clock with the following values :

1,2,4,8,10,12,16,24,32,48 and 64.

 

 

See also

 

 

 

Example

Config Sysclock = 20mhz , Prescale = 1 ' use 20 MHz system clock