#avr | Logs for 2012-12-05

Back
[01:24:48] <rue_mohr> ping
[01:24:54] <rue_mohr> !time
[01:24:54] <tobbor> My watch says its 11:13PM Tue Dec 04 2012
[01:25:17] <rue_mohr> !seen the place where the people are hiding
[01:25:17] <tobbor> I have never seen the place where the people are hiding
[01:41:08] <rue_mohr> 200uA in active state
[01:48:34] <rue_bed> !seen irseeyou
[01:48:35] <tobbor> irseeyou was last seen in #avr on Dec 03 22:55 2012
[01:48:44] <rue_bed> yesterday
[01:48:45] <rue_bed> hmm
[01:50:05] * rue_bed waves a fresh cup of coffee under Tom_itxs nose
[05:06:36] <k-man> hi
[05:07:21] <k-man> why is it that the ATmega328PU device seems to be missing from the default arvdude.conf file?
[05:07:39] <jadew> atmega328p
[05:07:44] <jadew> m328p
[05:07:50] <k-man> the chip with the signature 1e 95 14 that is
[05:08:31] <tkoskine> You can add it yourself. I remember doing the same once or twice.
[05:08:41] <k-man> jadew, i've found this twice now that the m328p option is for a different one
[05:08:47] <tkoskine> Just clone atmega328p/m328p entry and change the signature.
[05:08:50] <k-man> tkoskine, me too - but my question is, why is it not included?
[05:09:19] <Horologium> because the avrdude people haven't put it in yet.
[05:09:26] <jadew> k-man
[05:09:35] <jadew> if PU is the packaging
[05:09:39] <Malinuss> okay bit math still sometimes gets the best of me - how would I come around, giving a bytes x bit, the value of a other bytes y bit?
[05:09:40] <jadew> then you're looking for m328
[05:09:43] <k-man> i've had to go through the headache of fixing it myself twice now - granted its not hard once you know how, but its a waste of time and i'm sure lots of people encounter it
[05:10:10] <k-man> jadew, ah - you may be onto something there, let me check
[05:11:10] <discorpia> avrdude hasn't been updated in over a year as far as i know, that could be related
[05:11:20] <Malinuss> like I have byte called b1, and a byte called b2. How would I assign bit 4 from b2 to bit 6 from b1?
[05:11:45] <k-man> jadew, afaict, the signature 0x1e 0x95 0x14 does not appear in the default avrdude.conf file
[05:12:10] <k-man> discorpia, yeah maybe thats it?
[05:12:54] <discorpia> k-man: i'm not sure how new the different 328 variants are, but seems likely it wasn't very common when it was written
[05:13:30] <k-man> discorpia, maybe - anyway, i'd like to take some action on it - submit a patch or something
[05:13:34] <k-man> raise a ticket
[05:13:43] <jadew> m328p is 0x1e 0x95 0x0F
[05:13:45] <k-man> put a paper bag over my head
[05:13:51] <darknite> Malinuss: b2 |= ((b1&8)<<2); i think?
[05:14:27] <k-man> and I don't quite know what to do
[05:14:29] <discorpia> k-man: yeah, there are several avrdude-repos on github, not sure if anyone is the official though
[05:15:05] <discorpia> https://github.com/arduino/avrdude hahaha.. "piece of shit" x 1000
[05:15:10] <jadew> darknite, no, that woulldn't assign anything
[05:15:12] <k-man> discorpia, i think this is the oficial one: http://www.nongnu.org/avrdude/
[05:15:23] <Malinuss> darknite, but wouldnt that assign bit 8 from b1, to bit 6 from b2 :S... I understand simple bitmath, but this is over my head, hehe
[05:16:21] <Malinuss> darknite, I need this to be abel to move bitmaps with pixel precision on the y axsis, hehe
[05:16:59] <jadew> Malinuss: b1 = ( b1 & ~(1 << 6) ) | ((b2 & (1 << 4)) << 2);
[05:17:02] <jadew> that should do it
[05:17:21] <jadew> ( b1 & ~(1 << 6) ) this will clear bit 6
[05:17:55] <jadew> then it will OR the result with bit 4 (b2 & (1 << 4)) shifted to the left by 2 (so it becomes bit 6)
[05:18:05] <Malinuss> jadew, oh thank you so much, I've never figure this out myself!
[05:18:06] <jadew> you can do it a lot easier in asm tho
[05:18:26] <Malinuss> you could?
[05:18:40] <jadew> darknite's example is wrong because (b1&8) << 2 means bit 8 shifted by 2
[05:18:46] <jadew> bit 8 doesn't exist
[05:19:05] <jadew> and bit 10 is even further, so outside of the 8 bit range
[05:19:15] <jadew> it also ignores the fact that the target bit could be 0
[05:19:21] <jadew> so the bit needs to be unset in that case
[05:19:25] <jadew> and a simple OR won't do that
[05:19:55] <Malinuss> okay, I think I kinda get it...
[05:20:07] <Malinuss> thanks again
[05:20:11] <jadew> Malinuss, np
[05:20:17] <jadew> in asm there's bst and bld
[05:20:19] <Malinuss> this isn't exactly as easy as one would expect btw.
[05:20:57] <jadew> not that hard either
[05:23:23] <w|zzy> any updates jadew?
[05:23:56] <jadew> hey w|zzy
[05:24:06] <w|zzy> hi
[05:24:40] <jadew> depends which version you have, I haven't worked on it in a while, it didn't get used by anyone else so I kinda gave up on actively developping it
[05:24:53] <jadew> if there's no interrest in it, there's no reason to waste time on improving it
[05:25:04] <jadew> people seem to prefer the java version
[05:25:14] <darknite> jadew: b1&8 is 8th bit??
[05:25:23] <darknite> jadew: what? 8 = value of 4th bit...
[05:25:24] <jadew> oh, wait
[05:25:27] <jadew> it's 4th
[05:25:28] <jadew> you're right
[05:25:34] <jadew> still not correct tho
[05:25:57] <jadew> because if the bit is 0 and bit 6 from b1 is 1, it won't have any effect
[05:26:21] <darknite> yeah true, i didn't take clearing into account
[05:26:51] <jadew> w|zzy, check your version and see on the site if there's a new version
[05:29:01] <jadew> w|zzy, if you find bugs tho, please let me know, I will eventually address them
[05:29:05] <Malinuss> jadew, there is something wrong... when I b1 = ( b1 & ~(1 << 6) ) | ((b2 & (1 << 0)) << 2); while b2 is 0001, then b1 is 4
[05:29:31] <jadew> yes
[05:29:47] <jadew> wait
[05:29:53] <jadew> yeah
[05:29:53] <Malinuss> I expected 32
[05:29:57] <jadew> it makes sense
[05:30:02] <jadew> well, you're only shifting by 2
[05:30:10] <jadew> ((b2 & (1 << 4)) << 2)
[05:30:14] <jadew> (1 << 4)) << 2
[05:30:25] <Malinuss> what is the 4, for then?
[05:30:28] <jadew> bit 4, shifted by 2 => it becomes bit 6
[05:30:40] <jadew> (1 << 0)) << 2 => bit 0 shifted by 2, becomes bit 2
[05:31:25] <jadew> Malinuss, the 4 selects the bit inside b2
[05:31:29] <jadew> then the 2 shifts it by 2
[05:32:37] <jadew> 1 << 4 = 10000
[05:32:51] <Malinuss> okay so I should write something like b1 = ( b1 & ~(1 << target_bit) ) | ((b2 & (1 << which_bit)) << target_bit); right?
[05:32:53] <jadew> 10000 << 2 = 1000000
[05:33:05] <jadew> no
[05:33:09] <Malinuss> oh wait
[05:33:25] <Malinuss> no I don't get it ;P
[05:33:33] <jadew> heh
[05:33:49] <jadew> ok, try to see what happens in binary (in your head)
[05:33:59] <jadew> and tell me which part you don't get
[05:34:28] <jadew> after you figure it out, I'll give you a piece of code that does this more efficiently :)
[05:34:28] <Malinuss> okay I start doing ( b1 & ~(1 << target_bit) ) which clears, target_bit, right?
[05:34:42] <jadew> yes, why does it clear it?
[05:36:19] <jadew> well?
[05:36:41] <Malinuss> because it first NOT on the target bit, and then AND it, which will give 0 no matter what
[05:36:41] <jadew> what's the result of this? ~(1 << target_bit)
[05:37:12] <jadew> well, you're right
[05:37:18] <jadew> ok, next
[05:37:30] <jadew> (b2 & (1 << which_bit))
[05:38:28] <Malinuss> we AND which_bit with which_bit. so if it isn't 1 it would become 0
[05:39:04] <jadew> no
[05:39:18] <Malinuss> no :(?
[05:39:23] <jadew> (1 << 4) means 10000
[05:39:33] <jadew> 11111111 & 10000 = ?
[05:39:39] <Malinuss> oh right
[05:39:56] <jadew> what does it equal?
[05:40:15] <Malinuss> so it AND which_bit from b2, with 1. so it only becomes 1 if which_bit in b2 is 1
[05:40:19] <Malinuss> otherwise it would be 0
[05:40:24] <jadew> correct
[05:40:38] <jadew> but it will also stay 1 or 0 on the which_bit position
[05:40:47] <jadew> so if you want it on another position
[05:40:57] <jadew> you have to shift it there by the bit number difference
[05:40:58] <Malinuss> I move it by <<
[05:41:05] <jadew> like, if you want it on the 6th position
[05:41:11] <jadew> you have to shift it left by 2
[05:41:20] <jadew> if you want it on the 2nd, shift right by 2
[05:41:23] <w|zzy> jadew: people prefer the java version? or prefer the cross platform version?
[05:41:37] <jadew> w|zzy I have no clue
[05:42:05] <jadew> I got kinda dissapointed, because I know my version rocks and would have been completely awesome if I keept working on it
[05:42:22] <jadew> but whatever...
[05:42:45] <jadew> I also made a version that works under wine
[05:42:58] <w|zzy> I see the link..
[05:43:03] <w|zzy> I really like your version.
[05:43:07] <Malinuss> so... b1 = ( b1 & ~(1 << target_bit) ) | ((b2 & (1 << which_bit)) << target_bit-which_bit);
[05:43:20] <Malinuss> at least if target_bit > whichbit
[05:43:39] <jadew> w|zzy, thanks, I like it as well, I haven't completely given up on it, but I just don't feel motivated anymore
[05:43:50] <jadew> Malinuss, correct
[05:44:06] <w|zzy> The version i had was working very well for me, hence not looking for one earlier.
[05:44:13] <w|zzy> Then i saw you chatting and figured id asked
[05:44:39] <Malinuss> jadew, and if target_bit < which_bit then b1 = ( b1 & ~(1 << target_bit) ) | ((b2 & (1 << which_bit)) >> which_bit-target_bit); ??
[05:44:47] <jadew> if it's an older version, then the new one might at least have newer protocol parsers
[05:44:53] <w|zzy> It does.
[05:44:55] <jadew> Malinuss, yep
[05:45:43] <Malinuss> jadew, the "effiecient way you would show me" :)?
[05:46:03] <jadew> Malinuss, http://dumb.ro/files/bit2bit.txt
[05:46:21] <darknite> hmm.. shouldn't b2 = (b2&~32) | ((b1&8)<<2) work as a straight transfer from b1:4 to b2:6?
[05:46:22] <Malinuss> oh shit
[05:46:23] <Malinuss> haha
[05:46:38] <jadew> darknite, same thing
[05:46:48] <jadew> the compiler will optimize those values anyway
[05:47:13] <jadew> it won't make (1 << 6) and (1 << 4) into real instructions
[05:47:37] <darknite> oh cool, must admit i didn't fully read all the lines posted with operations
[05:48:26] <Malinuss> / jadew @ #avr gave you this :) <-- this will be included in my PCD8544 graphical library, I promise you ;)
[05:48:35] <jadew> hehe
[05:48:39] <jadew> you don't have to
[05:48:45] <Malinuss> I want to, hehe
[05:50:13] <darknite> i don't even understand that asm syntax.. what does [B] "+r" (var) do? loads var addr into B?
[05:50:47] <jadew> it specifies that var should be loaded into a register
[05:50:54] <jadew> and it's addresable by [B]
[05:51:22] <jadew> so bld %[B], %[OUT_BIT] will actually translate to bld r17, 5
[05:51:36] <jadew> where r17 is the register picked by the compiler and 5 the bit
[05:51:58] <darknite> ah, cool, thanks
[05:52:00] <jadew> np
[05:52:21] <jadew> you can also address them by the number in which you declare them, but that's crappy, it's better to have them named
[05:52:39] <Malinuss> that's cool I didn't know you could make the compiler pick the register itself and stuff
[05:52:49] <darknite> only done x86 (and some sparc) asm, and i'm just now starting to move out of the arduino ecosystem (but still only doing C, not asm)
[05:53:38] <jadew> darknite, well, usually that's all you need, I only went full asm on something that had really tight space requirements
[05:55:24] <darknite> i haven't really come to that stage yet, although i have done some testing with different attiny models i've basically just built proof-of-concept projects where any performance issue was chalked up to it being just a test
[05:56:30] <darknite> but when trying to shift data to a display or similar i imagine wanting to use asm when regular linear pointer magic is not enough
[05:57:39] <Malinuss> I'm kinda on the same path as darknite, I've tried some stuff in asm too though to at least understand a little bit of the architecture...
[05:58:48] <jadew> yeah, it's not that useful in real life
[05:59:15] <Malinuss> darknite, I think it was a great feeling to let go of arduino and start using C. It made everything so clear, don't you agree?
[05:59:15] <jadew> the project I used it on was a 1-wire to dht11 converter and I wanted to use the cheappest chip I could find
[05:59:27] <jadew> so I went for the attiny13 :P
[06:00:53] <Malinuss> jadew, oh if you are interested in what I use it for I can tell :P : I use it to shift bitmaps to pixel-perfect position, when they are stored in the 8 pixels for each byte (1bit=1pixel) format... So I do some stuff with modulus to figure out which bits to move where in the byte "under" this one, etc...
[06:01:22] <darknite> Malinuss: yeah, especially since i'm from a developer background going from arduino to an exposed toolchain has given me a lot of clarity regarding the process from compiling to running on the mcu
[06:01:33] <jadew> nice
[06:02:02] <darknite> i only have attiny85s
[06:02:20] <darknite> or rather i have some 2313 nnn
[06:02:43] <jadew> the only downside to 2313 is that they don't have adc's
[06:02:45] <darknite> *but haven't tried them
[06:03:09] <Malinuss> darknite, that's not really the case for me, since I use AS and a bootlader to program the mcu... So still lot of automagic for me ;D... I'm more thinking about the fact how to change the registers to make the mcu do what you want, instead of automagic functions from bloated libraries ;P
[06:03:19] <tkoskine> k-man: Btw, atmega328 / 0x1e 0x95 0x14 signature is in the latest avrdude.conf from the version control repository: http://svn.savannah.nongnu.org/viewvc/trunk/avrdude/avrdude.conf.in?revision=1124&root=avrdude&view=markup
[06:04:19] <Malinuss> jadew, they don't ? oh wow what a dissapointment, I just ordered one from ebay. Guess I should have checked the datasheet, I just assumed all newer uC would have a adc...
[06:05:10] <darknite> Malinuss: yeah i'd say both. i've set it up to build/upload automatically as well so not that i have gone into it on a deep level. but have an mkII and a tinyisp so tried a little differnt programming options to learn fuses etc
[06:05:49] <Malinuss> yeah I'm gonna order one of Tom_itx prorgrammers too, to ba abel to do that..
[06:06:02] <darknite> Malinuss: ironically my eyes were opened to the whole direction/port manipulation when i was looking at msp430 a couple of months ago, before i had started taking the atmega seriously
[06:07:36] <Malinuss> darknite, it's not only about the port manipulation, also all the other peripherals a bigger chip has. When you learn avr-c it's just a matter of looking up in the datasheet and the whole power of the chip is in your hand, instead of googling "x peripheral arduino library"
[06:10:23] <darknite> yeah, and it was not until then i realised that the avr architecture was shared between different chips, i had figured the arduino libs was some kind of middleware to wrap for different hardware
[06:12:22] <Malinuss> darknite, I think there might be some diffrences between the register names etc...
[06:12:36] <Malinuss> I only have one chip so far so I don't know ;P
[06:18:14] <darknite> from what i understand it's basically one architecture with different parts implemented/left out depending on chip
[06:19:37] <Malinuss> wonder how different the Xmegas are, since they have 16-bit registers too
[06:21:39] <Malinuss> jadew, I get a "impossible constraint in 'asm'" is that just my compiler?
[06:22:24] <jadew> depends
[06:22:27] <jadew> what are you passing to it?
[06:22:51] <jadew> show me the call
[06:23:04] <jadew> it makes some assumptions
[06:23:30] <jadew> one problem could be that you're passing a variable as the bit number
[06:23:33] <jadew> is that the case?
[06:23:34] <Malinuss> jadew, oh boy, here you go: BYTE_BIT_TO_BYTE_BIT(pgm_read_byte_near(&(ASCII[*str - 0x20][index])), a, screen_buffer[index+x][whole], 7-a);
[06:23:47] <Malinuss> nope
[06:23:51] <jadew> what's a?
[06:24:00] <Malinuss> 0-8
[06:24:06] <jadew> is it a constant?
[06:24:10] <Malinuss> int
[06:24:15] <jadew> that's the problem :)
[06:24:21] <Malinuss> oh
[06:24:26] <jadew> now you have two options
[06:24:44] <jadew> either make that call 8 times (for speed) - that's how I'm using it when I need to do it more times
[06:24:53] <jadew> or use the other option
[06:24:58] <Malinuss> can I just const k = a?
[06:25:06] <jadew> nope
[06:25:20] <jadew> it needs to be a number
[06:25:27] <Malinuss> I don't know how many times I want to do it, so I cant just call it 8 times
[06:25:30] <Malinuss> it's in a for loop
[06:25:36] <jadew> got it
[06:25:50] <jadew> then I'm sorry, you'll have to go with the c version
[06:25:58] <jadew> since you actually have to shift data around
[06:26:04] <Malinuss> oh okay. thanks
[06:26:08] <jadew> this was making use of those two instructions
[06:26:21] <jadew> which only take a constant number as the bit number
[06:26:23] <jadew> np
[06:26:29] <jadew> sorry it didn't work
[06:28:48] <Malinuss> jadew, just wanna make sure: this is the code, right: http://pastebin.com/yS4S2r3u
[06:29:06] <Malinuss> jadew, I don't want that to be wrong, because there are so many others thing that could be wrong too, haha
[06:29:24] <jadew> yeah, but you could do it a bit differently tho
[06:30:00] <jadew> (((b2 & (1 << which_bit)) >> which_bit) << target_bit)
[06:30:07] <jadew> and you don't need the else anymore
[06:30:19] <Malinuss> oh okay. thanks
[06:30:29] <jadew> ((b2 & (1 << which_bit)) >> which_bit) will get the bit and place it on the 0 position
[06:30:37] <jadew> then you can just shift it back wherever you want it
[06:31:18] <k-man> tkoskine, thanks for the pointer
[06:32:52] <Kre10s_> anyone using the usbprog in combination with openocd?
[06:37:22] <jacekowski> there is is_bit_set function
[06:59:25] <OndraVPS> I'll be damned
[06:59:28] <OndraVPS> still no interwebz
[07:03:09] <Kre10s_> OndraVPS, but you can IRC?
[07:04:23] <Tom_itx> OndraVPS, abc was here
[07:08:44] <OndraVPS> OMG OMG Tom_itx
[07:08:49] <OndraVPS> !time
[07:08:49] <tobbor> My watch says its 04:57AM Wed Dec 05 2012
[07:09:11] <OndraVPS> huh what time was it ..
[07:09:13] <OndraVPS> the 19:35
[07:09:15] <OndraVPS> but locally
[07:09:49] <Tom_itx> he's back in au for a bit
[07:09:55] <OndraVPS> oh
[07:10:03] <OndraVPS> why?
[07:10:11] <Tom_itx> holiday i suppose
[07:10:37] <OndraVPS> ah
[07:10:38] <theBear> he mentioned holiday when i scrolled up just now
[07:10:46] <theBear> i didn't even know he was gone
[07:10:47] <OndraVPS> I don't know how to scroll in irssi
[07:10:55] <theBear> from the country
[07:11:20] <theBear> netiher do i <grin> i use a real client, not a poor imitation of a classic one <hugegrin>
[07:11:30] <theBear> with a poor play-on-words name
[07:11:46] <OndraVPS> I can not run much on this VPS :D
[07:12:17] <karlp> OndraVPS: did you try just pageup/pagedown....?
[07:12:31] <karlp> theBear: what client is that then?
[07:13:09] <OndraVPS> oh lol karlp
[07:13:12] <theBear> hehe, xchat, it's rock solid, easy to scroll in, runs on all 'major' os's, and isn't a poor imitation of something i used to love 20 years ago
[07:13:12] <OndraVPS> thanks
[07:13:14] <OndraVPS> but too long log
[07:13:20] <theBear> rofl
[07:13:27] * theBear falls on the floor laughing
[07:13:28] <OndraVPS> theBear: I have got only console on the VPS
[07:13:44] <OndraVPS> hexchat on my home server
[07:13:49] <OndraVPS> but I do not re-route my home server through my backup
[07:13:59] <OndraVPS> immediatily everything (torrent, ..) would start eating my precius FUP :D
[07:14:10] <OndraVPS> plus I can keep pinging my ISP's network
[07:15:14] <OndraVPS> my home server = WS 2008 R2
[07:17:39] <OndraVPS> and I am probably the first person on the world who didn't think of wc -l
[07:17:43] <theBear> that's not a server, it's a waste of resources
[07:17:53] <OndraVPS> nor awk 'END {print something}'
[07:18:12] <OndraVPS> and wrote awk 'BEGIN { count=0; } { count++; } END {print count;}' :D
[07:18:46] <OndraVPS> something = NR*
[07:18:51] <theBear> my home server is 1ghz p3 coppermine, 512mb ram, doess realtime motion sensing/recording/streaming on 3 cameras, authorative dns, mail (imap and smtp), web, mysql, php if a page calls it, ftp, ssh, probly 10 other things i can't think of now
[07:19:11] <theBear> and along with the realtime motion detection idles around 40% cpu :) never tops out
[07:19:45] <theBear> i THINK it's got a graphics card at the moment, but it'd be a cheap low power one, none of that gui crap to drag it down
[07:20:39] <OndraVPS> I am running it on Celeron 430 (1.8GHz, Core2 arch so really low power), 2GB RAM
[07:21:02] <Tom_itx> i am running on an 8088 with 64k ram
[07:21:15] <OndraVPS> runs all the classic stuff - DHCP, DNS, AD, torrent, file
[07:21:23] <OndraVPS> exchange would run out of memory already ...
[07:21:26] <theBear> Tom_itx, :)
[07:21:34] <OndraVPS> CPU usage is nearly 0
[07:21:36] <OndraVPS> but RAM usage is up the roof
[07:21:37] <theBear> ad ? you mean bastardized ldap
[07:21:39] <Tom_itx> wondered if anyone would catch that
[07:21:41] <OndraVPS> yes
[07:21:43] <OndraVPS> active directory
[07:21:44] <theBear> and of course ram usage is thru the roof, stupid ms
[07:21:49] <OndraVPS> lol
[07:22:02] <OndraVPS> I also use facebook.
[07:22:06] <theBear> oh, and out of my 512mb ram, lemme just turn off the swap and check
[07:22:17] * Tom_itx can pee further but chooses not to
[07:22:18] <OndraVPS> this would die without SWAP when SQL Server is running
[07:22:30] <theBear> yeah, my machine doesn't :)
[07:22:35] <OndraVPS> enjoy
[07:22:37] <OndraVPS> I will enjoy my AD
[07:22:50] <OndraVPS> with simple GUI management
[07:23:09] <theBear> i can run an ldap server compatible with ad too if yer want, it'll only take maybe another 30-50mb ram with a few thousand records :)
[07:23:31] <OndraVPS> yeah I sometimes visit one company that runs LDAP based on Samba
[07:23:37] <OndraVPS> and actually our school does too
[07:23:44] <theBear> 106/512mb free, plus 47mb buffered and 22mb cached, rounded up
[07:23:45] <OndraVPS> (since all machines run both Gentoo and Win7)
[07:24:12] <OndraVPS> OR are just fu.king THIN CLIENTS FOR FU.KING SUN SOLARIS SERVER
[07:25:09] <theBear> to sum up, i think ms are stupid, and that windows servers are the stupidest idea ever, heck, and gui based servers, just windows manages to use an extra 3gb ram compared to ANYTHING else
[07:25:34] <OndraVPS> eh
[07:25:34] <Tom_itx> mine has no kbd or monitor
[07:25:40] <Tom_itx> just a power and ethernet plug
[07:25:47] <OndraVPS> so does mine
[07:25:50] <OndraVPS> and I use RDP.
[07:25:56] <OndraVPS> to run xchat!
[07:26:06] <theBear> client software on a server ? heathen !
[07:26:10] <OndraVPS> haha
[07:26:26] <OndraVPS> well since my PC does not run 24/7 but I want to be connected I don't have much choices do I
[07:27:00] <OndraVPS> same for torrents :)
[07:27:05] <theBear> i dunno, i run security and authoritive dns, so i kinda gotta run 24/7
[07:27:10] <theBear> security=cameras
[07:27:25] <theBear> oh, you mean you desktop... that's why they invented bouncers
[07:27:40] <OndraVPS> and where would I run that
[07:27:41] <OndraVPS> on this VPS?
[07:27:43] <theBear> and console torrent clients
[07:27:46] <OndraVPS> that often crashes?
[07:27:48] <OndraVPS> oh
[07:27:51] <theBear> i dunno, not sure there are any for windows <grin>
[07:27:52] <OndraVPS> and where would I run that
[07:28:01] <theBear> i'd run it on a real machine, like the p3 i just mentioned :)
[07:28:46] <OndraVPS> actually your P3 will eat more power than the Celeron 430
[07:29:17] <theBear> maybe just, but i aint rich enough to buy a new machine, and that doesn't change the fact that using more than 512mb of ram for a TON of server-stuff is wasteful
[07:29:30] <OndraVPS> well then
[07:29:31] <OndraVPS> enjoy
[07:29:34] <theBear> give me your machine, i'll be idling at half a cpu % and using a few hundred mb ram :)
[07:29:42] <OndraVPS> I will enjoy my simple math and GUI server
[07:29:46] <theBear> heck, i could even serve your current stuff for free <griN>
[07:30:03] <theBear> sorry, i can't help it, i just, can't understand how they can use all that ram for 'nothing'
[07:30:59] <theBear> and with that i walk away... one day i'll learn to walk away before i say all that stuff, but not yet
[07:32:19] <OndraVPS> oh and I also use Windows Phone.
[07:32:56] <theBear> meh, i used one of them for 8 or 9 years until solder could no longer keep it usable
[07:33:10] <theBear> but i put that down to htc being awesome, not winmobile being awesome
[07:33:24] <theBear> tho winmobile did beat wince and windowsphone or whatever htey call it these days
[07:33:37] <theBear> like winmobile 2002/2003/se
[07:33:43] <OndraVPS> WinMo ! WinPho
[07:33:52] <theBear> yeah, that's what i'm saying <grin>
[07:33:54] <OndraVPS> != even
[07:34:40] <OndraVPS> I even got my phone for free from Microsoft as a developer :D
[07:35:02] <OndraVPS> and bought the previous one for 200 eur from germany
[07:35:05] <theBear> i used to be on their good side, i got a card in my wallet, i probly got a devnet login i lost 10 years ago
[07:35:44] <theBear> also, while i boast about how awesome non-ms things are, i don't advocate anything to anyone anymore, it's just, a minefield
[07:35:58] <jacekowski> theBear: there is nothing wrong with gui on a server
[07:36:17] <theBear> also, i need to make dinner :) so forgive my dangerously strong feelings, and try not to mention os's to me in the future, that way all problems are avoided
[07:36:29] <theBear> jacekowski, it's very hard to hold my tongue, but, what i just said
[07:38:14] <OndraVPS> the beauty of GUI on server is that you can open multiple windows at once!
[07:39:10] <theBear> screen, ctrl-a-c, ctrl-a-a, ctrl-a-d, i rest my case <grin>
[07:39:26] <OndraVPS> what about two applications next to each other?
[07:39:30] <OndraVPS> :P
[07:39:31] <OndraVPS> ok
[07:39:52] <theBear> you hit like ctrl-a-w or something, but i seldom need that, so i forget :)
[07:40:55] <theBear> but seriously,i don't advocate, i feel people should use what makes THEM happy, i just, this is like how some people you mention a joke about the country they come from and they beat you to death, i can't help but get crazy when i get reminded about the crazy ram usage and boot times and swapping.... and i'm really hungry, please, let me go :)
[07:41:18] <OndraVPS> GO already :D
[07:41:50] <theBear> l8r :)
[07:44:36] <jacekowski> theBear: swap exists for a reason
[07:45:03] <jacekowski> theBear: so you can run full gui on any server and it will just get swapped when not in use
[07:45:24] <OndraVPS> I don't care for swap on my PC - I have got 16GB RAM, soon to be upgraded to 24GB :D
[07:45:41] <jacekowski> total used free shared buffers cached
[07:45:41] <jacekowski> Mem: 24163 22393 1770 0 0 16815
[07:45:41] <jacekowski> -/+ buffers/cache: 5578 18585
[07:45:41] <jacekowski> Swap: 17997 2030 15967
[07:46:26] <theBear> hehe, jacekowski wins :)
[07:46:50] <OndraVPS> is that your router? :D
[07:48:59] <jacekowski> that's my irssi server
[07:49:17] <OndraVPS> total used free shared buffers cached
[07:49:18] <OndraVPS> Mem: 524288 101768 422520 0 0 79576
[07:49:18] <OndraVPS> -/+ buffers/cache: 22192 502096
[07:49:18] <OndraVPS> Swap: 524288 20 524268
[07:49:24] <OndraVPS> free VPS :D
[07:49:38] <jacekowski> that was free -m
[07:49:40] <jacekowski> btw
[07:49:51] <jacekowski> so it's 24GB not 24kB
[07:49:58] <OndraVPS> ah :D
[07:49:58] <Steffanx> hah
[07:50:40] <Malinuss> jadew, can't remember if I already told you, but that method worked just fine for what I wanted to do. and thanks again ;P
[07:50:57] <jadew> np
[07:51:43] <jadew> why would you need so much ram OndraVPS?
[07:52:00] <OndraVPS> on my PC?
[07:52:03] <jadew> yeah
[07:52:11] <OndraVPS> I run ... many programs.. at once :D
[07:52:17] <jadew> I only upgraded to 16Gb because I had some really weird thing to test
[07:52:19] <OndraVPS> 8GB RAM with no VMs running is no problem
[07:52:35] <jadew> but 4 or say... 8 should be more than enough for.. everything
[07:53:30] <OndraVPS> plus RAM is cheap
[07:53:32] <jadew> even on a server you don't need that much, unless you're hosting some bad-ass db
[07:54:45] <jadew> I guess that's a good enough reason, if it's cheap, why not? :P
[07:55:02] <OndraVPS> I was upgradingmy whole PC
[07:55:10] <OndraVPS> i5-2500k, GTX560 Ti
[07:55:13] <OndraVPS> 16GB was no brainer
[07:55:18] <OndraVPS> no 8GB sticks back in the day though :(
[07:55:37] <jadew> there are 8gb sticks now?
[07:55:42] <OndraVPS> yes
[07:55:45] <OndraVPS> that is why I want upgrade to 24
[07:55:46] <jadew> nice
[07:56:00] <jadew> is there a reason you can't go up to 32?
[07:56:06] <OndraVPS> I don't need 32 yet :)
[07:56:10] <OndraVPS> I have got 4x4GB sticks
[07:56:14] <jadew> lol, but you need 24 :P
[07:56:18] <OndraVPS> I will change two 4GBs for 8GB
[07:56:28] <jadew> ah, I see
[08:07:29] <megal0maniac> OndraVPS: http://www.obdiiworld.com/download.htm
[08:12:06] <Malinuss> uh
[08:12:44] <Malinuss> oh shit, why didn't I know earlier you have to include avr-math-lib when using floating points? It's propably what caused me so much pain in trying to make that 3D renderer on my avr :(
[08:13:50] <AR_> legal eyes
[08:14:26] <Malinuss> huh?
[08:16:11] <Malinuss> AR_, what is lega eyes?
[08:16:30] <AR_> legal eyes
[08:16:41] <Malinuss> AR_, well "legal eyes" then? heh
[08:20:29] <Malinuss> AR_, I don't get it, what is it? I want to know now, haha
[08:20:44] <AR_> legal eyes
[08:21:26] <OndraVPS> megal0maniac: what are you sending me?
[08:22:40] <OndraVPS> huh
[08:22:45] <OndraVPS> Steam has just told me that it was downloading 1MB/s
[08:22:51] <OndraVPS> that is way above our 7.2Mbps HSDPA :D
[08:23:00] <OndraVPS> even if I was the only person on the cell
[08:24:08] <Malinuss> OndraVPS, why are you still on your VPS?
[08:26:14] <megal0maniac> OndraVPS: It's that xmega arduino board i found on ebay
[08:27:02] <megal0maniac> Seems pretty complete
[08:27:12] <megal0maniac> Although it uses ft232rl
[08:30:58] <OndraVPS> Malinuss: because my internet still does not work
[08:31:00] <OndraVPS> megal0maniac: ah
[08:31:47] <OndraVPS> check what libraries he rewrote
[08:32:03] <megal0maniac> All the standard stuff plus DAC
[08:32:06] <OndraVPS> I am on few kB/s because my phone's wifi hotspot barely reaches the opposite side of the house
[08:32:09] <OndraVPS> wow
[08:32:28] <OndraVPS> but no colour syntax highlight
[08:32:31] <OndraVPS> or parameter suggestion!
[08:32:57] <megal0maniac> http://pastebin.com/V7f85PZc
[08:33:05] <megal0maniac> No because it's Arduino
[08:33:11] <OndraVPS> yep :)
[08:33:22] <megal0maniac> But it's compatible
[08:34:15] <darknite> ok this might be a stupid question but is the dac what provides pwm output or are they two separate things?
[08:35:09] <jadew> you expect to get a constant voltage from a dac
[08:35:16] <OndraVPS> yep
[08:35:20] <OndraVPS> they are two separate things
[08:35:42] <jadew> pwm is... pwm, you can filter it and get constant voltage from it as well tho, but it depends a lot on the frequency
[08:35:54] <jadew> at lower frequencies it becomes difficult to filter it
[08:35:57] <megal0maniac> pwm simulates DAC, but isn't always suitable and is technically easier to achieve
[08:36:28] <megal0maniac> I'm off. OndraVPS, I'll try write a sketch and stick it on the coco
[08:36:30] <megal0maniac> tonight
[08:37:20] <Malinuss> would sound using DAC instead of PWM, be of better quality?
[08:37:43] <Malinuss> or wouldn't it matter because 8-bit is the "bottleneck" anyway?
[08:38:38] <megal0maniac> DAC is standard for sound, esp higher quality audio. (i.e 24bit)
[08:38:45] <megal0maniac> But pwm can be used for simpler stuff
[08:39:38] <Malinuss> so when playing 8-bit it doesn't really matter?
[08:40:01] <Malinuss> Wish my chip had a DAC peripheral :(
[08:41:38] <jadew> it does matter, because it takes time for the filtered pwm output to settle at the new value
[08:42:17] <Malinuss> well I don't have a DAC periheral so it doesn't really matter. I'm already using a low-pass filter...
[09:30:11] <megal0maniac> Sorry for spam XD
[09:30:24] <OndraVPS> wasting my FUP!
[09:30:32] <megal0maniac> Is it just me, or are micro usb connectors very good at coming off PCBs?
[09:30:48] <OndraVPS> they are
[09:30:56] <OndraVPS> that is why I have switched to through hole soldered ones
[09:32:41] <rue_mohr> connectors should never be mounted by solder
[09:32:47] <rue_mohr> its done too often
[09:32:51] <megal0maniac> Agreed...
[09:33:31] <rue_mohr> I'v seen a usb-b connector with a screw tab on it
[09:33:57] <OndraVPS> the new USB connectors I switched to have got 5 SMD pins (regular) + two big pads on the bottom + four small pins that you solder through
[09:34:16] <OndraVPS> I like them much, much more :D
[09:36:42] <edmont> how do I know if my MCU supports uint64_t?
[09:40:06] <OndraVPS> it does
[09:40:17] <OndraVPS> your MCU supports 8bit stuff only
[09:40:20] <OndraVPS> well, partially 16bit
[09:40:26] <OndraVPS> all the 3264bit is done by GCC
[09:45:00] <edmont> OndraVPS: i'm having problems with that
[09:45:11] <edmont> uint32_t works fine
[09:45:35] <edmont> but the same operations for uint64_t doesn't
[09:45:49] <OndraVPS> huh
[09:47:17] <OndraVPS> no idea
[09:48:00] <edmont> OndraVPS: it's maybe a printf problem
[09:52:01] <Malinuss> okay I need some help with some simple 3rd grade math. if you are over 10, you should be abel to help me... So I project a point to 2d by doing x2d = xOffset + scale * x3d / ( z3d + distance ); and y2d = yOffset + scale * y3d / ( z3d + distance );.... Now, if I want something around the axsis (to make it easier to rotate), I need to give it negative values, that gives me error values..
[09:52:07] <Malinuss> and yes, this is avr related...
[09:55:32] <darknite> Malinuss: not sure i follow. normally the vertices are spread out with origo at the center of screen, and xOffset/yOffset is half width/half height to center them in teh screen buffert
[09:55:40] <darknite> but not sure i'm reading your question correctly
[09:59:30] <Malinuss> darknite, how to use negative z values so I can have a cube in the middle of the axsis..
[10:00:18] <darknite> hmm, which axis is your Z? depth?
[10:01:06] <Malinuss> no, up.. but the camera is looking up z axsis... haha so yeah depth ;)
[10:02:58] <Malinuss> darknite, the "distance" just needed to be negative
[10:10:36] <megal0maniac> OndraVPS: Downloading the 70mb at 8kb/s :(
[10:16:37] <Kre10s_> anyone using/has used the usbprog 3.3 from embedded projects?
[10:37:28] <Vutral> mhm
[10:37:30] <Vutral> this is strange
[10:37:35] <Vutral> when i turn on the atmega328p
[10:37:38] <Vutral> it sends stuff on the psi
[10:37:39] <Vutral> spi
[10:37:43] <Vutral> even thought i didnt write the buffer
[10:37:55] <OndraVPS> o'rly?
[10:38:02] <OndraVPS> isn't it just because the lines are floating?
[10:38:16] <Vutral> how should the lines be floating ?
[10:38:19] <Vutral> ^^
[10:38:30] <OndraVPS> because the mega upon launch is in input state?
[10:38:32] <Vutral> there is a oscilloscope connected and the other spi device
[10:38:57] <Vutral> mhm
[10:39:06] <Vutral> the DOUT of the other chip looks really fucked
[10:39:15] <Vutral> like it was burned ^^
[10:39:19] <Vutral> very cool at 20 dollar per piece
[10:40:31] * megal0maniac is getting tired of China
[10:44:28] <Steffanx> ok
[10:45:35] <OndraVPS> china...
[11:00:57] <megal0maniac> OndraVPS: (or any other Windows user) You might be interested in LoadScout. If you have a direct link to a zip or video file, it will fetch the file header and let you download only specific parts of the file. That's how I got that arduino sketch without waiting 2 hours for the zip file to download
[11:01:25] <OndraVPS> :)
[11:01:27] <OndraVPS> thanks
[11:01:29] <OndraVPS> for the tip
[11:01:37] <OndraVPS> remind it to me pls once I will be on regular interwebz
[11:01:52] <megal0maniac> It's damn useful at times. Especially for those with limited internet ;)
[11:02:17] <megal0maniac> Also just to take a peek at what's inside without downloading anything, or to check the quality of a video
[11:04:01] <Vutral> nope
[11:04:03] <Vutral> it outputs shit
[11:04:12] <Vutral> also strange is that sclock is active even htought the buffer should be empty
[11:30:36] <megal0maniac> OndraVPS: I'm trying to figure out what this is a rip-off of, because it is a rip off...
[11:34:16] <RikusW> what ripoff ?
[11:39:00] <megal0maniac> RikusW: Found another xmega based arduino board, complete with modified version of Arduino.
[11:39:10] <megal0maniac> Seems to have come from akafuino
[11:39:33] <RikusW> price ?
[11:39:41] <megal0maniac> zlog
[11:40:44] * RikusW goes reading the log
[11:45:30] <RikusW> megal0maniac: which microusb connector did you break ? tell me its not the coco ? !|
[11:46:15] <RikusW> OndraVPS: Just wondering why didn't you put a USB B connector on the coco ?
[11:47:44] <megal0maniac> RikusW: Sorry, zlog was for me. I can't find the link :)
[11:48:27] <megal0maniac> No, it was a student's external hdd case. Successfully put it back on. Was a USB3 connector, so lots of pins
[11:48:30] <RikusW> http://www.obdiiworld.com/download.htm this one ?
[11:48:43] <megal0maniac> Yeah, but I can't find the ebay link
[11:48:46] <RikusW> pitch ? 0.5mm ?
[11:49:15] <RikusW> so it probably pulled off the tracks ?...
[11:49:33] <megal0maniac> Luckily not
[11:49:43] <RikusW> lucky for you :)
[11:49:49] <RikusW> 50 mil instead ?
[11:49:59] <RikusW> (1.25mm)
[11:50:00] <megal0maniac> Re-tinned the tracks and just pushed down on the tabs with the tip of the iron
[11:50:05] <megal0maniac> I have no idea
[11:50:13] <megal0maniac> 0.5mm I think
[11:50:19] <megal0maniac> Same as TQFP
[11:50:41] <RikusW> which tqfp ? U2S ?
[11:50:45] <RikusW> U2S is 0.8mm
[11:50:57] * megal0maniac shrugs
[11:51:25] <RikusW> afaik there is 0.8 0.6.. and 0.5 pitch
[11:51:39] <RikusW> SOIC usually is 1.25mm
[11:52:38] <megal0maniac> 0.40 says the datasheet
[11:54:42] <megal0maniac> I can believe that
[11:55:46] <RikusW> thats _tiny_
[11:56:03] <RikusW> 0.4 pin pitch or spacing between pins ?
[11:56:16] <RikusW> *open space between pins
[11:56:49] <megal0maniac> http://za.mouser.com/catalog/specsheets/ZX360D-B-10P_drawing_EDC3-127028-00.pdf
[11:57:00] <megal0maniac> This makes more sense. 0.65
[11:57:14] <RikusW> still tiny
[11:57:21] <megal0maniac> Yes :)
[11:57:43] <megal0maniac> Used EW304 tip
[11:58:09] <RikusW> ah
[11:58:17] <RikusW> you have a weller or magnum ?
[11:58:36] <megal0maniac> Magnum 2002 station with 1002 50w iron
[11:58:40] <RikusW> did you add some flux too ?
[11:58:49] <megal0maniac> Nope
[11:58:51] <RikusW> hey, thats the same as I have here
[11:59:00] <megal0maniac> Just Mantech non-rohs solder :P
[11:59:21] <RikusW> I got mine from Mantech..
[12:00:19] <megal0maniac> Me too
[12:00:29] <megal0maniac> This is the work one, though, and I've resigned...
[12:00:35] <megal0maniac> At home I've got an Antex
[12:01:50] <megal0maniac> I might upgrade next year some time though. But for now the Antex is good. Maybe I'll get new tips and better solder, should keep me going for a while
[12:05:16] <RikusW> I'll get the digital Magnum station if I ever buy another one
[12:05:29] <megal0maniac> Thought you were going to make your own?
[12:05:30] <RikusW> its about the same price as the 2004
[12:05:39] <RikusW> maybe
[12:05:50] * RikusW forgot about that :-P
[12:06:06] <RikusW> it seems the 2004 station is a bit better than the 2002 ?
[12:06:13] <RikusW> I got variable temperature
[12:06:54] <RikusW> I solder throughhole pinheaders at 350C and tqfp at 260C
[12:08:15] <OndraVPS> RikusW: because people told me "USB B? fuck you, that is one huge ass connector!
[12:08:24] <OndraVPS> plus everybody now has got microUSB from their phones
[12:08:32] <OndraVPS> and printers on wifi/eth
[12:08:57] <RikusW> ugh
[12:09:09] <RikusW> I used it because its sturdy :)
[12:09:21] <RikusW> although the dragon got a smd version...
[12:09:25] <OndraVPS> yeah that is why I switched to the through hole one too
[12:09:32] <OndraVPS> of microUSB
[12:09:35] <OndraVPS> I am sure you saw some photos
[12:09:48] <OndraVPS> 5 pins, two SMD pads below the connector and four through hole pins that you solder
[12:09:52] <OndraVPS> much, much better
[12:10:00] <RikusW> whats wrong with mini usb ?
[12:10:08] <OndraVPS> nobody has miniUSB nowadays
[12:10:25] <RikusW> the 3a3 xplain use mini
[12:10:38] <OndraVPS> I haven't seen even single USB3 miniUSB - always only full USB or microUSB - not sure if there is usb3 mini at all
[12:10:46] <RikusW> fortunately I got a mini and micro usb phone cable...
[12:10:53] <OndraVPS> everything now has got micro
[12:10:55] <OndraVPS> except iPhone
[12:11:06] <megal0maniac> There isn't usb3 mini
[12:11:18] <RikusW> does iPhone use a custom connector ?
[12:11:25] <OndraVPS> iphone had that 30pin abomination
[12:11:28] <OndraVPS> now they have got their own
[12:11:29] <megal0maniac> LIGHTNING!
[12:11:31] <OndraVPS> WHICH CAN PLUG IN EITHER WAY!
[12:11:32] <OndraVPS> yep
[12:11:34] <megal0maniac> Or thunder
[12:11:36] <megal0maniac> or cloud
[12:11:39] <OndraVPS> lightning
[12:11:41] <megal0maniac> or something like that
[12:12:38] * OndraVPS still hasn't got working internet
[12:12:58] <OndraVPS> oh well at least I will etch the PCBs for the oven
[12:13:06] <OndraVPS> PCBs = microcontroller board + front buttons
[12:13:18] <megal0maniac> I'm waiting for my xboard :P
[12:13:21] <OndraVPS> :D
[12:13:46] <RikusW> Malinuss: if(x & 0x10) y |= 0x08; else y &= 0xF7; // bit from one var to another
[12:14:09] <RikusW> megal0maniac: you got another ?
[12:14:15] <RikusW> the ethernet one ?
[12:14:15] <OndraVPS> he wants Mini-Duino :D
[12:14:21] <megal0maniac> Nope. Just nagging :)
[12:14:26] <RikusW> 32a4u ?
[12:14:26] <OndraVPS> ethernet shield won't be this year though
[12:14:32] <OndraVPS> they are remaking my boards for eth
[12:14:36] <OndraVPS> 128a4u even
[12:14:48] <OndraVPS> the price tag was not that far from the 32kB version
[12:14:49] <RikusW> nice, whats the price ?
[12:14:53] <OndraVPS> and damnit we are in the 2012 already
[12:14:57] <OndraVPS> 19 eur + shipping
[12:15:02] <OndraVPS> most likely
[12:15:15] <OndraVPS> will have to count in all the fees I had to pay at imports etc
[12:15:18] <RikusW> almost the same as coco ?..
[12:15:26] <OndraVPS> except arduino form
[12:15:26] <OndraVPS> SMPS
[12:15:28] <OndraVPS> microSD connector
[12:15:33] <RikusW> ah
[12:15:49] <OndraVPS> the SMPS itself is like 1.5 eur, microSD connector 1 eur, board size is 1 eur more or thereabouts
[12:15:53] <megal0maniac> OndraVPS: Dammit. Want to test blinky, but PORTR isn't mapped
[12:15:56] <OndraVPS> more connectors
[12:16:01] <OndraVPS> megal0maniac: lol
[12:16:31] <OndraVPS> the chip is not that much cheaper really :D
[12:16:33] <Malinuss> RikusW, I'm afraid you are 5-6 hours late ;P. jadew helped me out already, hehe
[12:16:38] <Malinuss> thanks though
[12:17:07] <RikusW> yeah, saw it it the logs, haven't read the reply yet...
[12:17:51] <OndraVPS> afk
[12:23:11] <RikusW> Malinuss: another useful avr asm instruction -> sbrs/sbrc
[12:24:05] <Malinuss> RikusW, I think I use that to wait for SPI to finish sending
[12:24:35] <Malinuss> RikusW, but yeah, it's pretty useful
[12:27:59] <RikusW> and sbis/sbic
[12:29:36] * megal0maniac is looking at avr-asm again
[12:30:42] <megal0maniac> I'm having my usual "Time to Learn", "NOTHING MAKES SENSE!", close book scenario
[12:30:57] <RikusW> heh
[12:31:09] <megal0maniac> I'm eager to learn, but not patient enough for it to start making sense :)
[12:31:27] <RikusW> learn to be patient first :-P
[12:31:40] <megal0maniac> Oh yes! RikusW, LoadScout is for you
[12:31:45] <RikusW> yep
[12:32:22] <RikusW> megal0maniac: maybe you should create a brain bootloader :-P :-D
[12:32:38] <RikusW> super fast learing ;)
[12:32:41] <RikusW> +n
[12:32:49] <megal0maniac> I'm quite content with the contents, thank you very much :|
[12:33:26] <RikusW> heh, I didn't say put an erase function on there too :!
[12:33:46] <RikusW> just append
[12:34:29] <OndraVPS> avr asm is dead simple :D
[12:34:56] <RikusW> its is
[12:35:02] <OndraVPS> NO
[12:35:03] <OndraVPS> WAY
[12:35:07] <OndraSter> yes way bitch
[12:35:12] <OndraVPS> OndraSter: :*
[12:35:24] <RikusW> I actually wrote a avr assembler :)
[12:35:39] <OndraSter> SO IT WAS YOU!
[12:35:39] <OndraSter> lol
[12:35:41] <OndraSter> jk
[12:35:41] <RikusW> but symbolic support is still lacking
[12:36:04] <RikusW> but any instruction can be assembled/disassembled
[12:36:16] <megal0maniac> OndraSter: Doesn't compile for xmega256a3u :(
[12:37:13] <OndraSter> megal0maniac, eh?
[12:37:19] <OndraSter> define does not compile
[12:37:26] <OndraSter> didn't the board have x128a3u?
[12:37:53] <Tom_itx> it sure wasn't ME
[12:38:09] <megal0maniac> wiring_digital.c:79: undefined reference to 'timer_to_tc2_PGM'
[12:38:23] <OndraSter> duh
[12:38:28] <OndraSter> does it work with the stock stuff?
[12:39:25] <megal0maniac> Although the boards.txt said atxmega128a3, no u
[12:40:54] <megal0maniac> Yeah, works
[12:41:58] <megal0maniac> And atxmega256a3 works
[12:42:14] <megal0maniac> Which is fine, because it's using ftdi anyway
[12:43:32] <megal0maniac> Blink sketch is 3kb compiled :P
[12:48:49] <megal0maniac> OndraSter: http://atinyhedgehog.za.net/xmDAC.zip
[12:49:11] <megal0maniac> The rest is "borrowed" from xmegaduino
[12:50:11] <megal0maniac> Well OndraVPS then :P
[12:56:21] <RikusW> Malinuss: register names are fairly consistent
[12:57:09] <RikusW> Malinuss: do you use Linux ?
[12:57:13] <Malinuss> RikusW, I assume you are responding to something me and darknite were discussing a couple of hours ago? Between different avr, chips, right?
[12:57:19] <Malinuss> RikusW, no
[12:57:24] <Malinuss> why?
[12:58:04] <RikusW> I have some part description files that can easily be grepped
[12:58:15] <RikusW> (grep = find in files...)
[12:58:31] <RikusW> and AS got those files to, in XML
[12:58:47] <Vutral> cen
[12:58:48] <Vutral> gna
[12:58:51] <darknite> RikusW: in xml? really? i'd love to have both, where can i find them?
[12:58:52] <Vutral> §"$§"%§"
[12:59:05] <RikusW> darknite: do you have AS installed ?
[12:59:13] <RikusW> (AVRstudio)
[12:59:20] <RikusW> its in the program files dir
[12:59:28] <megal0maniac> Who here is from Romania and runs Firefox on 64bit Windows and clicks on random links? :P
[13:00:26] <RikusW> darknite: my xslt extracted files -> http://sites.google.com/site/megau2s/home -> software -> RavrProg (avrdude replacement)
[13:00:33] <jadew> megal0maniac, me
[13:00:41] <jadew> why?
[13:00:44] <jadew> :D
[13:00:56] <megal0maniac> Browsing access logs :)
[13:01:01] <jadew> heh
[13:01:08] <megal0maniac> Too lazy to whois EVERYONE
[13:01:17] <darknite> RikusW: thank you!
[13:01:34] <darknite> RikusW: i was thinking of checking out the icdb repo to see if they hade any easily processed data included
[13:01:47] <darknite> https://github.com/WallaceIT/ICDBNavigator
[13:02:45] <RikusW> darknite: AS4 -> /mnt/xp/Program Files/Atmel/AVR Tools/Partdescriptionfiles
[13:02:51] <Malinuss> RikusW, I have AS installed to, what is it?
[13:02:56] <Malinuss> *too
[13:03:11] <RikusW> /mnt/xp/Program Files/Atmel/AVR Studio 5.0/devices
[13:03:24] <RikusW> s/mnt\/xp\//C:\/
[13:03:35] <Malinuss> what is it?
[13:03:39] <darknite> RikusW: oh, nice. that's awesome. thanks
[13:04:14] <RikusW> darknite: RavrProg supports most Atmel programmers and my STK500 / JtagICE mki clone
[13:04:26] <RikusW> though my mki supports newer avrs too
[13:04:50] <RikusW> I updated the flash writing algorithm a bit
[13:05:16] <RikusW> and there is a nice fusecalc
[13:05:22] <RikusW> its Qt4
[13:05:43] <RikusW> but its a pain to compile on windows, and the Qt SDK is a few GB
[13:06:34] * RikusW got /mnt/xp/Program Files/Atmel/AT89LP Developer Studio too, its for 8051, unused so far...
[13:07:19] <OndraSter> heh
[13:07:37] <RikusW> its looks old, almost like VS97
[13:08:05] <RikusW> I do have 2 89S51's here
[13:08:20] <RikusW> now to find the time to mess around with it
[13:08:37] <OndraSter> http://elektrika.cz/obrazek/poj.jpg
[13:08:39] <OndraSter> for electricians
[13:08:41] <OndraSter> PROPER FUSES
[13:08:44] <OndraSter> no overcurrent will break them!
[13:09:05] <RikusW> just use wires :-P
[13:09:43] <RikusW> hmm wires might be too thin :-P
[13:17:58] <megal0maniac> Goodnight :)
[13:18:04] <RikusW> good night
[13:19:34] <darknite> RikusW: looks really cool, will try it out sometime soon with my mkII. i have chinese tinyisp but it seems a bit shaky quality-wise
[13:20:25] <darknite> avrdude managed to find it though, but i had to disconnect occassionally and reconnect it because of strange errors when uploading. sometimes it said upload was completed but nothing had been changed/uploaded to the mcu
[13:20:39] <darknite> but that's to be expected with those cheap chinese knockoffs i assume
[16:52:33] <OndraSter> Dear Brain
[16:52:34] <OndraSter> FUCK YOU
[16:52:44] <OndraSter> you forgot to tell me that I PUT 3 HOURS AGO TWO BOARDS INTO FECL3
[16:53:58] <timemage> OndraSter, now you have some unclad stock.
[16:54:05] <OndraSter> ;)
[16:54:11] <OndraSter> well half of the paths is gone
[16:55:51] <OndraSter> it was cheap FR2 luckily
[16:56:16] <OndraSter> I bought big FR2, smaller FR4 and even smaller double sided FR4
[16:56:34] <Malinuss> darknite, hehe I can draw simple 3D objects on the display now, rotate them too ;P
[17:07:17] <darknite> Malinuss: nice!
[19:14:26] <Malinuss> sure it's quiet in here
[19:22:13] <jadew> what does this sounds like: The Start bit is detected by the device if CS and DI are
[19:22:13] <jadew> both high with respect to the positive edge of CLK for
[19:22:13] <jadew> the first time.
[19:22:19] <jadew> that all 3 have to be high
[19:22:21] <jadew> or what?
[19:22:35] <jadew> wtf does that mean "with respect to the positive edge of CLK"?
[19:23:06] <jadew> what's the positive edge if the other ones are refered to as HIGH and LOW? with what kind of respect?
[19:24:48] <chupas> are there any 5v megas specd over 20mhz?
[19:25:24] <Horologium> chupas, I don't think so.
[19:25:36] <Horologium> only xmegas
[19:25:40] <Horologium> and those aren't 5V
[19:26:26] <Tom_itx> jadew, sounds like CS and DI need to be high on the rising edge of the clock
[19:26:32] <Tom_itx> ie before
[19:27:04] <jadew> hmm
[19:27:16] <chupas> gerrr!
[19:27:25] <jadew> I guess that would make sense
[19:27:54] <jadew> the diagrams for this protocol are missing the point
[19:28:05] <jadew> like they're talking about this start condition, but it's not exemplified anywhere
[19:28:26] <jadew> not to mention that it's a stupid start condition, why would you need DI high as well, if you're already using CS
[19:28:35] <nn7> Hello! I'm going nuts on some simple atmega644P code. The code is here: http://pastebin.com/3rTvUt3x
[19:28:44] <Malinuss> Hey maybe you guys have an idea about this:
[19:28:59] <nn7> I get 1 output pulse on PB0, unless I take out line 22, then I get a running clock.
[19:29:15] <nn7> There is *no* activity on the MOSI or SCK lines, my SPI never runs for some reason
[19:30:09] <Tom_itx> is spi enabled via the fuse bits?
[19:30:18] <Tom_itx> SPIEN
[19:30:38] <nn7> Tom_itx, yes
[19:30:46] <nn7> I also program it via an SPI programmer
[19:30:50] <Malinuss> nn7, why would you turn portb on and off? I think that confuses the SPI ;P?
[19:31:04] <Malinuss> *on and off = change direction
[19:31:10] <Tom_itx> nn7 spi programmer has nothing to do with spi working
[19:31:29] <nn7> Tom_itx, OH, ok. Yes, SPIEN is set
[19:32:12] <nn7> Malinuss, I'm just toggling an unused pin so I can see progress of the code
[19:33:23] <Malinuss> nn7, I think PB0 is the SS pin, and there is something about the connection between that pin and the hardware SPI... maybe only if you make it input, I can't remember, but you could check..
[19:34:14] <nn7> PB4 is the SS pin I set PB4 to an output. If SS is an output and the AVR is a master, its state is ignored.
[19:35:57] <Malinuss> So I've made this simple 3d renderer. Any ideas for what 3d editor to use if I want to make wireframe models, AND get a simple list of vertices, and line connections that I could use to render...? heh
[19:36:22] <Malinuss> my mcu isn't very happy about all that float math though, haha
[19:36:39] <Malinuss> I've made some very simple models "by hand" but would be cool to show something more complex
[19:37:34] <nn7> I have poked at this thing for 2 hours, I'm really lost here
[19:38:25] <Malinuss> nn7, hmm... what is the SPI connected to?
[19:38:44] <nn7> An RFM12B transceiver module
[19:39:03] <nn7> I had it working with some code I downloaded, but now I'm trying to write my own.
[19:39:15] <rue_mohr> Tom_itx, so how much for a t10 kit?
[19:39:25] <rue_mohr> controller, carrier, and programmer
[19:41:46] <Tom_itx> u can make a programmer from your board
[19:41:53] <Tom_itx> wanna do that?
[19:42:43] <Tom_itx> all i have is this: http://tom-itx.dyndns.org:81/~webpage/temp/tiny/tinyTPI1.jpg
[19:42:47] <Tom_itx> and you can make one of those
[19:42:54] <nn7> UG! The problem was that I used || instead of | when setting SPCR. Anyone here willing to school me on what the difference is?
[19:43:11] <Tom_itx> | is or
[19:43:19] <Tom_itx> || is a RR crossing
[19:43:52] <Malinuss> oh shit sorry nn7 I looked in your code but didn't even see that, lol
[19:44:19] <nn7> previously i had the problem where I used & instead of &&
[19:44:40] <nn7> the AVR datasheet says to do while(!(SPSR & (1<<SPIF)));
[19:44:52] <Tom_itx> nn7, read: http://tom-itx.dyndns.org:81/~webpage/avr/c_bits/bits_index.php
[19:46:02] <Tom_itx> nn7, don't get stuck with the SPI flag never getting set
[19:46:13] <Tom_itx> not all slaves reply the same
[19:46:52] <rue_mohr> tom, do you have something that breaks out all the pins? :)
[19:46:56] <Malinuss> ^nn7, that's just waiting for the SPSR's bit SPIF, to become 1...
[19:47:09] <rue_mohr> damn 6 pin programming headers
[19:47:18] <nn7> Malinuss, hmm... someone in #electronics told me that wouldn't work because it's a pointer
[19:47:18] <Tom_itx> rue_mohr i just pointed you to it
[19:47:56] <Malinuss> nn7, wut? a pointer?
[19:49:26] <nn7> yeah, while(!(SPSR & (1<<SPIF))); wouldn't work because & is a pointer, I should use &&
[19:49:41] <Malinuss> crazy talk
[19:49:42] <Malinuss> hahaha
[19:49:58] <Malinuss> nn7, well me and the SPI peripheral are very good friends, and I only do while(!(SPSR & (1<<SPIF))); , before I set the spi data register data to send new data (to make sure it's cleared)
[19:50:41] <Malinuss> so all while(!(SPSR & (1<<SPIF))); does, is to check whatever SPIF, in SPSR is 1, which means, it's "not bussy"
[19:50:42] <nn7> alrighty. Well, I have it all figured out now. Thanks everyone for your help!
[19:50:53] <Horologium> nn7, one is logical OR, the other is bitwise OR..
[19:51:02] <nn7> ahh...
[19:51:12] <nn7> there we go
[19:51:15] <nn7> thank you very much
[19:51:20] <Horologium> welcome...
[19:51:34] <Horologium> chaos, death, destruction...my job here is done..nighters all.
[20:19:51] <nn7> ug, this just isn't my night
[20:20:01] <nn7> "'SPIF' undeclared"
[20:20:07] <nn7> SPIF, SPR0, MSTR, SPE
[20:20:20] <nn7> but it understands PORTB
[20:20:40] <nn7> I've included <avr/io.h>
[20:23:49] <nn7> if I compile against the atmega 644p instead of the 324p (which are pin equiv) the compiling works fine!
[20:30:56] <nn7> ug, winavr is buggy
[22:06:53] <rue_mohr> !seen irseeyou
[22:06:53] <tobbor> irseeyou was last seen in #avr on Dec 03 22:55 2012
[22:50:02] <jadew> w|zzy, just updated the OLSFront, it can import files from the java client and it has a new protocol decoder, for microwire
[23:32:14] <w|zzy> nice work jadew
[23:32:27] <w|zzy> that might encourage some.
[23:33:22] <jadew> some dude was crying for a few months on the forum that he wants to decode microwire and then he asked me yesterday if the project is still alive, so I added support for that as well
[23:33:42] <jadew> not sure how good it is tho, because the protocol is not very well described, but I think I got it right
[23:39:31] <jadew> I guess now that I can import ols files I can find more samples and implement other protocols as well
[23:39:36] <jadew> at least to have them there