cancel
Showing results for 
Search instead for 
Did you mean: 

output clock

nad
Associate II
Posted on April 02, 2011 at 14:41

hello

,

please

 

tell me

 

how

 

can

 

I

 

program a 

output

 

clock

 

for

 

another

 

sequential circuit

 

outside

#external-clock #timer #cco
2 REPLIES 2
spiovan9
Associate II
Posted on April 03, 2011 at 11:33

Hi George,

In my opinion, the following ways according to the frequency out you want:

- set-up an interrupt routine triggered by TIMER in which you toggle a GPIO on/off (maybe slow)

- capture compare a TIMER1 (quite fast) and flexible in frequency out value

- route the fCPU clock out to the CCO pin but it is limited to fixed binary division factor

Hope it helps

Stefano

spiovan9
Associate II
Posted on April 03, 2011 at 11:38

Hi George,

In my opinion, the following ways according to the frequency out you want:

- set-up an interrupt routine that is triggered by one of the stm8s 3 timers in which you toggle a GPIO on/off (slow)

- capture compare a TIMER1 (faster and flexible) in frequency out values

- route the fCPU clock out to the CCO pin but it is limited to fixed binary division factor (see Fig. 13. Clock tree -Stm8 family reference manual)

Hope it helps

Stefano