cancel
Showing results for 
Search instead for 
Did you mean: 

About STM8 Minikit

eeknight86
Associate II
Posted on October 08, 2009 at 03:01

About STM8 Minikit

6 REPLIES 6
eeknight86
Associate II
Posted on May 17, 2011 at 15:04

When I replace the 8MHz crystal on the STM8 Minikit

with the 24MHz one, it does not work. But with the 20MHz

one, it works. Can anyone tell me why?

mozra27
Associate II
Posted on May 17, 2011 at 15:04

Hi,

To make the crystal 24MHz working on the STM8 Minikit you can configure the wait state option before running your application.

Regards

mozra

brazov2
Associate II
Posted on May 17, 2011 at 15:04

Hi,

''Wait state'' is an option byte (OPT7):

have a look here (page 47):

http://www.st.com/stonline/products/literature/ds/14733.pdf

Coluber

eeknight86
Associate II
Posted on May 17, 2011 at 15:04

Oh! It works now.

Thanks a lot.

mgdaubo
Associate II
Posted on May 17, 2011 at 15:04

Hi.

I'm using STM8S207K6, it's ok with 16MHz crystal or lower. But with 20MHz crystal, it works only when i set the prescale = 2; (CPU clock = 20MHz/2 = 10MHz).

So what should i do to make it work with 20MHz CPU-clock? How can i configure the wait stage?

mgdaubo
Associate II
Posted on May 17, 2011 at 15:04

Oh thanks for your attention ^^

Follow your link, using STVP, i just simple configure the wait stage to ''1 wait stage'' in the option byte tab, and it runs at 20MHz clock ^^

Many thanks ^^