Skip to main content
Visitor II
October 8, 2009
Question

About STM8 Minikit

  • October 8, 2009
  • 6 replies
  • 1320 views
Posted on October 08, 2009 at 03:01

About STM8 Minikit

    This topic has been closed for replies.

    6 replies

    Visitor II
    May 17, 2011
    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?

    Visitor II
    May 17, 2011
    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

    Visitor II
    May 17, 2011
    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

    Visitor II
    May 17, 2011
    Posted on May 17, 2011 at 15:04

    Oh! It works now.

    Thanks a lot.

    Visitor II
    May 17, 2011
    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?

    Visitor II
    May 17, 2011
    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 ^^