Member Login
 ѤҪԡ
 к:
ʼҹ?
ʶԵҪԡ:
Total:16,618
Latest:
anuchakaewhin
Onlines:
ؤŷ:30 

Category

ʹءѺ AVR ͹ : Ը ó Set OSC Fuse Bit Դ AVR ӧҹ

All Articles >> C for Microcontroller >> - ʹءѺ AVR ͹ : Ը ó Set OSC Fuse Bit Դ AVR ӧҹ

ʹءѺ AVR ͹ : Ը ó Set OSC Fuse Bit Դ AVR ӧҹ

ӹ
ҡ 2 ͹ҹ Fuse Bit ǢͧѺ Oscillator ӹǹ 7 bit ҡ Set դ ԴҴѺʹ ͡ʷ AVR ǹ ӧҹ …AVR ǹ¹ФѺ
͹ ʹԸ ѺҹѺ

Һ
Ըշз AVR Ѻҹѧ ѹ˵بҡ Set Fuse Osc Bit Դ 3 Ը
1) Parallel Programmer ¶֧ ʹ IC AVR ͧ͡ Programmer ͧ
HILO ALL-11 觨ö ҧ/ Fuse Bit AVR ͹
(͹ ҡӧҹ ʶҹ֡ ¤Ѻ ѺѤ ᾧԹ
ЫѺ䢻ѭҹ)
2) JTAG ͧҡ JTAG ͧ Clock AVR
3) External Clock AVR Ƿջѭ ͹͢ͷҨҷӤ㨡ѹѺ
Ըաҧ

·任ѭҷԴѡٻẺѧѺ
- 㨼Դҧ Programmed, UnProgrammed 0 1 еͧ Click ͡
ҧ Ponyprog2000

Һ͡ Ҥԡçͧҧ  ¶֧ Fuse Bit 鹨 0 ФѺ


¶֧ SUT1 CKSEL 0 ͡ = 1
ѭ óշҵͧ XTAL 12 MHz 㨵çԴ ¤ԡ


Դ͹ ѹҡѺ CKSEL =0000 External Clock
ҵҹ XTAL ѹӧҹ 䧴

ǧ External Clock
Ը䢻ѭ ҧǧ External Clock ¹繺á ǧôҹҧ

ͧǧöӹǹҡôѧ仹
f = 1/(2.2CR)

f : The oscillation frequency (Hz)
C : The capacitor (F)
R : The resistor (ohm)
· Rp դҡѺ 10 Ңͧ R1 Ҩ͡դҡ 100K
Invertor Ҩ CD4069, 74LS06, 74LS14 繵
͡ Rp = 1M, R1=68 K, C1= 15pF Clock ҳ 440 KHz

û鹵͹䢻ѭ Set Fuse OSC Դ
ػóͧ

1) ǧ Ext. Clock Сͺ
- IC, 74LS14 1
- R, 1M 1/4W 5% 1
- R, 68K 1/4W 5% 1
- C, 15pF 50V 1
2) Proto Board, Թǧ
3) 5 Volt Power Supply
4) ͧ Pony STK200/300
5) Ponyprog2000

鹵͹
1) Ext Clock 440KHz
2) AVR ջѭ͡Ҩҡ Board ҵǧô Proto Board




3) § 5VDC
4) Read Configuration and Security bits Ponyprog2000 Ҷ١ set OSC Դ˹ ?
蹨ҡҧ ҹ AVR ǹ١ Set Ext Clock


ҡ Ponyprog Error ö Read

ͧ͹ Ext. Clock ҷ XTAL2 ᷹ ǡ Read ա

ҹ价 5 ѧҹʴ AVR ١ Set Fuse Ǣ Reserve ͧ¡ҹ/¹ Configuration Parallel Programmer ALL-11 ҹ ֧öѺҹ

5) ӡ Set Fuse Bit ͧ ǡ Write ˹ҵҧ Configuration and Security bits



ͧԴ ͧ䢡ѹٹФѺ
ͧ Set AVR ӧҹ XTAL 12 MHz, Ѻʹ Fuse Դ ѡɳ Oscillator Type ҧѹ

˵ ͡Դ Ext RC OSC
ҡ AVR ӧҹ ͵ǧ XTAL 12MHz
ǧ External Clock 440 KHz
š öҹͧ ͵ǧ XTAL 12MHz

˵ ͡Դ Int RC OSC
ҡ AVR ӧҹ ͵ǧ XTAL 12MHz
ǧ External Clock 440 KHz
š öҹͧ ͵ǧ XTAL 12MHz

˵ ͡Դ Ext Clock
ҡ AVR ӧҹ ͵ǧ XTAL 12MHz
ǧ External Clock 440 KHz
š öҹͧ ͵ǧ XTAL 12MHz

͹䢢ͧ䢻ѭҴԸչ
ҡ÷ͧͧԸչö䢻ѭ֧ 93% ͧٻẺ͡ OSC Fuse öѭ价ӡ Fuse DataSheet к Reserve ͹ OSC Fuse Reserve § 7%ͧٻẺ Fuse ͡ ҡҾԨóҨǹ˭Ф͡óբͧ Set SUT = 11 ѧҡ Set SUT = 11 ͧͺͺ Ҩз AVR ӧҹ


ػ
öѭѺ ҹ Set Դ AVR ӧҹ ǹФѺ 㹵͹ ¹͸Ժ¡ҹ AVR աµ͹Դ͡ѹ ¨Ѻҡûءá繪ǧ令Ѻ