#avr | Logs for 2011-12-18

Back
[02:15:38] <rue_bed> hmmm
[02:17:31] <OndraSter> did anyone say chocolate
[02:18:06] <rue_bed> you cause and effect is wrong
[02:50:13] <_abc_> Is there a hack to make avr-gcc use rol/ror instead of lsl/lsr in a m <<= n; statement? Or similar?
[04:35:13] <sabesto> anyone know of a 28 pin DIP AVR with the spesific register TCCR0A/B?
[04:35:44] <sabesto> looking at some code, and the dude who wrote it did not mention which uC he used
[04:37:31] <sabesto> hmm 328 maybe
[09:29:54] <Bushman> http://9gag.com/fast#1109741
[10:05:10] <norbi> Tom_itx: whats with that toaster oven project?:)
[10:05:31] <Tom_itx> reflow oven
[10:05:35] <norbi> you have digitalized an analog toaster?:P
[10:05:48] <Tom_itx> atmega168
[10:07:08] <norbi> Tom_itx: this probably was a real pain in the a**, i could never done this http://tom-itx.dyndns.org:81/~webpage/mtkflash/flash_howto_index.php
[10:07:41] <norbi> i have no idea how was you known what chips are util for you
[10:10:07] <norbi> what is a shield board?
[10:10:40] <Tom_itx> just a name somebody dreamed up for arduino add on boards
[10:12:24] <norbi> Tom_itx: ahh...
[10:12:29] <norbi> http://tom-itx.dyndns.org:81/~webpage/intel_atom/sherline1.jpg this is nice
[10:12:35] <norbi> i want one of theese
[10:12:40] <norbi> i will make my own
[10:13:35] <Tom_itx> join #emc, they build them or convert machines all the time
[10:14:09] <Tom_itx> http://www.linuxcnc.org/
[10:15:18] <norbi> Tom_itx: it isnt cheap, right?
[10:15:53] <Tom_itx> you can make one fairly reasonable but you get what you pay for usually
[10:15:55] <norbi> i like how you replaced an acc meter with this pot, its a great idea :)) http://tom-itx.dyndns.org:81/~webpage/maxbot/maxbot_index.php
[10:16:24] <Tom_itx> i hadn't purchased one at that point
[10:16:31] <Tom_itx> it was mostly for testing
[10:17:46] <norbi> hah, im your biggest fan:D
[10:17:52] <norbi> nice, clear jobs
[10:19:18] <norbi> Tom_itx: i see you have done your own cnc
[10:19:28] <norbi> what can be its price range?
[10:25:01] <norbi> oh this made me laugh my a** off :)) http://tom-itx.dyndns.org:81/~webpage/deathroad/deathroad_index.php
[10:30:25] <vectory> wonder where that is and if its personal experience, because it looks sickening
[10:30:58] <vectory> oh, location is there on the site
[10:31:18] <vectory> well, any road like that deserves to be called the road of death
[10:34:03] <norbi> vectory: exactly
[10:34:38] <norbi> imagine how good drivers are those, i think we are lucky with our large highways traweling at 130km/h
[10:34:47] <norbi> they probably are on max 30km/h
[10:37:13] <vectory> i dont get how 2 direction traffic can work on a single lane
[10:37:36] <norbi> im reading the avr lib manual, but i cant find where are defined the pins, registers, ports of a device
[10:39:16] <norbi> vectory: like when you are overtaking a car and there is coming another from front, somehow 3 cars should go on 2 directions, else is a tragic
[10:43:20] <Tom_itx> norbi, \winavr\avr\include\avr\ioxxx.h
[10:46:08] <norbi> Tom_itx: yea, but i would like to get a function reference, and there is almost nothing about them, just _SFR_(PORTB) examples
[10:46:29] <norbi> not specified rules, or im just unable to document rightly
[10:46:38] <norbi> but i want to learn the avr lib and gcc
[10:46:44] <norbi> and write my own utils
[10:49:55] <norbi> oh finally found it http://www.nongnu.org/avr-libc/user-manual/group__avr__sfr.html
[10:52:49] <norbi> there is isascii() function, this is great:P
[10:55:37] <norbi> avr libc seems it is not as big as i tought, it can be learned in a while
[11:34:01] <norbi> avr-objcopy: 'project.elf': No such file
[11:34:24] <norbi> why is this happening? never happened before, maybe cause i've installed avr studio 5
[11:34:25] <norbi> ?
[11:40:49] <vectory> cant use studio 4 and 5 in parallel? what were you trying exactly?
[11:45:37] <norbi> vectory i dont want to use it in parallel, im just turned back to avr studio 4
[11:45:40] <norbi> i dont like 5
[11:45:52] <norbi> but studio 4 wont work now
[11:45:56] <norbi> worked before
[11:46:27] <norbi> just created a new gcc project with folder and main file + 6 blank header files
[11:47:00] <norbi> in main.c include <avr/io> int main(){} build... and error
[11:48:03] <vectory> :/
[11:48:37] <norbi> switch in a function that takes a variable isnt working right?
[11:48:44] <norbi> switch needs constant
[11:49:04] <norbi> gcc plug-in: No AVR Toolchain installation found. The AVR GCC plug-in can still be used if you set up your own build tools.
[11:49:07] <norbi> interesting
[11:49:36] <norbi> if i select avr toolchain
[11:49:47] <vectory> so installing 5 f'ed up 4. thats what i ment by parallel installation
[11:49:50] <norbi> then where can i define the toolchain to see it
[11:50:10] <norbi> anyway i will not use toolchain then
[11:50:28] <norbi> but i forgot what files need to be used
[11:50:35] <norbi> avr-gcc and ? some lib
[11:51:35] <norbi> where is the makefile of winavr?
[11:54:02] <Tom_itx> there's examples on my site
[11:55:24] <norbi> tom
[11:55:35] <norbi> Tom_itx: i need the default one
[11:55:53] <norbi> you helped me last time with this
[11:56:23] <norbi> project options> custom options> compiler and make
[11:56:29] <norbi> these 2 is what i need
[11:56:48] <norbi> and then i will get a libm.a error as how i remember...
[11:57:12] <norbi> atmega64 is what avr? avr8
[11:57:13] <norbi> ?
[13:07:46] <rue_house> its an 8 bit avr
[13:07:54] <rue_house> 64k of program space
[14:15:07] <vectory> why are scopes so expensive?
[14:17:07] <OndraSter> fast ADCs are expensive
[14:17:35] <vectory> appearantly
[14:19:15] <vectory> we built a digital one with logik components in a course project, had only 20khz :/
[14:19:30] <vectory> and i didnt finish yet
[14:19:49] <Kevin`> anything that's intended to only be purchased by companies is expensive
[14:19:53] <OndraSter> how did it work? approximative?
[14:19:58] <OndraSter> yeah
[14:21:06] <Kevin`> 20khz you should be able to do pretty easily with just the built-in adc on some random microcontroller
[14:21:33] <OndraSter> yap
[14:21:43] <Landon> really?
[14:21:55] <OndraSter> yes
[14:21:56] <Landon> don't most ADCs take several cycles to get a reading
[14:21:58] <OndraSter> yes
[14:22:02] <OndraSter> but they run on higher freq
[14:22:12] <OndraSter> on atmega it is 13 cycles
[14:22:25] <Kevin`> Landon: yes, but you are running them at several mhz in some cases
[14:22:48] <Landon> oh wow, brainfart
[14:23:03] <Landon> I was thinking of ucs as running in the dozens of khz range
[14:23:57] <vectory> OndraSter: sample and hold
[14:23:59] <Kevin`> the one sitting on my desk right now runs the cpu at 32mhz and has a recommended maximum adc sample rate of 1Msps
[14:24:02] * Landon did this calculation before, thinking about making an oscope
[14:24:02] <vectory> i dont really know tbh
[14:24:18] <Landon> for some reason I was thinking the number I came up with ~20000 was << 20k :P
[14:24:23] <OndraSter> s&h is just part of it
[14:24:26] <OndraSter> but how does it measure?
[14:25:05] <vectory> track and hold to be precise, using ad7575
[14:25:30] <vectory> approximation, yes
[14:34:15] <vectory> digital representation of an analogue signal is always just approximation, no?
[14:34:47] <OndraSter> yes
[14:35:23] <OndraSter> there would be one case where it would be definitive, but that would have to be few kB? MB? precise number (precise so it can count every single electron).
[14:35:27] <OndraSter> Plus it wouldn't still be real time.
[14:36:15] <OndraSter> brb
[14:49:07] <vectory> hihi
[14:50:05] <vectory> maybe expensive scopes use more than one adc, each suited for particular requirements like input voltage, or is this complete blocks?
[14:50:41] <OndraSter> no
[14:50:55] <OndraSter> they might be using more for more inputs/to do twice the speed
[14:51:14] <OndraSter> but usually 1 input = 1 ADC for "common"
[14:52:12] <OndraSter> brb
[21:30:10] <Tom_itx> hey dean
[21:30:17] <abcminiuser> Yahoyoy
[21:30:25] <Tom_itx> how goes it?
[21:30:30] <abcminiuser> Just got my laptop fixed, back in business
[21:30:41] <Tom_itx> i fixed one the other day
[21:30:50] <Tom_itx> had to replace the power jack
[21:33:23] <abcminiuser> They just swapped the entire screen panel out
[21:34:32] <Tom_itx> cracked?
[21:34:38] <abcminiuser> Backlight died
[21:34:39] <Tom_itx> or bad pixels
[21:34:41] <Tom_itx> oh
[21:34:47] <abcminiuser> Bugger I'm off, gotta get to bank before they close
[21:34:50] <Tom_itx> you could have fixed that
[21:34:51] <Tom_itx> ahh
[21:34:53] <Tom_itx> mkay
[21:35:37] <abcminiuser> Indeed
[21:35:43] <abcminiuser> Back tonight for a long chat :P
[21:35:50] <Tom_itx> after all you're an engineer now
[21:36:00] <Tom_itx> i'm cashing in early tonight
[21:36:09] <Tom_itx> i'm beat after a long day