#avr | Logs for 2013-06-04

Back
[01:57:59] <thetruthisoutthe> tzanger <= 12M $ ?
[02:16:30] <megal0maniac_afk> thetruthisoutthe: ..?
[06:13:17] <tzanger> thetruthisoutthe: ?
[06:34:58] <megal0maniac> He's gone mad
[06:35:33] <megal0maniac> RikusW: Just came back from Mantech. Thought of you :P
[06:49:20] <RikusW> heh
[06:49:34] * RikusW just mailed the gps tracker v0.1 prototype
[06:49:51] <RikusW> My boss is anxious to get his hands on the new toy ;)
[06:50:06] <megal0maniac> Whoo!
[06:50:16] <RikusW> did final testing the morning
[06:50:33] <RikusW> can even load google earth polygons into it for geofencing :)
[06:50:43] <megal0maniac> Specs? (from a user perspective)
[06:50:45] <RikusW> (I do use a python script to convert it ofc)
[06:51:25] * theBear guesses user specs are "how the f*&^ did the boss know i was there yesterday ?"
[06:51:33] <RikusW> send a SMS if speed is too high (default 10km/h) or a wire loop is broken, or low battery or outside fence
[06:52:10] <RikusW> megal0maniac: and my fence can handle quite complicated shapes, even concave
[06:53:09] <RikusW> even an T shape cut into the inside of the fence
[06:54:09] <RikusW> I had one small hitch when compiling the code to the SIM900
[06:54:15] <RikusW> the menu didn't print...
[06:54:21] <megal0maniac> So, um... What if I walk up to the cow and take the tracker off? And then ride the cow into the sunset with the tracker lying on the ground, helpless and alone?
[06:54:33] <RikusW> turned out max lenght for debug printf is 512 bytes.. my menu was 680
[06:54:39] <RikusW> so I split it up....
[06:54:47] <theBear> obvoiously he's gonna medically insert them inside the cows
[06:54:57] <megal0maniac> Oh. Yeah. Sorry
[06:55:03] <RikusW> megal0maniac: that is what the wire loop is for
[06:55:44] <megal0maniac> Ah! I see now
[06:55:49] <RikusW> also I could detect collar remaining still for too long, but that won't be an immediate response.....
[06:56:16] <megal0maniac> And cows like to sleep sometimes
[06:56:24] <theBear> cows don't move fast MOST times :)
[06:56:24] <megal0maniac> So your timeout would be hours and hours
[06:56:58] <megal0maniac> RikusW: Sounds good :)
[06:58:11] <RikusW> I also added a timeout after each sms type
[06:58:15] <megal0maniac> Bought some 0805 LEDs, 4N52s, YWN80 headers, some ribbon cable and 6 and 10 pin crimp headers
[06:58:34] <RikusW> so say you have multiple triggers only the first in 4 min or so sends the sms
[06:58:53] <RikusW> it will then wait for 4min after the last trigger before sending again
[06:59:19] <RikusW> ywn80 ?!
[06:59:25] <RikusW> didn't even know mt had those
[06:59:56] <megal0maniac> It's just 2x40
[07:00:06] <RikusW> I got 2x20
[07:00:09] <RikusW> YWN40
[07:01:33] <megal0maniac> Ah. Heh :) YWN80 is enough for the aery32 (excluding JTAG)
[07:03:05] <megal0maniac> Was considering offering to send you stuff, but it wouldn't really work out cheaper than you getting it from JHB, so...
[07:03:25] * megal0maniac just had boerewors met smoor for lunch :D
[07:05:47] <dunz0r> megal0maniac: Something with butter. The first word I have no idea what it is :)
[07:06:30] <megal0maniac> XD
[07:06:45] <theBear> big foreign snossages
[07:06:54] <theBear> unless yer foreign, then they local
[07:09:39] <megal0maniac> Boerewors is, well, yes. Big local snossages. Smoor (or tamatie smoor, tomato mush) is basically tomatoes and onions and spices and stuff cooked into a pulp. Ever so tasty combination
[07:10:39] <RikusW> megal0maniac: actually I have ordered already, got it too
[07:10:53] <dunz0r> megal0maniac: I'm guessing you're dutch, from the spelling of smoor?
[07:11:15] <RikusW> Afrikaans
[07:11:28] <megal0maniac> dunz0r: South African. I'm very much English, but languages tend to "share" around here. :)
[07:11:28] <dunz0r> Afrikaans is such a crazy language...
[07:11:43] <megal0maniac> Afrikaans is awesome. And I'm terrible at it :)
[07:11:46] <RikusW> why ?
[07:11:53] <dunz0r> It's english, no dutch, no german"
[07:12:17] <megal0maniac> Dutch is pretty close
[07:14:06] <RikusW> dunz0r: what is your native language ?
[07:14:15] <megal0maniac> RikusW: I shall probably be buying extension boards soon then :)
[07:14:37] <RikusW> I still have to assemble them ;) only takes an hour or so
[07:14:59] <megal0maniac> What are you selling them for? They come as a set, right?
[07:15:14] <RikusW> yes R100
[07:15:22] <megal0maniac> Bargain
[07:15:30] <megal0maniac> Postage?
[07:15:45] <RikusW> you can turn the HVPP board into a PIC programmer :-P
[07:16:53] <RikusW> ony new fw required
[07:17:20] <megal0maniac> Hmmm... I'll definitely speak to you about that. I have a 18F something that I want to bootload
[07:19:12] <RikusW> guess you'll have to do the PIC fw yourself as app code
[07:19:21] <RikusW> but the 12V functionality is there
[07:19:50] <megal0maniac> Didn't know you needed 12V...
[07:22:40] <RikusW> PIC can use HV or LV programming but LV use one GPIO
[07:22:55] <RikusW> as usual 12V on reset
[07:23:03] <RikusW> aka MCLR in PICspeak
[07:34:50] <dunz0r> RikusW: Swedish.
[08:25:12] <tzanger> grumble bitch whine fucking communications bug grumble whine
[08:32:10] <thetruthisoutthe> [214321] <tzanger> anyone interested in an embedded c 12-18m+ contract in farmington hills, mi with possible travel to germany if you wanted? automotive obviously, no idea on rate but if you're interested I'd put you in contact with my account manager
[08:33:11] <thetruthisoutthe> i would think about a $12-18M contract
[08:33:51] <theBear> farmington hills sounds madeup, like somewhere in a flash game
[08:34:09] <thetruthisoutthe> i don't care if they pay
[08:34:35] <theBear> i aint gonna live somewhere imaginary for all the tea in korea !
[08:35:53] <thetruthisoutthe> i think i'd just send the thing over the net, why would i need to be there?
[08:36:06] <theBear> don't ask me man
[08:36:11] <thetruthisoutthe> they can say mars, who cares
[08:36:17] <theBear> i'd live there
[08:36:25] <thetruthisoutthe> but...
[08:37:12] <Tom_itx> about 100ish miles NW of Detroit
[08:37:38] <theBear> i'm sure mars is further than 100 miles
[08:38:26] <Tom_itx> no it's not that far
[08:38:32] <thetruthisoutthe> but somehow i am a bit skeptic about a contract like this involving tens of million dollars
[08:38:34] <Tom_itx> it's a Detroit Suburb
[08:38:52] <thetruthisoutthe> unless it is a secret military stuff
[08:38:58] <theBear> i'll do it for 10mil with a .5mil forward, just to prove he's serious
[08:39:08] <Tom_itx> you couldn't pay me to live near Detroit
[08:39:14] <thetruthisoutthe> ahaha
[08:39:19] <theBear> they got good techno there
[08:39:22] <cmtptr> $12 to $18,000,000 is a pretty wide range
[08:39:33] <theBear> you'd be surprised what i'd do for good techno in my own town again
[08:39:57] <thetruthisoutthe> cmtptr <= ok well 'm' is in error too, m means milli
[08:40:07] <thetruthisoutthe> 'M' is Mega
[08:40:16] <cmtptr> he said M
[08:40:39] <thetruthisoutthe> [214321] <tzanger> anyone interested in an embedded c 12-18m+ <<< i see lower case here
[08:40:54] <Grievar> NYC has decent techno too
[08:40:55] <cmtptr> oh I was looking at the wrong quote.
[08:40:57] <theBear> i want megabucks !
[08:40:58] <twnqx> tzanger: can we reverse that, work from germany with occasional travel to farmington hills? :D
[08:41:08] <theBear> germany also has good techno
[08:41:16] <theBear> schranz, AND schranzermusik
[08:41:38] <tzanger> twnqx: heh I doubt it but I can put you in contact with them if you're serious
[08:41:56] <thetruthisoutthe> theBear <= let's share it and we'll complete in 40% time
[08:42:03] <twnqx> not at this moment, but if the bullshit level at y current jobs keeps rising i am tempted.
[08:42:07] <tzanger> theBear: no it's a real place, I had an 18mo contract near there for an optics company
[08:42:56] <theBear> thetruthisoutthe, you like alcahol hallucinogens and techno ?
[08:43:04] <thetruthisoutthe> twnqx <= so, supersecret military stuff?
[08:43:05] <theBear> wait, i know the answer to the 3rd bit
[08:43:24] <thetruthisoutthe> well, i use alcohol
[08:43:31] <theBear> close enough, lets do it
[08:43:39] <twnqx> thetruthisoutthe: IT security, and it contains occasional secret government/military stuff, yes
[08:43:40] <theBear> i still want my forward to prove it's serious tho
[08:43:48] <theBear> i aint moving to an imaginary town for nothing
[08:43:58] <thetruthisoutthe> twnqx <= so i assume remote work is not possible then
[08:44:15] <twnqx> oh, i do homeoffice 3-4 days per week
[08:44:25] <twnqx> and sometimes onsite
[08:44:33] <Tom_itx> and the other 3-4?
[08:44:33] <thetruthisoutthe> twnqx <= will they buy me a house there ?
[08:44:38] <theBear> and i probly won't pass military background check, i'm too umm, what's that word, whatever it is, i'm that
[08:44:41] <twnqx> lol
[08:44:42] <theBear> and military don't like that
[08:44:42] <thetruthisoutthe> (and transport all my stuff too)
[08:45:08] <twnqx> i know a guy who didn't want to tell me where he's working
[08:45:23] <twnqx> but my guess is EADS/Cassidian military/aerospace tech
[08:45:24] <twnqx> :X
[08:45:26] <theBear> so he made up an imaginary town ?
[08:45:32] <twnqx> no, munich :P
[08:45:55] <twnqx> or nearby
[08:46:01] <theBear> sounds madeup to me :)
[08:46:18] <thetruthisoutthe> theBear <= you are too bear like
[08:46:28] <thetruthisoutthe> and non-american
[08:46:40] <theBear> PROUDLY non-american
[08:46:44] <thetruthisoutthe> ^^
[08:46:57] <theBear> just like you chumps are proudly american, pfft, mindwashing
[08:47:05] <thetruthisoutthe> and you expect us military to higher you for confidential work
[08:47:13] <twnqx> why not
[08:47:21] <twnqx> skill > patriotism
[08:47:24] <twnqx> at least here
[08:47:25] <thetruthisoutthe> i'm not american btw
[08:47:41] <theBear> i don't expect them to, i just said they wouldn't
[08:47:55] <thetruthisoutthe> but if they buy me a house there, and give me a green card i can be american too
[08:48:08] <theBear> i was looking at getting a job in customs last week, i don't think they'd take me either
[08:48:12] <theBear> subversive !
[08:48:14] <theBear> that's what i am
[08:48:36] * twnqx wouldn't hand over his german passport for an american one
[08:48:38] <thetruthisoutthe> and i make some supersecret killer drone firmware for us military then
[08:48:47] <twnqx> just more convenient
[08:48:53] <beaky> hello
[08:49:02] <thetruthisoutthe> twnqx <= i'd keep everything, not swap...
[08:49:05] <jadew> I'm romanian and I wouldn't hand over my passport for an american one
[08:49:13] <robotustra> theBear: I'm looking for ft job also :)
[08:49:14] <theBear> lol
[08:49:55] <Casper> atleast .ro got replaced by .ru for frauds...
[08:50:04] <jadew> Casper, and .cn
[08:50:53] <Casper> atleast with .cn... you don't know that it's them
[08:53:15] <beaky> my professor requires me to use an ATmega16, but it won't fit in my mini breadboard :( is there an ATmega16 that comes in the size of an ATmega8 or ATmega328p?
[08:53:17] <jadew> I'm actually surprised how many people are downloading my programs from my .ro domain. I wouldn't download stuff from a .ro domain.
[08:53:19] <twnqx> thetruthisoutthe: germany doesn't allow dual citizenship (with a small number of exceptions)
[08:53:49] <jadew> beaky, make a board for it
[08:53:50] <thetruthisoutthe> okey guys, $12M contract with $200/h 18h/d is 9 years
[08:54:16] <thetruthisoutthe> or less if supersecret killer robot development pays more
[08:54:31] <jadew> 18h/d means you have no life
[08:54:35] <thetruthisoutthe> sure
[08:54:57] <jadew> by the time you get out of that job the world would be different
[08:55:07] <theBear> sounds like a good deal to me
[08:55:09] <beaky> but I have a tiny robot and the atmega16 is too large for it
[08:55:11] <theBear> how different ?
[08:55:14] <jadew> whores would pay you!
[08:55:22] <jadew> cars would generate fuel
[08:55:31] <thetruthisoutthe> that is not happening
[08:55:33] <theBear> but i have no need for fuel or whores
[08:55:34] <jadew> electricity would be free
[08:55:44] <jadew> and AU would have decent internet connections at resonable prices
[08:55:51] <thetruthisoutthe> electricity is already free
[08:55:57] <thetruthisoutthe> get solar panels
[08:56:09] <jadew> thetruthisoutthe, do they work at night?
[08:56:19] <twnqx> beaky: welcome to SMD :P
[08:56:21] <thetruthisoutthe> hmm...
[08:56:21] <theBear> we do have that
[08:56:25] <theBear> crazy romaniuck
[08:56:31] <theBear> oh dear god !
[08:56:34] <thetruthisoutthe> jadew <= yes, on the other side of the earth
[08:56:37] <theBear> i can't believe that just came out of my mouth !
[08:56:37] <thetruthisoutthe> ;>>
[08:56:42] * twnqx stares at list
[08:56:43] <twnqx> really
[08:56:48] <twnqx> wafer scale bga?
[08:56:50] <theBear> i'm sorry, i meant romaniac !
[08:56:59] <jadew> ah, much better
[08:57:07] <theBear> you're a maniac, romaniac on the floor
[08:57:29] <jadew> that I am
[08:58:10] <thetruthisoutthe> twnqx <= i'd be interested what do they expect to get for $18M
[08:58:25] <twnqx> it is obviously 12-18 month, so stop it
[08:58:53] <jadew> what are you talking about?
[08:58:57] <jadew> what job pays that much?
[08:59:02] <theBear> lol
[08:59:04] <twnqx> manager.
[08:59:13] <twnqx> soccer player.
[08:59:16] <twnqx> umm
[08:59:17] <twnqx> golf pro
[08:59:18] <thetruthisoutthe> :)
[08:59:22] <theBear> you people all crazy foo's ! stay in school !
[08:59:34] <theBear> regular pro if you work hard :)
[08:59:36] <twnqx> tennis maybe
[08:59:41] <twnqx> formular one driver
[08:59:42] <jadew> for $200/hr with a steady 9h/day work day?
[08:59:48] <twnqx> come on
[08:59:50] <twnqx> 200 is not much
[09:00:05] <jadew> that's 40k/month
[09:00:07] <twnqx> freelancer can easily make 1800€/day
[09:00:10] <jadew> it's huge
[09:00:16] <jadew> bullshit
[09:00:34] <twnqx> i know enough of them
[09:00:36] <jadew> in the freelancing market there's way too much competition
[09:00:43] <thetruthisoutthe> it is not really cool to get paid by hours i think
[09:00:50] <twnqx> well, depends on your profession, of course
[09:00:53] <thetruthisoutthe> if the job can be done fast
[09:01:02] <twnqx> electronics is just a hobby of mine
[09:01:22] <twnqx> the guys i know are all around network security/network management
[09:01:25] <jadew> I'm talking from a programmer's point of view... maybe my proffesion has lost its worth
[09:01:44] <twnqx> and plain consulting/project management
[09:02:19] <twnqx> software development is not paid as high, like you said, too much competition
[09:02:45] <jadew> I guess I should go back to school and get an EE degree
[09:03:04] <twnqx> hm
[09:03:17] * twnqx remembers a contract a friend wanted him to proofread
[09:03:26] <twnqx> i think that was in the range of 1400€ day
[09:03:29] <twnqx> for EE
[09:04:17] <jadew> damn...
[09:04:33] <beaky> wow
[09:06:22] <jadew> is that average?
[09:06:26] <jadew> or just an exception?
[09:06:31] <twnqx> honestly? no idea, but i doubt that
[09:07:13] <thetruthisoutthe> i think you will only stay in a job like that is you can solve every problem ;)
[09:07:23] <thetruthisoutthe> *if
[09:07:28] <twnqx> there are few unsolvable problems
[09:07:38] <thetruthisoutthe> then iterate
[09:07:40] <thetruthisoutthe> ;>
[09:08:02] <thetruthisoutthe> use an fpga
[09:08:18] <twnqx> doesn't help you with analog problems :P
[09:08:23] <thetruthisoutthe> xilinx is military gadget too
[09:08:39] <twnqx> i thought they went all actel for higher security
[09:08:44] <jadew> ah, that's government stuff?
[09:08:53] <beaky> http://i.imgur.com/jZ7cFCV.png will this circuit destroy my ATmega328p?
[09:08:58] <jadew> (the sallaries you're talking about)
[09:16:16] <twnqx> lol government
[09:16:24] <twnqx> noone skilled goes there because they pay so crappily
[09:16:40] <thetruthisoutthe> like $18M for 12mo ?
[09:17:32] <twnqx> beaky: you didn't connect avcc, and i see no other vcc connections, so chances exist
[09:19:00] <beaky> ah
[09:19:12] <twnqx> thetruthisoutthe: i never made more than 160k$/year, so i can't comment
[09:19:15] <beaky> I thought it was okay to leave avcc open
[09:19:42] <twnqx> no. if you want to use analog you should filter it,otherwise just connect it to vcc
[09:19:49] <beaky> ah
[09:20:22] <beaky> (btw the vcc and gnd pins are hidden by the schematic capture software) I connected it in real life :D time to test it
[09:20:37] <beaky> I will video this moment for all to see
[09:20:48] <twnqx> you connected it to 5V, right?
[09:21:04] <beaky> yeah, the 5V output of the voltage regulator (which is connected to 9v) :D
[09:21:16] <twnqx> also
[09:21:21] <twnqx> you need to add more capacitors
[09:21:47] <twnqx> i would not expect it work stable, especially with the motors...
[09:21:51] <beaky> ah right; I should put one before the -9V on the battery
[09:22:05] <twnqx> both sides of the voltage regulator
[09:22:16] <twnqx> and small on to each vcc/avcc pin of the atmel
[09:22:30] <twnqx> and the vss/vs pins of the l293D
[09:22:44] <twnqx> rule of thuimb: put a capacitor next to each power input of an IC
[09:22:55] <beaky> ah thanks
[09:23:15] <beaky> so without these my system will run very "rough" or jittery?
[09:25:02] <twnqx> yes
[09:25:17] <twnqx> hm, the datasheet puts some examples for free wheeling diodes as well
[09:25:28] <twnqx> between the l293 and the motors
[09:26:01] <twnqx> even though there are some embedded, strange
[09:26:07] <twnqx> guess you'll get away without
[09:26:26] <twnqx> just check that the driver doesn't overheat on your breadboard
[10:12:53] <Badaboom> morning
[10:18:58] <thetruthisoutthe> http://www.guardian.co.uk/commentisfree/2013/jan/17/sacked-model-modern-employee-outsourcing :)
[10:22:30] <Badaboom> way to go "Bob"
[10:23:10] * megal0maniac_afk port forwarded incorrectly
[10:23:36] * megal0maniac_afk is ircing from an ssh session within an ssh session :/
[10:23:45] <Badaboom> lol
[10:23:51] <Badaboom> wel shhh then
[10:23:57] * megal0maniac_afk is leaving because lag
[10:24:07] <megal0maniac_afk> :)
[10:24:40] <RikusW> 29°33'46.53"S 22°53'50.85"E pacman !! :)
[10:24:59] <Badaboom> is that for a treasure?
[10:25:31] <RikusW> have a look in google earth
[10:25:36] <Badaboom> rgr
[10:26:32] <ambro718> does anyone have a 16.16 fractional multiplication?
[10:27:40] <ambro718> that is, multiply two 32-bit integers and discard the lower 32 bits
[10:29:04] <megal0maniac_afk> RikusW: It's... it's a family :P
[10:29:13] <RikusW> heh yep
[10:29:27] <RikusW> ufo landing sites :-P
[10:29:57] <RikusW> (center pivots actually)
[10:30:00] <megal0maniac_afk> Oh!
[10:30:06] <megal0maniac_afk> We actually drive near there
[10:30:14] <megal0maniac_afk> (cpt - kby)
[10:30:36] <megal0maniac_afk> Okay it's a 100km detour, but still
[10:31:07] <thetruthisoutthe> quite a few anti-vehicle mines fit in 100km
[10:50:20] <jadew> what are those round green patches?
[10:50:24] <jadew> why are they round?
[11:01:43] <cart_man> Does UART code differ from MCU to MCU with Atmegas?
[11:03:52] <jadew> cart_man, yeah, but slightly
[11:04:20] <cart_man> I followed this Tutorial just to get a quick grasp on USART --> http://www.fourwalledcubicle.com/AVRArticles.php
[11:04:49] <cart_man> quite a popular tutorial but doesnt seem to work on the Atmega328p
[11:05:15] <jadew> probably because atmega328 has two pairs of registers
[11:05:29] <jadew> since it supports two UARTS
[11:05:40] <cart_man> It does?
[11:05:45] <jadew> a regular one and one that works only in synchronous mode
[11:06:05] <cart_man> but you cant use them simultaniosly?
[11:06:16] <jadew> you can
[11:06:36] <cart_man> But they require the RX TX pins right?
[11:06:43] <jadew> different ones
[11:06:49] <jadew> check the datasheet
[11:07:05] <jadew> to get that code working you'll probably have to replace some register names
[11:07:25] <jadew> like UDR0 instead of UDR
[11:10:37] <RikusW> jadew: iirc m328 got UDR0 instead of UDR but there is no UDR1 like on m324
[11:11:12] <jadew> RikusW, interresting, so how do you write data to the synchronous one?
[11:11:26] <RikusW> m328 got only one UART
[11:11:34] <RikusW> m324 got 2
[11:11:38] <jadew> ah
[11:12:16] <RikusW> breaks m8 -> m328 portability a bit...
[11:15:19] <jadew> yeah, but not that big of a deal
[11:15:35] <jadew> the naming is quite consistent
[11:37:53] <tzanger> wow this PL2303 usb dongle is ass
[11:42:28] <jadew> the driver sucks
[11:42:36] <jadew> keeps crashing
[11:42:39] * twnqx never had problems with prolific chips
[11:42:51] <tzanger> I have problems with prolific pl2303 about 75% of the time
[11:42:57] <tzanger> ftdi never an issue
[11:43:10] <tzanger> this is using the oss osx driver as well, which is marginally more stable
[12:05:27] <Grievar> There are apparently a lot of bad PL2303 clones
[12:46:37] <cart_man> How trust worthy are these Virtual SeRie port emulators?
[12:53:51] <jadew> they'll steal your wallet when you're not looking
[12:54:47] <Casper> those should be ok
[12:55:00] <jadew> he left anyway
[12:56:30] <theBear> heh
[13:06:51] <jadew> http://www.youtube.com/watch?v=qTl1asCDOgs
[13:06:52] <jadew> YouTube: Parrot Dancing Gangnam Style
[13:07:16] <theBear> oooh ! now THAT i will click on !
[13:07:43] <theBear> that's a cocky not a parrot !
[13:07:51] <theBear> and they LOVE dancing
[13:08:01] <theBear> and they taught me to whistle
[13:08:14] <theBear> i know a song (whistling and words and hand movements) that will make ANY one dance
[13:10:24] <jadew> make a video
[13:10:54] <theBear> i don't have any here, might have an old video tho, not tonight tho
[13:23:51] <beaky> lllh
[13:23:52] <beaky> hello
[13:28:33] <beaky> I love atmel
[13:29:54] <jadew> wth happened there?
[13:30:02] <jadew> beaky, you broke the internet again
[13:30:03] <theBear> usual shit
[13:30:06] <theBear> different day
[13:30:14] <theBear> ohoh he did it again
[13:30:21] <beaky> :(
[13:52:33] <RikusW> 46°52'33.18"S 37°51'33.02"E now this is really in the middle of nowhere.....
[14:06:37] <yunta> oh ffs, avrispmkii, y u no write more than 256 bytes ? :(
[14:06:58] <Voodoofish430> timing or voltage maybe?
[14:07:31] <yunta> hard to tell, I own no scope
[14:10:37] <Voodoofish430> voltage is easy, vm, and fresh batteries. make sure things that should be grounded are and recheck connections. Timing, that is configurable. I assume that you are trying to write a prog to a chip.
[14:13:24] <yunta> 3.3291
[14:14:12] <yunta> I guess formally I should have all grounds and vccs connected externally
[14:14:15] <yunta> that I'm missing
[14:17:56] <yunta> is power supply in avrispmkii strong enough for powering xmega during programming?
[14:18:22] <yunta> or should I use external supply?
[14:18:26] <yunta> so many options....
[14:27:21] <yunta> O_o that was it!
[14:27:54] <yunta> Voodoofish430: thanks for hint :) my voltage was just right, but supplied only to one of 4 gnd/vcc pairs
[14:28:20] <yunta> it flashes perfectly with power connected to 2 of 4 ports
[14:29:36] <Badaboom> jadew
[14:32:53] <jadew> hey
[14:34:30] <Badaboom> https://www.youtube.com/watch?v=T8zu_Ha144k
[14:34:48] <Badaboom> Theres your help in action,, so dont laugh at the other vids:)
[14:35:01] <jadew> hah, nice!
[14:36:04] <Badaboom> :),, Just a sorta Hello World of that display
[14:36:54] <jadew> I like the fade way the text goes out :)
[14:37:23] <Badaboom> ty,, that took alot of figureing out the hex from the data sheet
[14:37:30] <Badaboom> -e
[14:37:40] <jadew> I bet
[14:38:01] <Badaboom> I made a code sheet for it and am working on a datasheet as well
[14:38:20] <Badaboom> since its old and theres no trace of it since motorola sold out
[14:38:37] <jadew> how much did you pay for the Max7219?
[14:38:49] <Badaboom> cough cough,, pay?
[14:38:51] <Badaboom> lol
[14:39:06] <jadew> ah hehe
[14:39:20] <jadew> was checking the price and it's kinda expensive
[14:39:30] <jadew> I think you can get the same functionality from a mega8 or something similar
[14:39:35] <Badaboom> yep,, thats why i sampled it
[14:40:24] <Badaboom> yes,, i know i need to work more on multiplexing on my own and use npn's to run the digits
[14:40:56] <Badaboom> but i just wanted to get into SPI
[14:41:09] <Badaboom> and seeing as i had already ordered that chi[
[14:41:26] <Badaboom> I have 2 of those and 2 6951's
[14:41:49] <Badaboom> and as you can see i had to mount it under the board and make my own breakout
[14:42:41] <jadew> how many outputs does it have?
[14:42:54] <Badaboom> on the attiny2313?
[14:42:58] <Badaboom> oh
[14:42:59] <Badaboom> wait
[14:43:00] <jadew> the max
[14:43:03] <Badaboom> 1
[14:43:19] <Badaboom> 1 do
[14:43:19] <jadew> I can't download the datasheet from octopart
[14:43:27] <jadew> no, I mean for the leds
[14:43:42] <Badaboom> oh its capable of driving 64
[14:43:50] <Badaboom> individual leds
[14:43:55] <Badaboom> 8 digits
[14:43:59] <Badaboom> if 7 seg
[14:44:03] <Badaboom> with dp
[14:44:35] <Badaboom> <---Needs to form sentences,,lol
[14:45:28] <jadew> I just checked the datasheet, 17 output pins
[14:45:50] <Badaboom> yep,, abcdefg dp then 0-7
[14:45:59] <Badaboom> wait
[14:46:02] <jadew> you can get way more with a mega8
[14:46:09] <jadew> 21 output pins
[14:46:14] <Badaboom> hmm
[14:46:27] <Badaboom> now you have my complete attention
[14:46:29] <jadew> that's excluding the spi data
[14:46:47] <jadew> well, you can drive leds with it too
[14:47:08] <Badaboom> so that particular avr was designed for that sort of app?
[14:47:10] <jadew> and you can have whatever configuration you want
[14:47:17] <Badaboom> hmm
[14:47:21] <jadew> Badaboom, no, but you can get it to do it
[14:47:33] <jadew> consider this:
[14:47:40] <Badaboom> ahh i see,, i really did alot of reading last night
[14:47:53] <jadew> instead of digit 1 - 6, you could use PC0-5
[14:48:02] <Badaboom> ok
[14:48:03] <jadew> when you wanted to have it light up, you would drive it low
[14:48:28] <jadew> then the segments would be driven by a different port, which would get driven high
[14:48:51] <Badaboom> - the transistors?
[14:49:18] <jadew> Badaboom, you might not need transistors, it depends on how much current the leds require
[14:49:19] <Badaboom> ive seen it done thats why i ask
[14:49:49] <Badaboom> exactly,, so if there on the lower side then no,, gotcha
[14:49:59] <jadew> if they require less than like... 40mA total, you should be fine I think (you'll have to check the maximum ratings of the AVR for the max amps on a pin)
[14:50:22] <Badaboom> this display seems to be a low current draw
[14:50:48] <Badaboom> im using 330 to those top leds and its fine
[14:51:17] <Badaboom> oh and as i mentioned i backed down the intensity as you probably noticed
[14:54:08] <jadew> Badaboom: http://dumb.ro/pictures/termostat/WP_20130126_007.jpg
[14:54:17] <jadew> that one is driven directly by the atmega8
[14:54:37] <jadew> the display has resistors on every led tho
[14:54:51] <jadew> http://dumb.ro/pictures/termostat/WP_20130126_013.jpg
[14:56:33] <Badaboom> nice,, thats weird,, i was thinking of making a thermostat last night,, i found some therm resistors
[14:56:49] <jadew> http://dumb.ro/pics/?folder=termostat
[14:56:52] <Badaboom> one out of an old brookstone deal
[14:56:53] <jadew> I made it for a friend
[14:56:58] <jadew> it's using a ds18s20
[14:57:28] <Badaboom> very cool:)
[14:57:34] <Badaboom> thats a sensor?
[14:57:51] <jadew> yeah
[14:58:00] <Badaboom> gotcha
[14:58:22] <Badaboom> after you left last night i went and read for hours
[14:59:11] <jadew> what did you read?
[15:00:17] <Badaboom> mainly on the history of avr and RISC
[15:00:17] <Badaboom> RISC in general
[15:00:18] <Badaboom> I found it funny the author says Atmel says the name AVR has no meaning yet ive read other sources that point to Arnie and Verns RISC
[15:00:54] <Badaboom> Practicle AVR Microcontrollers
[15:01:36] <Badaboom> Alan Trevennor
[15:02:09] <Badaboom> but he only deals with Arduino so i can take to much from the software side
[15:03:38] <tomatto> hi
[15:03:51] <Badaboom> potatto
[15:04:03] <tomatto> how could be signature of atmega8 this => avrdude: Device signature = 0x535353 ?
[16:02:36] * Roklobsta|2 suspects Tom_itx is a beowuld cluster of AVR's running ELIZA.
[16:20:50] <RikusW> A PC emulator in Javascript: how much time takes your browser to boot Linux ?
[16:20:50] <RikusW> http://bellard.org/jslinux/
[16:20:55] <RikusW> this is nuts :-P
[16:22:04] <Fleck> few secs
[16:32:21] <Fleck> 1st 4 bits from lsb are <10 from number, 2nd 4 bits are tens... how do you get to this: val - 6 * (val >> 4)??? and back: val + 6 * (val / 10)
[16:35:22] <seldon> s/6/16/g ?
[16:35:34] <Fleck> ?
[16:36:03] <seldon> 16 * (val >> 4) and 16 * (val / 10), respectively.
[16:36:10] <antto> how do you specify the full path to a .hex to avrdude? it complains about the ":" char in D:\...
[16:38:20] <Fleck> seldon: sorry?
[16:38:57] <seldon> 16 * (val >> 4) is equivalent to (val >> 4) << 4, so that loses the least significant four bits. subtracting that from the original value gives you the tens of the BCD.
[16:39:37] <seldon> Although it would be easier to write val & 0xf0 (assuming 8 bit int).
[16:40:57] <Fleck> yep - thats what I did, but then I saw this expression... and wonder, how can you come up with that :D
[16:41:09] <seldon> For the right hand expression to make any sense, val would have to be encoded regularly, though. I don't immediately see the sense in it. Could you provide some more context?
[16:41:31] <seldon> Practice. :P
[16:42:23] <Fleck> yeah - for example - 45 is split, 0100 and 0101 and that is 0b01000101 = 69; 69-6*(69>>4) = 45... crazy! :D
[16:43:08] <twnqx> bcd to hex conversion, eh
[16:43:12] <Fleck> this is what I did: (((c & 0x70)>>4) * 10) + (c & 0x0F) :/
[16:43:22] <twnqx> been researched since the... 70s at least
[16:43:33] <twnqx> probably longer
[16:45:14] <seldon> Well, in a two-digit bcd, the binary value is tens * 16 + ones, so subtracting 6 * tens gives you the original value.
[16:46:12] <seldon> And now the original expressions make sense.
[16:47:06] <twnqx> true, bcd to binary. my bad.
[16:47:22] <Fleck> twnqx: vice versa also! :)
[16:47:42] <seldon> Same reasoning.
[16:47:53] <twnqx> just no easy :>
[16:47:55] <seldon> My thoughts went down a completely different lane there for a while.
[16:47:58] <twnqx> divide by 10, eh
[16:49:00] <seldon> That is where BCDs shine :D
[16:49:15] <seldon> But you go crazy reading that sort of code.
[16:52:59] <Fleck> yeah and - I didn't know it's called BCD
[16:53:08] <jadew> it's the first time I hear about BCD
[16:53:11] <Fleck> when you know that - you can google great things :D
[16:53:25] <jadew> so it's basically a non standard binary number?
[16:53:31] <seldon> binary-coded decimal.
[16:53:45] <seldon> Every nibble represents a decimal digit.
[16:54:02] <jadew> what's a nibble?
[16:54:08] <seldon> half-byte.
[16:54:29] <seldon> You find it a lot in COBOL code, if you are unfortunate enough to have to deal with that. Because money.
[16:55:44] <jadew> who came up with this?
[16:55:45] <jadew> it's stupid
[16:55:54] <Fleck> its not!
[16:56:02] <jadew> sure it is
[16:56:09] <jadew> you're wasting permutations
[16:56:21] <seldon> It's often stupid and sometimes useful.
[16:57:28] <jadew> when is it useful?
[16:57:49] <seldon> Sometimes those can be used for other stuff (like in Badaboom's 7-segment-LED driver IC).
[16:58:14] <seldon> When you're writing programs for beancounters, mostly. Or for that 7-segment stuff.
[16:58:37] <seldon> Because all beancounters want is fixed-point decimal arithmetic.
[17:00:15] <jadew> if you're going to use the byte to store other data, you're obviously doing it low level and if you're doing it low level, you can drive the thing yourself, if you're doing that, you already need to output 7 bits + the decimal point or the - sign
[17:00:52] <jadew> internally, even if you would store more data inside that byte, it would still be decomposed into 7 bits in one byte or even the 8th bit + the other data you put in
[17:00:56] <jadew> so it's not really useful
[17:01:20] <jadew> it's more like a resource waster than anything else, because coding and decoding the byte doesn't come free
[17:02:34] <Fleck> :D
[17:02:49] <seldon> If you're worried about space, there are more densely packed encodings that pack three decimal digits together in 10 bits. However, there are use cases where space is not the most pressing concern.
[17:03:22] <jadew> so why use BCD if it's not?
[17:03:37] <seldon> And if you talk to a LED driver IC that expects you to clock in the number you want to see in BCD, you kind of need to do that if you want it to work properly.
[17:03:48] <jadew> obviously
[17:04:03] <jadew> but still, that doesn't mean it's a good design
[17:04:31] <seldon> Well, it kind of makes sense for these things. There's one register for each digit, and you fill them separately.
[17:04:52] <seldon> But they do use the other permutations for -, H, E, L, and P or some such thing.
[17:06:14] <jadew> I guess that would make sense
[17:06:52] <seldon> Anyway, if you want fixed-point decimal arithmetic, using a BCD encoding is a defensible choice. You may know the problems you run into with floating point representations of amounts of money. 41.99999999997$, anyone?
[17:07:44] <seldon> But it is rare, and rightly so.
[17:07:46] <jadew> just round it down and pocket the change
[17:08:18] <seldon> Often it is better to calculate with integers and remember the factor you have on all numbers.
[17:10:27] <seldon> Except, well, multiplication and stuff.
[17:11:54] <jadew> luckly I don't work with money and if I had that issue, I'd round it down since a few cents aren't worth the trouble, unless it was accounting software and I had an accountant to tell me how to do it
[17:14:00] <seldon> Your boss might see things differently if your program started churning out bills that were off by a cent. That sort of stuff is kind of embarrassing to businesspeople.
[17:14:18] <seldon> In any case, "I have no use for it" is a different argument from "it's useless."
[17:14:43] <jadew> yeah, the SPI controller example makes sense really
[17:14:48] <jadew> LCD controller
[17:29:41] <mntspy> Hi ! Can someone help me to add atxmega64b3 to my avrdude.conf file ? I can't figure out how to find "offset", "page_size", "readsize" parameters...
[17:33:54] <mntspy> Hello
[17:37:45] <Badaboom> yawn
[17:54:31] <OndraSter> has anyone here used those small 0.96" OLEDs? I heard that there is some funky input voltages requirement
[17:54:51] <OndraSter> like one 3.3 - 4.5V and one 2.7 - 3.3V, but it has to be lower by 0.x volts than the other one
[18:02:07] <tzanger> heh, spewing debug data at 230400 baud on a pic to a ft232
[18:05:40] <beaky> hello
[18:06:20] <beaky> http://ideone.com/njHUA4 anyone willing to criticize my firmware? :D
[18:06:45] <beaky> when I push my button connected to INT0, nothing happens :( is it a problem with my firmware or with my hardware connections?
[18:11:40] <seldon> Put the INT0 input pin on the internal pull-up (unless you have an external one), or its state will not be defined. (Note: I am guessing that you just have a push button between the pin and GND).
[18:12:20] <seldon> Also, as it is now, the ISR will then trigger both when you push the button and when you release it, possibly several times each time (unless the button is debounced in hardware).
[18:12:51] <beaky> ah, the button is between the pin and Vcc
[18:13:17] <seldon> If you want to do it that way, you'll need an external pull-down resistor.
[18:13:23] <beaky> ah right
[18:13:27] <beaky> I forgot that :(
[18:13:33] <seldon> But the usual way is to use the internal pull-up and put the button between pin and GND.
[18:14:04] <beaky> internal pull-up is setting the pin of DDRx as high?
[18:14:24] <seldon> No. Low in DDR (i.e., as input) and high in PORT.
[18:14:30] <beaky> ah
[18:14:40] <beaky> thanks I will fix my thing :D
[18:14:43] <seldon> DDR = Data Direction Register
[18:15:38] <seldon> Which chip are you using there?
[18:15:39] <beaky> if I change it to gnd, that means I will have to set INT0 to run on a falling edge?
[18:15:44] <beaky> I am using the ATmega328p
[19:40:43] <TechIsCool> why does this while(!(USARTE0.STATUS & USART_RXCIF_bm)); cause a expected '}' before ';' token?
[19:41:31] <Valen> guessing you have an unterminated { somewhere above it
[19:41:38] <Horologium> something in your USARTE0.STATUS maybe?
[19:41:39] <Valen> or an if
[19:42:18] <Horologium> without seeing the rest of the code there is really no way to tell.
[19:43:33] <TechIsCool> http://pastebin.com/WQsu5H59
[19:43:46] <TechIsCool> I don't see one that's the weird part
[19:44:10] <TechIsCool> line 37,100,121 are where it is complaining
[19:45:06] <TechIsCool> http://pastebin.com/bReAUWyN
[19:45:20] <TechIsCool> errors at the end
[19:45:28] <TechIsCool> not sure why it broke the text around
[19:46:54] <Horologium> no clue.
[19:47:01] <Horologium> would have to run it through a compiler
[19:47:03] <Horologium> and I'm lazy.
[19:47:15] <TechIsCool> understood
[19:47:24] <Horologium> been a long day.
[19:47:44] <Horologium> maybe someone else will spot it.
[19:47:58] <Horologium> have you tried putting {} after the while instead of a ; ??
[19:48:24] <TechIsCool> no
[19:48:28] <Horologium> try it.
[19:48:49] <TechIsCool> yah that was it but why
[19:49:00] <Horologium> because
[19:49:03] <Horologium> no clue.
[19:49:09] <TechIsCool> LOL nice
[19:49:15] <Horologium> something with while not liking ; perhaps?
[19:55:36] <Valen> while needs to have something to do i guess
[19:55:42] <Valen> even if its nothing
[19:56:08] <TechIsCool> but it used to work
[19:56:15] <TechIsCool> that's the weird part
[19:56:15] <Horologium> updated gcc maybe?
[19:56:18] <Valen> gcc version change?
[19:56:22] <TechIsCool> nope
[19:56:52] <Horologium> didn't hold your left pinky at the correct angle when you typed the command to build the project.
[19:57:08] <TechIsCool> I know right
[19:58:00] <TechIsCool> foudn it
[19:58:02] <TechIsCool> lol
[19:58:16] <TechIsCool> I have a table of items that I brought in. One of them is status... fail
[19:58:28] <TechIsCool> it was overriding the builtin function
[19:58:32] <Horologium> OOPS
[19:58:33] <Horologium> hehe
[19:58:54] <TechIsCool> I did the old comment out anything that changed and found it hahah
[19:59:22] <Horologium> so, standard I.O. error then.
[19:59:47] <Horologium> or maybe standard I.P. error.
[20:00:05] <TechIsCool> I guess ha
[20:00:12] <TechIsCool> I had yet to read through it though
[20:00:44] <Valen> pebac
[20:00:50] <Valen> pebak rather
[20:00:54] <Horologium> pebcak
[20:01:01] <Valen> ffs, i'm going home
[20:01:25] <Horologium> PICNIC error.
[20:01:50] <Valen> thats a new one to me, i like that
[20:02:03] <Horologium> problem in chair not in computer(or copier in my line of work)
[20:02:09] <[w_w]> anyone doing usb using the asf? when i run in main if(udd_ep_run(BULK_IN, false, buff, sizeof(...) callback1)){ callback2(); } what runs first? callback1 or callback2? is callback1 in interrupt context?
[20:02:16] <Valen> oh god printers
[20:02:31] <Horologium> Valen, I fix copiers and printers for a living.
[20:02:52] <Horologium> [w_w], probably callback1
[20:03:24] <Horologium> [w_w], because it has to run as part of the if comparison first before it can possibly jump to callback2
[20:03:41] <Valen> Horologium: i feel sorry for you ;->
[20:03:49] <Horologium> it's not so bad.
[20:03:49] * Valen works in IT
[20:03:56] <Horologium> lots of good material for jokes.
[20:04:00] <Horologium> I wish I could work in IT again.
[20:04:05] <Valen> I'm kinda glad to be able to outsource that stuff lol
[20:04:07] <[w_w]> callback1 is an argument. it does not het evaluated in the if. callback1 is not callback1()
[20:04:19] <Horologium> I kinda do...I'm an Analyst/Tech...which means I get to fuck with computers and make them work with copiers and printers.
[20:04:20] <Valen> printer wont staple? call the it guy!
[20:05:15] <Horologium> [w_w], then your question can't be answered because you don't have callback1() in there anywhere.
[20:06:11] <Horologium> at least, not without knowing what the heck asf is.
[20:06:16] <[w_w]> Horologium, my question is about how udd_ep_run works... it may call callback1 or set it up to be called by interrupt later. i don't know.
[20:06:32] <[w_w]> atmel software framework.
[20:07:07] <Horologium> aahh...never used it...
[20:07:18] <Horologium> all twisted up with atmel studio and all.
[20:07:29] <Horologium> and I haven't bothered to untwist it to try to use it without atmel studio.
[20:08:02] <Horologium> sorry.
[20:08:19] <Horologium> Valen, staplers aren't too bad...
[20:08:34] <Horologium> folders inside of finishers are nasty picky things though.
[20:08:36] <[w_w]> it works well. its not all that twister.
[20:17:08] <Horologium> too bad it won't download.
[20:17:14] <Horologium> tried it three times now...
[20:17:29] <Horologium> of 188MB, I've gotten 45MB, 66MB, and 9MB
[20:28:38] <Tom_itx> OndraSter, there is a certain start up sequence for OLED too
[20:28:48] <Tom_itx> or you will cook it
[21:03:13] <Badaboom> oled bacon
[21:33:56] <Valen> is there a way to "follow" a persons facebook without liking it?
[21:34:31] <Valen> IE there is a political person i don't like, and I'd like to pick apart everything they say that's wrong
[21:35:58] <Roklobsta> just make a fake account and use a sandboxed browser to access it.
[21:36:24] <Valen> oh I don't mind having my name sprayed across their page
[21:36:30] <Roklobsta> i don't think you will go to jail if you make a fake facebook account by the name of Jack Mehoff.
[21:36:34] <Valen> i just want notifications they have posted something
[21:36:46] <Valen> Roklobsta: ROFL thats a good name
[21:37:02] <Valen> would be a better name for a supporter tough, somewhere it could get read out
[21:37:42] <Roklobsta> http://verkoren.wordpress.com/2013/03/10/jack-mehoff-loves-his-own-name/
[21:38:43] <Valen> lol
[21:38:59] <Roklobsta> typical queesnlander.
[21:39:07] <Valen> heh
[21:39:12] <Valen> fellow .au?
[21:39:33] <Roklobsta> swvic
[21:39:41] <Valen> sydney here
[21:39:52] <Roklobsta> it's cold.
[21:39:57] <Valen> I'm going to bag out the opposition member here on NBN stuff
[21:39:59] <Roklobsta> a good day to hack some avr
[21:40:13] <Roklobsta> yeah I just posted on whingepool nbn forum
[21:40:13] <Valen> tis friggin freezing, my fingers aren't working right
[21:40:20] * Valen is on there too
[21:40:44] <Valen> I figured pulling their arguments apart point by point on their facebook page might do something
[21:40:59] <Valen> i was thinking of visiting them if they have a "shopfront" at some point
[21:46:33] <Roklobsta> i have whined on turnbulls blog, whinged on whingepool, but Mr Broadband is bent on doing things his way.
[21:46:47] <Roklobsta> I use the term Broadband in the Orwellian sense.
[21:47:05] <Roklobsta> Maybe he'll make a Ministry of Broadband.
[21:47:29] <Valen> ministry of crappy internet
[21:47:46] <Roklobsta> exactly.
[21:48:41] <Roklobsta> anyway, I am reading avr manual. I want Timer1 to interrupt 100 times / sec. should be easy to set up....
[21:48:57] <Valen> I suggest interrupting *about* 100 times a sec
[21:49:02] <Valen> its much easier ;->
[21:49:16] <Valen> what do you want to do with it?
[21:49:54] <Roklobsta> just update a clock
[21:50:19] <Valen> does it need to be accurate?
[21:51:14] <Valen> if you are time keeping or something there are zero error algorithms http://www.romanblack.com/one_sec.htm Bresenham's Algorithm
[21:52:21] <Roklobsta> handy thanks
[21:52:43] <Roklobsta> i might end up making some sort of task scheduler too.
[21:52:53] <Roklobsta> dunno. for now I just want a 10ms tick counter.
[21:53:07] <Valen> fairynuff
[21:53:17] <Roklobsta> i am new to timer. so need to read some more.
[21:53:52] <Valen> timer is god
[21:54:06] <Valen> my main loop is {} and everything is timer and interrupts lol
[21:54:41] <Roklobsta> the way it should be.
[21:55:08] <Roklobsta> although what do you do for the bits that would go in main{}
[21:55:33] <Valen> honestly I don't have anything that winds up there half the time
[21:55:46] <Valen> last project i did i wound up using it for the PID loop
[21:55:57] <Roklobsta> hmmm, i am messing with 3gmodems and avr.
[21:56:05] <Valen> floating point maths is perhaps not the best thing to do in an interrupt
[21:56:11] <Roklobsta> never ever
[21:56:13] <Roklobsta> ever
[21:56:15] <Roklobsta> ever
[21:56:23] <Roklobsta> not even in the linux kernel.
[21:56:41] <Valen> i wouldn't say that
[21:56:53] <Roklobsta> I think if you are a kernel developer and put floats into the kernel source, Linus flies out to kick your arse.
[21:57:31] <Valen> if you have your 100hz isr, and your float maths fits in (and you don't need to do other stuff) then doing it in the isr would be fine
[21:57:43] <Valen> its only an issue if you run out of isr
[21:57:59] <Roklobsta> i haven't seen how bloaty the float lib is in avr.
[21:58:09] <Roklobsta> anyway, I can handle fixed point.
[21:58:32] <Valen> its pretty big ;->
[21:58:49] <Roklobsta> i'll avoid -lm as much as possible.
[21:59:07] <Roklobsta> i have not cast any floats either.
[21:59:20] <Valen> eh, don't worry about it too much
[21:59:28] <Valen> premature optimisation is the enemy of progress
[21:59:40] <Valen> if its easier with floats and you have a big chip, use it
[22:01:18] <Roklobsta> of course
[22:01:22] <Roklobsta> avr isn't big.
[22:01:39] <Roklobsta> on other mcu's i use the MUL/MAC hardware where I can.
[22:01:53] <Roklobsta> actually does avr have a mac/mul?
[22:03:30] <Roklobsta> so just quickly, (I am still reading) to set timer 1 to count and generate an irq but for the counter to be reset to a predefined value is pretty easy?
[22:03:38] <Xark> Roklobsta: Multiply, yes.
[22:05:01] <Valen> you can set a "top" value as well i believe
[22:05:09] <Valen> IE where it will rollover
[22:06:35] <Roklobsta> right so the preload would be 0xffff-0xTicksval
[22:07:18] <Valen> would need to look at the datasheets in more detail
[22:07:31] <Roklobsta> hard to read pdf on laptop
[22:07:38] <Valen> heh
[22:09:02] <Tom_itx> you got bad politicians down under too ehh?
[22:09:50] <Valen> you have a choice between somebody nobody likes and an idiot
[22:10:04] <Roklobsta> yeah, the guy in opposition wants to be the next prime minister Real Bad. That alone should rule him out for the job.
[22:10:16] <Valen> say *anything* to get it
[22:10:24] <Roklobsta> exactly, and he does.
[22:10:47] <Roklobsta> about a year ago he spoke off the cuff and then said to not beleive him unless he's reading a script.
[22:12:19] <Roklobsta> lunchtime
[23:08:46] <Roklobsta> mmm, cheap chinese lunch might have been a bad idea
[23:09:04] <Valen> it usually is *after* the fact
[23:09:09] <Roklobsta> $8
[23:14:12] <Roklobsta> aha i see. set OCR blah on TOP to trigger interrupt and clear timer
[23:15:53] <Valen> thats the one