Skip to main content
Visitor II
April 2, 2011
Question

output clock

  • April 2, 2011
  • 2 replies
  • 984 views
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

    Visitor II
    April 3, 2011
    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

    Visitor II
    April 3, 2011
    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