#avr | Logs for 2016-05-25

Back
[00:36:58] <Mr_Sheesh> WormFood - No idea, just a possibility. Glad they've survived, I try not to do that :)
[00:51:33] <rue_bed> pic 8 bit sucks, and if you want 32bit use an arm
[00:53:00] * Casper replaces all of rue_bed's micro by some pic16c84
[01:56:19] <inflex> lol
[01:57:52] * _ami_ Casper is a genie
[02:00:35] <Casper> genie or evil
[02:00:59] <Casper> not even the "f" version, but the "c" one :D
[06:21:56] <_ami_> Casper: :)
[08:25:02] <rue_bed> Casper, I didn't have a problem with those, till they replaced it all with the A postfix that was COMPLETELY INCOMPATIBLE with the non a postfix
[08:25:12] <rue_bed> and that was the final straw
[08:34:48] <twnqx> i am still waiting to get my hands on Cavium datasheets for... fatter embedded CPUs :P
[08:40:16] <rue_bed> just use an arm
[08:40:55] <rue_bed> you either need realtime io or computational, so its either 8 bit io controller or arm
[08:40:59] <rue_bed> geez
[08:52:03] <twnqx> mip64 for the win!
[08:52:08] <twnqx> mips64*
[09:07:17] <Chillum> coke pepsi
[10:35:43] <Jartza> hallo
[10:58:27] <Chillum> yo
[10:58:36] <WormFood> yo-yo
[13:22:52] <kre10s__> What is the difference between the Atmega48A and the Atmega48PA ?
[13:27:18] <learath> you'd have to check the data sheet
[13:28:07] <learath> pinout is the same
[13:28:50] <bss36504> Could be power options, temperature options, or package options. Check the ordering info at the end of the family datasheet.
[13:28:59] <learath> "The ATmega48A/PA/88A/PA/168A/
[13:28:59] <learath> PA/328/P differ only in memory sizes, boot loader support, and interrupt
[13:29:00] <learath> vector sizes. "
[13:29:35] <bss36504> Well, the memory size has more to do with the number than the letter at the end.
[13:29:45] <learath> bss36504: I'm quoting the data sheet :P
[13:29:56] <Xark> kre10s__: I believe the P means it supports "picopower" (low power mode).
[13:30:37] <learath> only difference I've found is "BOD disable is only available for ATmega48PA"
[13:30:44] <learath> Xark: hah, it's nice to know the data sheet is full of shit :P
[13:31:33] <learath> looks like BOD/BODS/BODSE (power stuff) are the only actual differences
[13:33:40] <kre10s__> ah. yea thats probably it... strange thing is adc7 is not an io pin. But then theres also an atmega48PB which also has the same pinout but eith ADC7/PE3.
[13:34:49] <Xark> learath: Full of shit? I do see "BOD disable only available in picoPower devices ATmega48PA/88PA/168PA/328P"
[13:36:39] <kre10s__> That's acceptable. The atmega32m1 datasheet is worse. It describes external interrupts 0 through 2 in detail. But then only in the register description does it show that the enable bits for 1 and 2 are read only :/
[13:58:18] <learath> Xark: er, the first quote was "The ATmega48A/PA/88A/PA/168A/PA/328/P differ only in memory sizes, boot loader support, andinterrupt vector sizes."
[13:58:29] <learath> Xark: they failed to account for context
[14:49:42] <bss36504> Has anyone ever come across a qwerty keypad in the same size as what was used on blackberrys forever? We have the trusty old 9 or 12 digit number pads, I'd like one with letters
[14:52:11] <liwakura> so you basically want a mini qwerty keyboard?
[14:55:28] <carabia> bss36504: not exactly the same size but last i checked alibaba had some that came pretty close
[14:55:44] <carabia> been a while but, worth a check
[14:57:49] <bss36504> Hmm I'll take a look. Yeah, I'm not looking for exactly a blackberry keyboard, just a mini qwerty
[18:07:35] <Jan-> hihi
[18:07:51] <Jan-> is there a way I can make an AVR wake up very infrequently, say once every ten seconds or a minute, and save power the rest of the time?
[18:07:58] <Jan-> Other than some external trigger.
[18:08:12] <learath> IIRC they have an internal timer that can do that
[18:08:14] <learath> or at least some do
[18:08:31] <learath> https://www.sparkfun.com/tutorials/309
[18:08:31] <Jan-> Hmm.
[18:08:39] <Jan-> I'm pondering a sort of time-to-empty battery monitor.
[18:08:42] * Jan- taps chin thoughtfully
[18:09:03] <Jan-> on the other hand, this is a 10Ah battery.
[18:09:13] <Jan-> And an atmega328p draws what, 5mA :)
[18:09:18] <learath> heh. well it looks like you can get a atmega down to 1ua
[18:09:24] <learath> 1ua vs 10ah... uhm
[18:09:32] <Casper> Jan-: some sleep mode leave the timer working, and the interrupt can wake up the avr
[18:10:19] <learath> Jan-: you should get a runtime of about 10000000 hours off an Ah battery
[18:10:39] <learath> or about 13888 months
[18:10:57] <Jan-> well yes but plus the battery's actual load :D
[18:11:15] <learath> actually, at that point the internal self-discharge is orders of magnitude higher
[18:11:21] <learath> like... probably 3 :P
[18:11:25] <learath> maybe only 2.?
[18:11:54] <learath> actually.. your vreg is going to draw more
[18:12:00] <Jan-> That's another issue.
[18:12:02] <learath> I assume the battery is 12v
[18:12:08] <Jan-> four series lithium ion.
[18:12:15] <Jan-> so anywhere between 16.8 and 11.something
[18:12:20] <learath> yeah
[18:12:24] <learath> so really, your problem is the vreg
[18:12:34] <Jan-> we were looking at implementing a texas instruments battery monitoring IC
[18:12:37] <Jan-> but yow, it's complicated
[18:12:45] <learath> sadly the bod is horribly high - 15-20ua
[18:13:07] <Jan-> bod?
[18:13:12] <learath> though there may be a better chip these days
[18:13:14] <learath> brown out detection
[18:13:25] <Jan-> is that high?!
[18:13:54] <Jan-> anyway the idea was that the lithium cells are reasonably voltage linear with state of charge
[18:13:56] <kre10s__> Isn't brown out voltage controlled?
[18:14:02] <Jan-> so we can get away with just monitoring it with the A/D
[18:14:05] <Jan-> ...possibly
[18:14:13] <learath> kre10s__: it's monitoring the voltage yes
[18:14:22] <learath> but it seems it's fairly expensive power wise
[18:14:25] <learath> which makes sense honestly
[18:14:39] <learath> how do you check the voltage? well, you run it across a resistor...
[18:15:04] <kre10s__> ah. you mean the feature of measuring/detecting brown outs costs additional power.
[18:15:11] <learath> kre10s__: yep
[18:15:21] <learath> and a lot, compared to the chip idle
[18:15:30] <learath> well, not idle - in a low power state specifically
[18:15:54] <Emil> So, anyone have experience submitting patches to avr~gcc?
[18:16:05] <learath> now, if you've got a 10ah battery.. maybe just leave bod on :P
[18:16:13] <learath> gcc is dark dark magic :(
[18:16:28] <Jan-> I hope my idea doesn't sound too crazy, anyway
[18:16:36] <learath> like "makes american politics look sparkling clean"
[18:16:56] <Emil> learath: in this case it is simply the fucking register definitions for 328pb
[18:17:12] <Emil> that the idiots there arent interested in adding
[18:17:15] <learath> Emil: you can try the avr gcc mailing list
[18:18:07] <Emil> hmm, that means I could just give them a copypaste ready description of them
[18:18:09] <Emil> thanks
[18:18:21] <learath> diff is usually preferred form
[18:18:24] <learath> or git pull these days
[18:18:59] <Emil> Trur
[18:19:05] <Emil> true*
[18:19:50] <Emil> On a completely unrelated note
[18:20:56] <Emil> Anyone implemented a digital audio low pass filter?
[18:21:44] <GeneralStupid> in hdl, yes :D
[18:21:52] <Emil> ":D"
[18:22:25] <Emil> In that domain you can do dark magic
[18:23:10] <GeneralStupid> yes, and debugging is pita -.- i know i know. but someone has to do that :)
[18:23:15] <learath> We must turn back the tide! Bring the light with our righteous and pure languages!
[18:23:16] <learath> :P
[18:23:28] <Emil> But alas I'm limited to around 16M/38k cycles per sample
[18:23:56] <Emil> And I'd like to fit some cvsdm there too
[18:28:33] <Emil> Just encoding, though
[20:20:01] <Lambda_Aurigae> Chillum, bah...Mt Dew or Dr Pepper!
[20:20:13] <Chillum> lol
[20:20:57] <Lambda_Aurigae> coke and pepsi are so,,,old people!
[20:27:14] <Snert> docker pecker is great.
[20:27:27] <Snert> 7Up is better.
[20:28:06] <Chillum> lol
[20:52:59] <Chillum> Lambda_Aurigae: Dr pepper is like the oldest pop being made
[20:53:11] <Chillum> it is for people who were old 100 years ago
[20:54:12] <Lambda_Aurigae> but it's still GOOD!
[20:54:24] <Lambda_Aurigae> even diet version.
[21:06:16] <Tom_itx> blah to the diet stuff
[21:10:32] <Lambda_Aurigae> I'm diabet
[21:10:34] <Lambda_Aurigae> diabetic
[21:10:39] <Lambda_Aurigae> and can't have all the sugar.
[21:11:03] <Tom_itx> yeah i shouldn't either
[21:37:47] <inflex> lo there Tom_itx