Professional Documents
Culture Documents
As you can see' the clock )ultiplexer is gi&en an input fro) one of
the )any clock sources+ 6e will $e using the Crystal 2scillator+ hat
input goes #irectly to all the critical parts of the )icrocontroller' fro)
the C"U an# EE"R2!' to RA! an# your @"(2 pins+ he clock really is
at the heart of e&erything' gi&ing the entire syste) a $eat to
operate at+ "retty cool huh7
Choosing the &alues for the fuse $its
Eust to )ake sure we are on the sa)e page' CBSE1D++> )eans all the
CBSE1 $its fro) CBSE1> to CBSE1D+ CBSE1 stan#s for clock select'
an# tells our )icrocontroller what kin# of a clock we are using' an#
what its fre.uency is+ 1et,s look at a$le 3:
a$le F gi&es us so)e )ore #etail a$out CBSE1D++9 (note' not CBSE1>
-ust yet)' an# tells us what our options for CB2" are+ 6e will
progra) CB2" (set it to *ero) $ecause a progra))e# CB2" is
nee#e# when we are #ealing with higher fre.uency ranges' nee# a full
swing signal' or we are #ri&ing a secon# $uffer with the sa)e output
fro) the clock+ 6e )eet the first criteria (9= !%* is G 9 !%*)' so
we will set CB2" to >+ As a result' CBSE1D++9 can $e any of 9>9'
99>' or 999' it #oesn,t )atter+ 6e,ll go with setting the three
CBSE1 $its to 999 -ust for kicks+
@oo#' let,s )o&e on to the final three $its we ha&e to work on:
CBSE1>' SU9' an# SU>+
As you )ay notice' a$le 4 is the last piece of the pu**le+ (t tells us
exactly what CBSE1> an# SU9++> ha&e to $e< So let,s see' we
#eci#e# that we want the )axi)u) start;up ti)e earlier+ (n this ta$le'
that woul# correspon# to a Start;up i)e of 9=B CB an# an
A##itional Aelay of =4)s+ hus' CBSE1>' SU>' an# SU9 woul# all $e
unprogra))e# (set to 9)+
6e,re #one< o su))ari*e our $it settings' we ha&e:
CBSE1> H 9
CBSE19 H 9
CBSE13 H 9
CBSE1D H 9
SU9 H 9
SU3 H 9
CB2" H >
Setting the fuse $ytes
6e know exactly which $its we nee# to change in the fuse $ytes' so
let,s look at how the fuse $ytes are organi*e#+ %ea# o&er to the
chapter calle# !e)ory "rogra))ing on page 394+ As ( sai#' there are
two fuse $ytes' the high fuse $yte' an# the low+ he $its we nee# to
set are scattere# insi#e these two $ytes' so we nee# to fin# which
one is where' an# change it without changing any of the other ones+
ake note of the #efault &alues in the fourth colu)ns of the following
two ta$les+
a$le 0C shows the $its insi#e the high fuse $yte+ he only one we
want to change is CB2" ($it F) to >+ So the high fuse $yte shoul#
$e 99>>9>>9 in $inary' or CI in hexa#eci)al+
Si)ilarly' a$le 00 is the ta$le for the low fuse $yte+ 6e ha&e = $its
to change in here' an# in the en#' our low fuse $yte shoul# $e
99999999 in $inary' or FF in hexa#eci)al+
6e,re al)ost at the final step<
Setting Up the %ar#ware
Finally' you are at the point at which you are rea#y to $urn the fuse
$its into your )icrocontroller+ But you want to )ake sure you ha&e
the crystal connecte# to your AVR too' so follow the sche)atic
$elow: