#avr | Logs for 2012-12-14

Back
[03:27:08] <iSaleK> Hey guys I've found one atmega8 who's fuses have been set wrong few months ago. Since I didn't know what to do with it I left it aside and now I've found it again. I think the fuses were set to some low oscilator freq and fast boot time or something like that
[03:28:24] <iSaleK> I've tried 32khz, 1mhz, 4mhz, 8mhz, 10mhz and 12mhz but nothing seems to work
[03:28:35] <iSaleK> the usbasp just says it cannot find the device :\
[03:28:44] <iSaleK> Any ideas what to do now?
[03:28:57] <iSaleK> I could really use this atmega8 now :)
[03:28:58] <jadew> did you try crystals or a real clock?
[03:29:27] <iSaleK> I've tried these crystals that I've said above, non of them worked
[03:29:39] <jadew> try feeding it a real clock signal
[03:29:52] <jadew> (generate a square wave and put it on xtal1)
[03:30:15] <iSaleK> Ok, I will try that one since I have one attiny2313 laying around :)
[03:30:23] <iSaleK> What the frequency should be?
[03:30:38] <jadew> don't know, anything should work
[03:30:56] <Tom_itx> nope it needs to be 4x the isp frequency to work
[03:31:13] <jadew> which is like 100khz
[03:31:14] <Tom_itx> so set a low isp frequency for one
[03:31:42] <Tom_itx> i run mine on the programmer at 4mhz
[03:33:38] <iSaleK> So I have to make the frequency that is programmer freq/4 or 4xprogrammer freq?
[03:34:00] <Tom_itx> 4x the isp spi frequency
[03:34:21] <Tom_itx> http://www2.electronicproducts.com/The_Netherlands_to_introduce_world_s_first_glow_in_the_dark_highways-article-fajb_glowing_highways_dec2012-html.aspx
[03:34:28] <jadew> if you go with a Mhz freq, you'll be fine
[03:34:40] <jadew> just use another one to generate something on a pin
[03:35:54] <iSaleK> well my usbasp has 12MHZ crystal, what frequeny should I generate?
[03:35:54] <Tom_itx> yeah you can try 1mhz and see
[03:36:20] <iSaleK> I've tried 32khz, 1mhz, 4mhz, 8mhz, 10mhz and 12mhz but nothing seems to work... :\
[03:36:35] <Tom_itx> got the right xtal pin?
[03:36:40] <Tom_itx> make sure of that
[03:37:30] <iSaleK> Well I'll try now with generated clock from attiny2313 since last night I was trying with 1.8Mhz crystal
[03:37:47] <iSaleK> It wasn't exactlly 1MHz, it was one for perfect baud rate
[03:54:13] <Tom_itx> doesn't have to be exact just at least 4x the spi frequency
[04:07:35] <CoolBear> This is one of the reasons I prefer a programmer that can adjust the isp frequency.
[04:11:03] <CoolBear> (And capable of HVP, then almost any matter(appart from death) can be rectified.)
[04:29:49] <iSaleK> So I'm trying with the simple 1MHz square wave signal from attiny2313 to make clock to my atmega8 but it doesn't work :\
[04:30:02] <Richard_Cavell> aha
[04:30:10] <Richard_Cavell> using one avr to clock another
[04:30:29] <Richard_Cavell> I would like to use an Intel Core i7 to clock an 8-bit CPU
[04:31:13] <iSaleK> My fuses on atmega8 have been set wrong :)
[04:40:16] <iSaleK> So I've tried all variants from 1us to 100ms on XTAL1 pin and none of them works :\
[04:40:37] <iSaleK> eXtreme Burner can't find atmega8 with usbasp :\
[04:42:13] <jacekowski> it has to be nice and clean sine wave
[04:42:22] <jacekowski> or nice and clean square wave
[04:43:07] <iSaleK> I'm making it trough code on tiny2313 with toggling pin and then _delay_us() or _delay_ms()
[04:46:31] <iSaleK> Is that clean enough? :)
[06:26:17] <iSaleK> Does anyone have the idea on how to make this clean square wave clock to clock my atmega8 wich has wrong fuses set?
[06:28:04] <Horologium> just a sec..looking up something on the attiny2313
[06:30:45] <iSaleK> ok :)
[06:31:02] <iSaleK> I'm using tiny2313 to make clock for this atmega8 :)
[06:33:50] <Horologium> ok..as I thought...the attiny2313 has an xck output.
[06:34:32] <Horologium> it is possible to set physical pin 6 on the dip package, PD2, as an output of the system clock.
[06:35:26] <Horologium> or rather, CKOUT, which is the same pin...
[06:35:58] <yunta> oh, pretty solution!
[06:36:00] <Horologium> page 160 of the datasheet.
[06:36:09] <Horologium> you set a fuse that turns that on.
[06:36:23] <Horologium> I've used it on larger chips to synchronize clocks between processors.
[06:37:07] <iSaleK> Ok, so I set that fuse to ckout and then connect that pin to atmega7 xtal1 pin?
[06:37:10] <Horologium> that way the attiny2313 can be doing anything, or nothing, so long as the system clock is running, that pin is toggling at whatever clock speed the processor is running.
[06:37:15] <Horologium> yes.
[06:37:48] <iSaleK> Ok, I'll do it now
[06:37:52] <Horologium> assuming the fuses aren't set in some manner keeping the chip from being programmed elsewise.
[06:38:03] <iSaleK> Crystal of 1MHZ on tiny would be ok?
[06:39:45] <Horologium> sure.
[06:40:03] <Horologium> if the reset pin on the atmega8 has been turned off then you will need to do high voltage programming..
[06:40:28] <iSaleK> Ok, I'm going to try that one with the 1MHZ
[06:40:36] <iSaleK> I'll let you know how it goes :)
[06:43:30] <Horologium> ok.
[06:46:14] <Horologium> page 219 of the atmega8 datasheet talks about high voltage programming..they just call it parallel programming.
[06:46:28] <Horologium> but it allows you to program the chip if the reset pin has been turned into a GPIO pin.
[06:53:03] <iSaleK> I'll use it as last resort since I don't have paralel port nether the required IC's for high voltage programming :)
[06:53:36] <Horologium> well, you don't necessarily use a parallel port.
[06:53:58] <Horologium> generally I've used another avr and built a high voltage programmer...or used a programmer capable of it.
[06:55:40] <Horologium> it would be possible, with a few switches, to do it manually.
[06:56:58] <Horologium> datasheet page 225 shows the programming sequence.
[06:57:15] <Horologium> you would just need some switches and one debounced pushbutton.
[06:58:22] <Horologium> 11 switches and a debounced pushbutton...a 5V source and a 12V source.
[06:58:56] <Horologium> makes me nostalgic...loading program with switches on the old old processors..
[06:59:12] <Horologium> now I need to find a bunch of switches and make a manual programmer...
[07:06:55] <iSaleK> I emailed one of my asisstents on college asking if they have high voltage programmer :)
[07:07:19] <iSaleK> Since I know they are using avr and they even programmed my first AVR-911 :)
[07:11:39] <iSaleK> If I have 13V source and 5V source. Tiny2313 and wrong fuses on atmega8. can I programm tiny2313 to restore fuses on mega8?
[07:13:25] <Horologium> 12V....well, 11.5 to 12.5
[07:13:30] <Horologium> but,
[07:13:33] <Horologium> it is possible to do, yes
[07:14:23] <Horologium> http://www.instructables.com/id/AVR-Attiny-fusebit-doctor-HVSP/
[07:14:42] <Horologium> wait.
[07:14:52] <Horologium> that only does hvsp, not hvpp which is what the atmega8 needs.
[07:16:28] <Horologium> it would be possible, yes...not seeing anywhere that anybody has done it with an attiny, however.
[07:16:41] <Horologium> I do see one done with an atmega8 as the main controller, but that is out for you.
[07:17:32] <Horologium> and, would love to stay and help but gotta go to doc.
[07:17:47] <Horologium> think I might be able to do windows now...I have pneumonia.
[07:20:31] <iSaleK> Thanks anyway. I've got the reply to my email. They only have all pic programmer from high voltage programmers so it's bad luck for me :)
[07:21:03] <Tom_itx> iSaleK,
[07:21:22] <Tom_itx> it may not be the issue with the clock. maybe you set a lock bit or something
[07:21:29] <Tom_itx> or it could be the chip is actually bad
[07:21:50] <Tom_itx> a dragon will do hvpp
[07:22:43] <Tom_itx> seems more often than not it's a mega8 that's screwed up. i wonder what's up with that
[07:23:45] <iSaleK> I'm pretty sure that fuses are wrong
[07:23:58] <iSaleK> Since I don't remmember touching lock bits or anything like that, only fuses
[07:24:13] <Tom_itx> if you give up on it, send it to me
[07:24:52] <iSaleK> I'll try to build high voltage programmer, I'll need one sooner or later and if it fixes this atmega I'll be thrilled :D
[07:25:12] <Tom_itx> a dragon will do hvpp
[07:25:22] <iSaleK> dragon? :)
[07:26:00] <Tom_itx> http://tom-itx.dyndns.org:81/~webpage/avr/dragon/dragon.htm
[07:26:01] <damjan> what's the difference between hvsp and hvpp?
[07:26:16] <Tom_itx> http://tom-itx.dyndns.org:81/~webpage/avr/dragon/dragon3a.jpg
[07:26:26] <Tom_itx> one is s and one is p
[07:26:43] <Tom_itx> i've never tried hv serial
[07:27:27] <iSaleK> high voltage Serial programming and other one is high voltage Parallel programming
[07:30:06] <iSaleK> Well I don't have avr dragon and I'm not going to give 50$ for dragon when I have 1 mcu with wrong fuses that is worth 2-3$ :)
[07:38:10] <Tom_itx> CapnKernel do you do one off boards or do you prefer not to?
[07:53:52] <CapnKernel> Tom_itx: Sure. I make five and keep four.
[09:37:15] <carp3> Hi, as AVR studio do not recognize my STK500 Clone. is there any user friendly STK500 interface for windows ?
[10:11:53] <asteve> so, I just swapped a 9V battery with a 9V wall wart and my ADC readings went crazy
[10:12:27] <asteve> is there an obvious reason that I may be overlooking?
[10:12:40] <asteve> both sources go to a 7805 VR
[10:16:12] <OndraSter_> what does oscilloscope say?
[10:21:32] <vectory_> the wall wart could supply considerably more amps, which you didnt need to considder when designing with a battery in mind?
[10:22:44] <asteve> OndraSter_: I'm at work and don't have an oscope
[10:23:10] <asteve> vectory_: supply amps? I should only be pulling ~550mA for both
[10:24:00] <vectory_> and the supply can take that?
[10:24:12] <asteve> yes, it's a 1 or 3A supply
[10:24:14] <OndraSter_> 550mA from 9V battery?!
[10:24:15] <OndraSter_> oh dear
[10:24:34] <OndraSter_> define wall wart btw
[10:24:37] <OndraSter_> is it regulated?
[10:24:40] <OndraSter_> is it even rectified ?!
[10:24:55] <asteve> well, I have a 7805 VR that takes XXXmA to power, a m168 which draws 100mA constantly? Then I have at most 3 leds lit which should be 60mA
[10:25:16] <OndraSter_> 100mA for mega? more like 20mA tops..
[10:25:21] <asteve> sure
[10:25:29] <asteve> I was over estimating
[12:16:56] <Tom_itx> CapnKernel so they want a min of 5?
[16:11:05] <RikusW> 8-bit PIC16 Microcontroller Clocked at 1.3 GHz http://dbaseserver.mistermail.nl/t/1235606/5051326/233614/0/
[16:11:18] <RikusW> now which avr can do that ? :-P
[16:11:29] * RikusW runs away :-P
[16:12:29] <CoolBear> Heh
[16:12:45] <specing> cool, now they have a 1.3 GHz core than can finaly do as much work as an xmega at 32MHz.
[16:13:30] <tmpvar> haha
[16:13:41] <CoolBear> Technically it's a softcore that's PIC 16xxx compatible, but hey, it's 1.3GHz
[16:13:50] <RikusW> heh
[16:13:51] <RikusW> more like xmega at 300MHz
[16:14:35] <specing> cortex-m4f at 1MHz
[16:14:52] <specing> FPU and hardware divide, can't beat that
[16:15:32] <CoolBear> Oops, I accidentally pasted my character data for an lcd into google: The requested URL /search... is too large to process. That’s all we know.
[16:15:55] <CoolBear> Error 414.
[16:16:03] <OndraSter> specing, so how fast PWM do you have on your Stellaris
[16:16:22] <OndraSter> because I can run (PWM) timers on my xmega on 128MHz... before overclocking
[16:18:37] <OndraSter> and holy crap about the errata
[16:19:04] <Roklobsta> ti always has buttloads of errata
[16:19:44] <specing> OndraSter: no idea
[16:20:03] <specing> I didn't even make a hello world yet... this shit is complex
[16:20:23] <OndraSter> heh
[16:20:30] <OndraSter> have you seen my xboard's hello world?
[16:20:35] <specing> no
[16:21:08] <OndraSter> http://myxboard.net/beginning.html#project
[16:21:09] <OndraSter> and scroll a bit
[16:21:17] <OndraSter> that blinks all the GPIOs.
[16:21:40] <OndraSter> it gets much easier with XBoard libs
[16:22:00] <OndraSter> (= Arduino easy)
[18:12:28] <Smashcat> Anyone here used an MSGEQ7?
[18:37:36] <Horologium> MSGE?
[18:37:49] <Horologium> microsoft gay engine?
[18:38:03] <Smashcat> nop :)
[18:40:02] <Horologium> no clue what it is then.
[18:40:13] <Horologium> looks like a chip number according to google but not seeing any datasheet
[18:41:20] <Smashcat> No, I know what it is, I have a load here - they're 7 band equalizer chips ;-) My question is for someone else that's used them before - heh