How to use internal osilator

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 4.
To post in this forum you must have a registered copy of Flowcode 4 or higher. To sign up for this forum topic please use the "Online Resources" link in the Flowcode Help Menu.

Moderator: Benj

Post Reply
cvanhal
Posts: 23
Joined: Wed Aug 26, 2009 8:51 am
Has thanked: 10 times
Contact:

How to use internal osilator

Post by cvanhal »

Dear,

I have question about Flowcode V4 for AVR.

I want to use the internal ocilator in the Amtel chip, when i see the help file there is an menu used for it..

as i use the AVR flowcode there is nu use of the menu..

is someone knows how to set the internal ocilator with Flowcode V4..

Thx..

Spanish_dude
Posts: 594
Joined: Thu Sep 17, 2009 7:52 am
Location: Belgium
Has thanked: 63 times
Been thanked: 102 times
Contact:

Re: How to use internal osilator

Post by Spanish_dude »

I do not have Flowcode v4 for AVR so I don't know how you would change that, but I do know that you'll need to change the fusebits to enable the internal oscillator.

Fusebits calculator : http://www.engbedded.com/fusecalc/

cheers,

Nicolas

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: How to use internal osilator

Post by medelec35 »

Spanish_dude wrote: Fusebits calculator : http://www.engbedded.com/fusecalc/
Very good link Nicolas.
That will come in handy!

Martin
Martin

cvanhal
Posts: 23
Joined: Wed Aug 26, 2009 8:51 am
Has thanked: 10 times
Contact:

Re: How to use internal osilator

Post by cvanhal »

Thank you for reply..

I think i will read the link and try to find the way to implement this..

Iam new at programming and can only use Flowcode...

Thx very much. :D

cvanhal
Posts: 23
Joined: Wed Aug 26, 2009 8:51 am
Has thanked: 10 times
Contact:

Re: How to use internal osilator

Post by cvanhal »

OK found it out..

in configuration option is this standard writen for the chip "0x0,0xdf" (maybe someone how underestand this and can explain.
out of the websit te i get the folow calculation.
0x42 0xdf 0xF9* with star..

The Star qoute this:
"
* Note that some numerical values refer to fuses containing undefined bits (set to '1' here). Depending on the target device these fuse bits will be read either as '0' or '1'. Verification errors will occur if the values are read back with undefined bits set to '0'. Everything is fine if the values read from the device are either the same as programmed, or the following values (undefined set to '0'): Extended: 0x01.
"
end Quote.

Is eny budy beable to explain this???

Thx

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: How to use internal osilator

Post by Benj »

Hello,

I think to get your configuration programmed into the device you would enter this into the configuration window.

0x42, 0xdf, 0xF9

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: How to use internal osilator

Post by Benj »

Sorry I got that wrong,

I have asked Sean and these are his correct comments.

The fuse settings are programmed as pairs of values. The first value is an identifier for the register to be programmed with the second value:

0x0 = High byte
0x1 = Low byte
0x2 = Extended byte

Devices with only one fuse register shoul dbe programmed using the 0x0 identifier. Devices with two fuse registers only need High and Low byte values to be sent

Our standard recommendation for the ATmega324P, running at full speed from an external xtal, is:

0x0, 0xdf
0x1, 0xff
0x2, 0xff

Post Reply