Bengt-Olov Andersson

Clock init problems with 9S08DZ32

Discussion created by Bengt-Olov Andersson on Dec 16, 2008
Latest reply on Dec 16, 2008 by Bengt-Olov Andersson



I'm trying to start an application in 9S08DZ32 for the first time but I have serious problems when setting up the MCG. First I try the example #1 in the data sheet at page 154 ( and it works fine. Then I try to change the settings just slightly by changing VDIV from 0100 ( * 16) to 0101 ( * 20) and now it won't work anymore. My target is to reach a bus frequency of 20 MHz but I first try with small increments.



Is this a valid change in VDIV or are there dependencies in other registers that I can’t understand. 


I'm using CW v6.2