|
|
|
|
|
|
||
|
|
Quote:
If you are using a quartz crystal then set SUT1:0 to 11 (off,off) and CKSEL3:0 to 1111 (off,off,off,off). The other fuse bits are :- Low fuse: CKDIV8 = 1 (off) CKOUT = 1 (off) High fuse: RSTDSBL = 1 (off) DWEN = 1 (off) SPIEN = 0 (on) WDTON = 1 (off) EESAVE = 1 (off) BODLEVEL 2:0 = 111 (all off) extended fuse: SELFPRGEN =1 (off) NOTE: I discovered a mistake in my schematic. Pin 11 (not pin 19) is connected to R7 & R8. Please view the corrected diagram on the previous page of this thread! |
|
|
||
|
|
|
|
|
I just discovered a bug in my code, relating to the analog comparator (PB7 was being set to output instead of input, killing the inverting input reference voltage).
I have updated post #7 with corrected source code, and added hex files for those who don't have AVR Studio. |
|
|
|
|
||
|
Joined Oct 2012
175 Posts
|
Quote:
I have it ![]() fuse bit similar? can fuse bit not use quartz 16M? use internal oscillator of the ATmega8. ceramic oscillator ,quartz crystal both is quartz. why are different fuse bit ? |
|
|
||
|
|
||
|
|
No. A quartz 'crystal' is actually a wafer cut out of a single crystal of quartz (Silicon Dioxide). Ceramic resonators are made from bulk ceramic material, typically a powder made from tiny particles of Lead Zirconate Titanate mixed with an organic binder.
Quote:
To avoid timing errors the processor must be held in reset until the oscillator frequency stabilizes. A quartz crystal has very high Q factor which provides sharp resonance and high accuracy, but it takes a long time for the frequency to stabilize. A ceramic resonator has lower Q and so gets up to speed much faster (but is not as accurate). I don't think it would cause any harm to use crystal fuse settings with a ceramic resonator, as the startup time is not critical for this project. |
|
|
||
|
|
||
|
|
Quote:
The inverting input of the comparator (pin 11) is supplied with ~0.6V via R7/R8, so any higher voltage on the non-inverting input (pin 10) will be detected as 'pwm high'. |
|
|
||
|
|
|
|
Joined Oct 2012
175 Posts
|
@ Bruce abbot
I finished the circuit, now load file hex for ATmega8. i use quazt 16M Maybe software SPI PROPRAMER automatically install fuse bits for ATmega8, I click on the Fuse bits appear this image ![]() Is this fuse bits correctly ? because I'm afraid if the wrong fuse bits will kill atmaga8 help me |
|
|
|
| Thread Tools | |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Discussion circuit to go from brush to brushless motor | electrontube | Multirotor Talk | 2 | Jan 25, 2013 05:43 PM |
| Discussion Is this the only ESC compatible with Brushless and brushed motors? | Bigbond | Electric Power Cars | 7 | Jan 23, 2013 01:54 PM |
| New Product Unique Walkera V400D02 / V370D05 and RX2614V Brushed to Brushless Motor Converter | BlueHorizons | Product Announcements | 1 | Nov 18, 2012 11:02 AM |
| Help! Converting from Brushed to Brushless Motor | shah | Electric Plane Talk | 19 | May 04, 2009 11:50 PM |
| can astro gearboxes be converted for brushless motors | Joel K. Scholz | Power Systems | 5 | Mar 19, 2005 01:51 PM |