Skip to main content
nad
Associate III
Apr 2, 2011 12:41 PM UTC
Question

output clock

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
This topic has been closed for replies.

2 replies

spiovan9
Associate III
Apr 3, 2011 9:33 AM UTC
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 III
Apr 3, 2011 9:38 AM UTC
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