#avr | Logs for 2012-03-30

Back
[00:05:35] <ama2er> could anyone suggest a good commonly available 2:1 MUX/DEMUX ANALOG SWITCHES which could be used to increase the effective number of ADC channels on which conversion could be done
[00:07:38] <ama2er> in ATMEGA 32
[00:11:29] <Casper> ama2er: you're aware that you will slow down your convertion time ALOT?
[00:14:27] <ama2er> Casper: how might that happen?
[00:15:42] <Casper> it take time to switch channel
[00:15:58] <Casper> and more time for the voltage to stabilise
[00:16:16] <Casper> I wouln't be surprised if it slow down your conversion time by a factor of 10
[00:17:30] <ama2er> Casper: yes you're right but in my case conversion time is not be a big constraint
[00:19:21] <ama2er> suppose i adjust the adc clock freq to 50KHz then the maximum time i get for switching is 160 us isn't that enough
[00:19:29] <ama2er> for the voltage to stabilse
[00:20:17] <ama2er> assuming that the 1st channel and the 9th channel is same
[00:21:22] <ama2er> Casper: so what do you think
[00:22:12] <Casper> dunnot, depend on the part, but even 50kHz seems doubtfull to me
[00:22:28] <Casper> abcminiuser: what do you think? expend the ADC on atmega with some external analog MUX
[00:25:43] <abcminiuser> Casper, I missed part of the convo
[00:26:44] <Casper> abcminiuser: ama2er need more than 8 ADC chan, so wanted to use an analog mux to extend it up, what frequency do you think he'll be able to get with that setup?
[00:28:06] <abcminiuser> Check the datasheet of the MUX
[00:28:13] <abcminiuser> Probably not all that great
[00:29:47] <Casper> do you know a part number for the mux?
[00:34:21] <ama2er> the thing is MAXIM has many anlog switches but don't know which is commonly available
[00:34:38] <ama2er> http://www.maxim-ic.com/app-notes/index.mvp/id/638
[00:46:16] <ama2er> Casper: is there any alternative by which i could convert more than 8 channels
[01:22:17] <CapnKernel1> ama2er: You could get an external DAC chip and talk to it by SPI.
[01:30:38] <ama2er> CapnKernel1: i think you mean external ADC
[01:31:00] <CapnKernel1> Indeed I do, just testing :-)
[01:31:13] <CapnKernel1> In any case, you get the idea.
[01:31:19] <ama2er> hehe
[01:32:08] <ama2er> since i have no experience with external ADC could you suggest some which are commonly available
[01:39:59] <Kevin`> ama2er: there's tons of them available, and they aren't that expensive in the performance range of the lower-end avrs. just do a search on your favorite distributor website
[01:40:33] <ama2er> thanks
[01:44:58] <Kevin`> an analog mux SHOULD be cheaper though, since it's one of the components of the adc
[02:38:01] <Roklobsta_> casper: video switches are very fast. switch time measured in 10's of ns
[02:53:58] <theBear> that carl lewis dude is pretty fast too, but not that fast :)
[02:54:02] <theBear> heh, specially these days :)
[07:09:02] <tosmo> when using a timer in CTC mode, would i rather use the OCR or the ICP register to define the maximum value?
[07:12:01] <tosmo> as far as i understand the datasheet, it really doesn't matter which one i choose?
[07:31:13] <CapnKernel1> tosmo: If you can re-ask your question in about 6-7 hours, the place will be crawling with folks able to answer your question.
[07:40:38] <tosmo> no europeans here ;)
[07:40:50] <OndraSter> yes
[07:40:52] <OndraSter> europeans here are
[07:41:41] <tosmo> k. thought this was a timezone thing ^^
[07:43:19] <Xata> hi.
[07:43:43] <OndraSter> tosmo, well, europeans have 1333 - 1533 :)
[07:43:54] <Xata> what is minimum-size type for avr-gcc? uint_fast8_t?
[07:50:54] <Steffann> uint8_t ..
[07:56:36] <Tom_itx> uint_supersmall_superfast8_t
[07:56:59] <Steffann> or just Tom_itx_t
[08:01:54] <Xata> Tom_itx: #define
[08:02:36] <Xata> Steffann: so there is no advantages in speed/size between uint8_t and uint_fast8_t?
[08:03:21] <Steffann> afaik uint8_t is just a typedef of uint_fast8_t
[08:04:06] <Steffann> http://www.nongnu.org/avr-libc/user-manual/group__avr__stdint.html Xata
[08:05:54] <Xata> Steffann: oh. lol. thanks.
[09:24:55] <rue_house> tosmo, still awake
[09:24:59] <tosmo> sure
[09:25:12] <rue_house> ctc...
[09:25:29] <rue_house> on whch avr?
[09:25:47] <tosmo> atmega2560,
[09:25:58] <tosmo> (16bit timer)
[09:26:13] <rue_house> huh no datasheet for that one yet
[09:26:22] <rue_house> http://ruemohr.org
[09:27:02] <rue_house> http://www.atmel.com/Images/doc2549.pdf
[09:27:10] <tosmo> k. another thing i'm wondering: does it make any difference whether i use the compare match interrupt or the overflow interrupt when in ctc mode? (timer resets on compare match)
[09:28:47] <rue_house> max is defined by OCRnA
[09:28:59] <rue_house> ah, theres another ctc
[09:29:55] <rue_house> in the other mode, you can use ICRn
[09:30:21] <rue_house> I dont see any other differences between the two ctc modes
[09:30:43] <rue_house> (table 17-2 in that pdf link)
[09:30:50] <tosmo> so much i got, i was just wondering which one i'd like to use. i later guessed that in the ICR case it might trigger on external events (ICP pin) but i'm not sure about that
[09:32:01] <rue_house> no the clock source is programmed seperatly....
[09:34:00] <rue_house> table 17-6 is the input source to the counter
[09:40:41] <rue_house> wow 8k ram
[09:41:26] <rue_house> twelve pwm channels!?
[09:41:42] <rue_house> cool
[09:43:14] <rue_house> got to got to work, later
[09:43:52] <tosmo> cu
[09:44:24] <tosmo> afaik ICR will get updated with TCNT when ICP gets changed
[09:45:17] <tosmo> or at least thats how i read the manual, but i don't see what use that would be in a ctc mode
[10:04:40] <asteve> hey what's that MIT electronics course?
[10:05:35] <mog> 6.002x?
[12:08:20] <DarkSector> If I set any port in an ATmega32 as input what is the default value of PINx ?
[12:09:01] <DarkSector> because I just wrote this small program that the input on the PORTD should be shown on 8 LED connected to PORTC and the LED are lighting funny
[12:39:21] <Steffanx> So why the atmel guys stay away from avrfreaks, abcminiuser ?
[12:40:06] <abcminiuser> Because when anyone mentions there are an engineer they get tons of "YOU'RE DOING IT ALL WRONG EVERYTHING YOU MAKE IS CRAP"
[12:40:23] <abcminiuser> I appreciate the sentiment, but if you express youself like that they just stop listening :P
[12:40:49] <Steffanx> So just change your nick and never mention you are an Atmel 'guy' :)
[12:40:56] <abcminiuser> No, too late now
[12:41:03] <abcminiuser> I like the community, I was part of it
[12:41:10] <Steffanx> It's never too late
[12:41:16] <Steffanx> was :)
[12:41:48] <abcminiuser> But seriously, members wonder why all the Atmel guys hide, then immediately start trashing them when they appear :S
[12:42:00] <abcminiuser> Imagine David Attenborough with a shotgun.
[12:42:17] <abcminiuser> "Look, a rare Pygmy Possum! *BLAM*"
[12:42:22] <abcminiuser> "Where'd they all go?"
[12:43:19] <Steffanx> I wonder why that doesn't happen in here..
[12:43:44] <RikusW> because this is #avr :)
[12:43:48] <Steffanx> Maybe it's because we're all a bunch of crap in here :P
[12:44:25] <abcminiuser> No one knows where I work :P
[12:47:42] <cyanide> HAY SUP
[12:48:04] <Steffanx> THA SKY
[12:48:53] <cyanide> OH SHI
[12:49:25] <Steffanx> So how is India today?
[12:50:36] <cyanide> can you see pigs flying?
[12:50:54] <Steffanx> Can you?
[12:51:12] <cyanide> no
[12:51:18] <cyanide> and india hasnt changed today either
[12:51:23] <Steffanx> Neither can i
[12:51:23] <cyanide> its still the usual shitty
[12:52:19] <cyanide> i think my grandkids are going to receive some of the parcels ive ordered
[12:52:35] <OndraSter> :D
[12:52:42] <OndraSter> if at all
[12:53:06] <OndraSter> and my grandkids are gonna be finding empty cups of ice cream long after I will be dead
[12:53:30] <Steffanx> You grandkids :P
[12:53:32] <Steffanx> *your
[12:53:43] <OndraSter> yeah
[12:53:51] <cyanide> mine will find cigarette butts :P
[12:53:54] <cyanide> bbl dinner
[12:53:55] <OndraSter> :D
[12:54:01] <Steffanx> When you start now you can have grandkids ~12-16 years from now :p
[12:54:02] <OndraSter> dinner? In like 15 minutes for me
[12:54:06] <OndraSter> bon apetit, cyanide
[12:54:06] <Steffanx> -14
[12:54:13] <OndraSter> lol Steffanx
[12:54:41] <OndraSter> that would mean that my daughter/son would have to have kids @ the age of 11 ?!
[13:02:45] <`Wedge> why not?
[13:02:52] <`Wedge> 11 is a nice age for having kids
[13:03:35] <OndraSter> :D
[13:03:40] <RikusW> trying to maybe :-P
[13:07:40] <specing> Are we testing the fibonacci sequence here?
[13:09:37] <Steffanx> Are we?
[13:09:37] <asteve> 1 1 2 3 5 8 13
[13:09:40] <asteve> 1 1
[13:09:41] <asteve> 2 3
[13:09:42] <asteve> 5 8
[13:09:45] <asteve> 13!!!!!
[13:09:50] <Steffanx> 0
[13:10:11] <asteve> tu madre es una fibonacci sequence
[13:10:26] <asteve> to this i'll add http://blog.tastebuds.fm/wp-content/uploads/2012/03/worstalbumcovers15.jpeg
[13:10:28] <Steffanx> Je ne parle pas francais
[13:10:58] <virtuald> isn't that italian?
[13:11:15] <Steffanx> I dont know :p
[13:11:22] <`Wedge> FIBONACCI
[13:11:23] <specing> looks italian to me
[13:11:32] <asteve> what i said?
[13:11:38] <asteve> fibonacci is italian
[13:11:42] <asteve> tu madre es una is spanish
[13:11:43] <`Wedge> let's test this sequence better : x_n = sqrt(1 + x_(n-1))
[13:11:46] <asteve> sequence is english
[13:11:51] <virtuald> anyway do you know any good news site now that linuxfordevices is gone?
[13:15:36] <Steffanx> pass
[13:16:26] <`Wedge> linux.org.ru
[13:20:22] <virtuald> oh they write about gcc and gpu's
[13:22:13] <virtuald> google translate is getting good
[13:36:26] <DarkSector> oh wow, I just learnt three new things
[14:17:20] <carp3> WOW http://dmitry.co/index.php?p=./04.Thoughts/07.%20Linux%20on%208bit
[14:18:19] <specing> That site is getting viral around embedded channels here on freenode, it seems
[14:36:46] <Steffanx> poor specing
[14:36:53] <Steffanx> Can't deal with it anymore?
[14:48:13] <Steffanx> !seen abc
[14:48:14] <tobbor> abc was last seen in ##electronics on Oct 17 15:31 2010
[14:48:17] <Steffanx> !seen jan-
[14:48:17] <tobbor> Jan- was last seen in #avr on Mar 29 19:30 2012
[15:01:45] <RikusW> looking for company ? :-P
[15:02:06] <specing> lonelysteffan
[15:04:58] <Steffanx> Everything is better than no company at all RikusW :)
[15:05:28] <Steffanx> Except when their name is 'specing'
[15:05:29] <Tom_itx> depends on the company
[15:11:55] <RikusW> Steffanx: got RavrProg compile on XP
[15:12:01] <Steffanx> :)
[15:12:03] <RikusW> *compiled
[15:12:08] <RikusW> wat a pita
[15:12:10] <RikusW> was
[15:12:27] <RikusW> and somehow the path to the parts files only works in debug moe
[15:12:29] <RikusW> mode
[15:12:46] <RikusW> the qt sdk is MASSIVE
[15:13:33] <RikusW> haven't figured out what is causing the weird path behaviour yet....
[15:13:46] <RikusW> and I don't have libusb support yet
[15:14:14] <RikusW> and it seems using libraries on the XP qt sdk can be painful :(
[15:14:27] <RikusW> had to edit some makefiles too....
[15:14:50] <RikusW> so much for easy portability :S
[15:15:05] <Steffanx> Maybe it's because your Qt libs are soo old? :p
[15:15:20] <RikusW> I got the newest qt sdk for xp
[15:15:26] <Steffanx> anyway, i'm gone
[15:15:40] <RikusW> some of the debug dll's is like 120MB !!
[15:30:25] <specing> What is the max speed I can expect with rs232 over 10m?
[15:30:33] <specing> Assuming +- 12V?
[15:30:42] <specing> Will it even reach that far?
[17:03:38] * pc_magas is away: Ti xtypas Kyrios Leipw......
[17:22:02] * pc_magas is back (gone 00:18:26)
[18:50:03] <hexorg> Hello everyone. Did anyone do avrusb or tinyavr projects?
[18:54:38] <Tom_itx> http://tom-itx.dyndns.org:81/~webpage/attiny2313/usbtiny_index.php
[19:19:34] <j4cbo> wharrgarl.