Skip to main content
eeknight86
Associate
October 8, 2009
Question

About STM8 Minikit

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

About STM8 Minikit

    This topic has been closed for replies.

    6 replies

    mozra27
    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

    eeknight86
    Associate
    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?

    mgdaubo
    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?

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

    Oh! It works now.

    Thanks a lot.

    brazov2
    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

    mgdaubo
    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 ^^