crystal osc.

Status
Not open for further replies.

t.man

New Member
how do i program the uC to use crystal osc. i'm using avr studio 4 and stk500?
i have a 6.144MHz crystal.
 
Hii,
In AVR microcontrollers, you have to set the fuse while programming the uc for enabling it to use external crystal (otherwise it will use internal 1Mhz crystal by default).

The Fuse LowByte is having 4 bits (CKSEL3..CKSEL0) for selecting the clock source, which can be set to to match your application. (check the 'memory programming' section of the datasheet of the AVR uc which you are using)

In AVR Studio, select the programming dialog for STK500, there you'll find FUSE tab. In that page, at SUT_CKSEL label, you can select the option you want for the external clock source

---------
Design with Microcontrollers
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…