#avr | Logs for 2015-03-06

Back
[00:00:45] <mark4> 32u4 has usb
[00:01:17] <mark4> xch is still stupid, a much saner opcode with far more end use would be a register to register exchange
[00:01:45] <mark4> and they are opcodes not commands :)
[00:03:13] <Jartza> well yeah, I'm not really woken up yet :)
[00:03:18] <mark4> heh
[00:03:29] <mark4> i forget where your located, im in "texas" now
[00:03:43] <Jartza> finland
[00:03:46] <Jartza> it's 7:42am
[00:03:46] <mark4> aha
[00:03:46] <Jartza> :)
[00:03:54] <mark4> its 11:42pm here
[00:04:20] <mark4> even tho i hated do that xbee mesh network code for arduino in c, it took 3 days to write and it worked first freeking time
[00:04:36] <mark4> no bs. 600 lines of c code and it "WORKED" (tm)
[00:04:42] <mark4> every part of it worked first time
[00:05:08] <mark4> ive been doing low level embedded for close to 30 years and i have NEVER had that much code just work
[00:05:18] <Jartza> heh
[00:05:42] <mark4> i didnt copy anyone elses code either, for example the xbee library for arduino
[00:05:47] <mark4> thats in object obfuscated c++
[00:08:39] <Jartza> my first avr-assembler I ever did also worked
[00:08:49] <Jartza> I guess I was lucky
[00:09:03] <Jartza> I implemented interrupt-driven uart for attiny84, which lacks onw
[00:09:05] <Jartza> one
[00:09:48] <Jartza> though it was really helpful that I've written 6502 assembler way back then
[00:09:56] <Jartza> avr asm sort of reminds me of 6502 times
[00:10:11] <mark4> 6502 was my first ever asm :)
[00:10:17] <mark4> you an old c64 guy?
[00:10:48] <mark4> a9 01 82 02 c5 03 20 c0 00
[00:11:08] <mark4> i THINk c5 is a zero page compare, i might not be remembering that right
[00:11:13] <mark4> c9 is immediate compare
[00:11:41] <mark4> a9 01 85 02 c5 03 20 c0 00 <--- misstyped the 85 also lol
[00:11:49] <mark4> lda #$01
[00:11:53] <mark4> sta $02
[00:11:58] <mark4> cmp $03
[00:12:03] <mark4> jsr $c000
[00:12:26] <mark4> the 82 would be a VERY bad opcode to execute lol
[00:12:58] <mark4> the only valiad X2 opcode is A2 tax or is it txa i ferget
[00:13:06] <mark4> every other X2 opcode causes the famous X2 crash
[00:13:39] <mark4> btw i have not even looked at 6502 in almost that entire 30 year time lol
[00:14:02] <mark4> but i used to know pretty much every single 6502 opcode by heart, i could literally read object dumps :P
[00:49:07] <aandrew> 6510 asm here
[01:26:38] <mark4> 6510's were cur from the original 6502 masks which is why they still have the x2 crash and indirect jmp bug
[01:26:53] <mark4> cut
[01:27:34] <Xark> 6502 + IO port (which you kind of need on chip when you have 64K of RAM mapped). :)
[01:52:02] <mark4> c64 shadowed part of its ram with the basic rom. you had to page out basic to use it
[01:52:18] <mark4> i dont remember if there was ram under the kernel too
[01:52:27] <Thrashbarg> there was RAM under everything
[01:52:38] <Thrashbarg> I/O, Kernal, BASIC
[01:52:42] <mark4> aha
[01:52:47] <mark4> been a long time lol
[01:52:54] <Thrashbarg> 6502 can address 64k and there was 64k total RAM so :P
[01:53:22] <mark4> there was 64k total memory, didnt remember there was 64k of ram tho
[01:53:48] <mark4> but its time to zzzz
[01:53:51] <Thrashbarg> kl
[01:53:54] <Thrashbarg> er k
[01:54:02] <mark4> hhe u type as bad as me :P
[01:54:11] <Thrashbarg> ...yes
[01:54:14] <Xark> Thrashbarg: Yes, but my point was the 6510 had an IO register hardcoded inside the chip at address 0/1. This controlled the memory banking (among other things). Once you banked out the I/O bank you would have 64K of total memory (so good thing the IO port to bank it out was inside the chip).
[01:54:28] <Thrashbarg> yup I know hehe
[01:55:54] <Xark> 64KB RAM + 20KB ROM (plus 4K I/O region and 1/2K of color RAM).
[01:56:27] <Thrashbarg> yup
[05:17:48] <LeoNerd> What possibilities do I have for an RNG suitable for crypto use to sign small radio packets..? All I have is a tiny841, an nrf24L01+, and that's basically it
[05:18:01] <LeoNerd> A few sensors or buttons or whatnot, but nothing else very large
[05:18:35] <LeoNerd> I thought I'd try using the LSB of ADC conversions on, say, Vref against Vcc, or the onchip thermometer.. but they're just too good - there's basically no noise there
[06:21:51] <Lambda_Aurigae> LeoNerd, make a little antenna setup to feed an ADC input.
[06:22:48] <LeoNerd> Hrmmmm
[06:23:12] <Lambda_Aurigae> RF static is always good for random numbers.
[06:23:50] <LeoNerd> I could give it a go
[06:25:10] <vsync_> have any of you ever watched videos of this john hutchinson -guy
[06:25:18] <Lambda_Aurigae> never heard of him.
[06:25:21] <vsync_> he's amazing
[06:25:29] <Lambda_Aurigae> if it isn't scifi or fantasy or some good comedy I won't watch it.
[06:25:37] <vsync_> i wholeheartedly suggest watching his videos. It is thorough comedy
[06:26:06] <Lambda_Aurigae> and I absolutely abhor instructional videos.
[06:26:23] <vsync_> he's a self-proclaimed scientist who claims to have found the "hutchinson effect"
[06:26:29] <vsync_> iirc.
[06:26:37] <aczid> vsync_: yeah it's a hoax though :S
[06:26:41] <Lambda_Aurigae> no clue what that is either.
[06:26:43] <vsync_> aczid: no shit? =D
[06:26:52] <aczid> dreams crushed ;)
[06:26:56] <aczid> just saying
[06:26:59] <vsync_> basically it's levitating objects with certain rf-frequencies, apparently =D
[06:27:13] <vsync_> BUT, there's a catch!
[06:27:25] <vsync_> he can't reliably reproduce this, of course.
[06:27:43] <aczid> first time I heard of this it wasn't as thoroughly debunked
[06:27:44] <vsync_> and he claims to have harnessed the ultimate powers of frrreeeee ennneeerrrrrgggyyyyy
[06:27:52] <vsync_> aczid: come on...
[06:27:55] <Lambda_Aurigae> so, it's badly written scifi.
[06:28:19] <vsync_> well. my point being is, that this guy is either a REALLY blatant troll
[06:28:26] <vsync_> (a very entertaining one)
[06:28:38] <vsync_> because some idiots do believe in him, hahahah
[06:28:49] <vsync_> or then he is really really really mentally ill
[06:28:52] <aczid> he seems so sincere though
[06:28:53] <Lambda_Aurigae> people will believe in anything.
[06:29:02] <Lambda_Aurigae> heck, look at all the religions around the world.
[06:29:06] <vsync_> aczid: hahahaha
[06:29:23] <aczid> he's endearing
[06:29:31] <Thrashbarg> Lambda_Aurigae: not only that, they continue to believe in it after it has been revealed to them it's a hoax for example
[06:29:36] <aczid> a kook, but an endearing one
[06:29:45] <Lambda_Aurigae> Thrashbarg, my point exactly.
[06:30:23] <aczid> you know who else I love? that TempleOS guy
[06:30:34] <Thrashbarg> heh
[06:30:50] <vsync_> i've been watching him just for the shits and giggles. This one bit he claims how the japanese invested shit ton of money in his "energy cell research", which is basically going to the beach, picking up a few rocks, threw them in a metal bowl and hook up electrodes to it. He drives a dc-motor with this, and later on in the video when he empties the bowl to the table to show there are no "hidden batteries", the viewer also learns that he's
[06:30:59] <vsync_> Hutchinson I mean
[06:31:11] <vsync_> and people STILL believe him
[06:31:14] <vsync_> What the actual fuck?
[06:31:38] <vsync_> https://www.youtube.com/watch?v=3xf_JBnDOBw And this one, for example. Seriously, he is amazing. Hahaha 10/10.
[06:33:14] <vsync_> 7:15 - priceless.
[06:33:53] <vsync_> They must've gone through some serious amounts of acid for this one
[06:33:54] <Lambda_Aurigae> http://imgur.com/gallery/bmClL there ya go Thrashbarg
[06:34:32] <Thrashbarg> heh
[06:35:30] <Thrashbarg> Lambda_Aurigae: http://en.wikipedia.org/wiki/Cognitive_dissonance and http://en.wikipedia.org/wiki/True-believer_syndrome
[06:36:06] <vsync_> don't ruin my moment with that bullshit
[06:36:07] <Lambda_Aurigae> very familiar with them.
[06:36:20] <vsync_> let me have my crystal power cells. nancy is teaching me.
[06:36:28] <Lambda_Aurigae> heck, people in this country still believe that voting makes a difference.
[06:37:01] <Lambda_Aurigae> http://i.imgur.com/c1VqugM.jpg new copier diagnostic method.
[06:37:11] <Lambda_Aurigae> problem is, their conclusion is wrong.
[06:37:32] <Lambda_Aurigae> it is likely bad developer, not a bad drum...and the image is overexposed...
[06:39:43] <vsync_> personally, i blame the users
[06:40:10] <vsync_> all of us, and we all deserve to be deleted
[06:40:15] <vsync_> in this figure of speech
[06:42:26] <Lambda_Aurigae> humans are an infestation on the planet and should be wiped out.
[06:45:16] <Thrashbarg> you first ;)
[06:46:21] <vsync_> Lambda_Aurigae
[06:46:25] <vsync_> He can be aggressive and confrontational, sometimes denouncing critics with profanity and call them "nigger."
[06:46:31] <vsync_> I love this TempleOS guy already.
[06:46:44] <vsync_> had never even heard of him. Haha, golden stuff.
[06:46:46] <Lambda_Aurigae> Thrashbarg, when I go I intend to take plenty with me!
[06:46:59] <vsync_> Lambda_Aurigae: hush, the feds --
[06:47:06] <Thrashbarg> uh.... yes
[06:48:12] <Lambda_Aurigae> vsync_, the feds have been watching me since I got out of the military in 1992.
[06:48:23] <vsync_> Unable to work, he collects Social Security disability and spends most of his time coding, web surfing, or using the output from the ​​National Institute of Standards and Technology randomness beacon to talk to God—he posts the results on his webpage as "Terry Davis’ Rants."
[06:48:34] <vsync_> what the actual fuck...
[06:48:35] <Lambda_Aurigae> they watch all of us who were once involved with nuclear weapons.
[06:48:55] <vsync_> I have to get templeos
[06:49:21] <LeoNerd> Unfortunately the ADC in ATMegas is too stable. Even the LSB doesn't change over many readings. skemman.is/stream/get/1946/10689/25845/1/ardrand.pdf "We explore various methods to extract true randomness from the micro-controller and conclude that it should not be used to produce randomness from its analog pins."
[06:49:26] <LeoNerd> Lambda_Aurigae: ^-- from http://stackoverflow.com/questions/1558321/how-do-i-generate-random-numbers-in-a-microcontroller-efficiently
[06:50:13] <Tom_itx> Lambda_Aurigae do you glow in the dark?
[06:50:26] <Lambda_Aurigae> only when near americium.
[06:52:16] * Thrashbarg creates a random number generator and attempts to perceive ordered messages in it
[06:52:43] <aczid> vsync_: yeah he's great huh :D he makes videos on youtube too! and posts to reddit (where he gets mocked)
[06:52:50] <vsync_> he has an own variant of c, apparently, called holyc
[06:53:36] <vsync_> i'm not even religious, and i have a firm dislike for so-called skeptics and atheists. But i think this guy is mockery in itself
[06:53:46] <vsync_> aczid: apparently he got banned from reddit
[06:53:52] <aczid> aww
[06:54:39] <vsync_> everything is presented in hex to the end user in this... templeos
[06:54:41] <vsync_> neat
[06:54:48] <aczid> respect to him :)
[06:55:06] <aczid> unlike hutchinson he built something that's actually real
[06:56:14] <vsync_> and is actually quite a feat
[06:58:41] <vsync_> clearly he's intelligent. but it's quite easy to jump on him for this silly ass shit
[07:00:21] <Lambda_Aurigae> intelligence does not necessarily imply sanity...in fact, it is often an indication of the opposite.
[07:00:32] <vsync_> i never said it did
[07:01:13] <vsync_> he's a retard, for sure though
[07:01:40] <vsync_> also Lambda_Aurigae i've always thought like so too, but i'm not sure of any basis for that
[07:03:53] <vsync_> when the time comes when we're wiped off, i hope this templeos guy is one of the last ones to go, just for shits n giggles. Also hutchinson. Amazing shit.
[07:04:52] <Lambda_Aurigae> I intend to go early.
[07:04:55] <Lambda_Aurigae> and loudly.
[07:05:23] <Lambda_Aurigae> specially if I'm ever diagnosed with something painfully terminal and can still get around.
[07:05:24] * Thrashbarg whispers into his sleeve
[07:05:39] <Lambda_Aurigae> will make myself a 55 gallon barrel of anfo and a deadman switch..
[07:05:52] <vsync_> isn't it "amfo"
[07:05:56] <Lambda_Aurigae> put it on top of a tall building and sit on top of barrel with switch in my teeth...and a high powered rifle.
[07:06:08] <Lambda_Aurigae> nope..
[07:06:12] <vsync_> Oh.
[07:06:14] <Lambda_Aurigae> Ammonium nitrate fuel oil
[07:06:15] <Lambda_Aurigae> anfo
[07:06:34] <Lambda_Aurigae> sit up there with the rifle and take out tires of people who don't come to a complete stop at stop signs.
[07:06:55] <Lambda_Aurigae> I figure the cops will take me out quick enough and a barrel of anfo under me will make one hell of a funeral pyre..
[07:07:00] <vsync_> But you see, it's not the tyre's fault when the car doesn't stop...
[07:07:23] <vsync_> Why shoot the tyre?
[07:07:23] <Lambda_Aurigae> yeah..I could take out the drivers I suppose..
[07:07:34] <Lambda_Aurigae> at that point it won't make a lot of difference to me.
[07:08:28] <vsync_> you ought to do it at night, for fireworks
[07:09:03] <vsync_> how about tracer rounds for some afghanistan-effect
[07:09:28] <Thrashbarg> Lambda_Aurigae: why not tie a piano wire around your neck and ankles, then a rope from your ankles to the top of a building. Glue your head to your hands and jump. When the rope ends your head will be cut off but your hands will still be holding it
[07:10:00] <Thrashbarg> that'd freak some people out
[07:10:05] <Lambda_Aurigae> because I wanna go out with a BANG!
[07:10:24] <Thrashbarg> yes
[07:10:33] <aczid> idk man, sounds kind of unsafe :P
[07:10:38] <LeoNerd> Lambda_Aurigae: I've just found what I'm not sure is a genius or a terrible idea: Rely on the timing drift between the main CPU clock and the WDT as a source of entropy
[07:10:38] <Thrashbarg> hehe
[07:11:01] <Lambda_Aurigae> LeoNerd, yeah...
[07:11:17] <LeoNerd> I'll have to play around with that
[07:11:21] <Lambda_Aurigae> you know the internal RC oscillator runs on an AVR even if you run from external clock or crystal.
[07:11:37] <Lambda_Aurigae> not sure how you would read it...
[07:11:46] <vsync_> Lambda_Aurigae: you know, on the subject of nukes. Why not go out with a bit of good ole plutonium?
[07:11:50] <Lambda_Aurigae> but it continues to run to drive something...I just read that recently.
[07:11:59] <Lambda_Aurigae> plutonium is too hard to get.
[07:12:07] <Lambda_Aurigae> anfo I can make from stuff in my garage.
[07:12:10] <vsync_> It's already there.
[07:12:16] <vsync_> You just need to get to it
[13:21:25] <rak[1]> anyone here used microscheme?
[14:25:49] <vsync_> Damn. Where's that pesky n1njaneer when you most need him
[14:26:20] <Thrashbarg> heh
[14:27:02] <Roklobsta> he's gone to the #arm and #cortext channels and ain't coming back.
[14:27:27] <vsync_> oh. maybe i should too, but the question is still atmel-related
[14:27:39] <Roklobsta> avr is dead
[14:28:22] <Jartza> it's not
[14:28:48] <vsync_> ...asf, sam stuff. clock management, trying to set a clock generator to use the internal 32khz, but i wonder do i need to fire it up first with some system clock management magic
[14:33:03] <Jartza> hmmh
[14:33:12] <Jartza> been quite a while since I touched any sams
[14:54:36] <megal0maniac> Can anyone tell me why there are 2 sets of UART registers on xmega per port? i.e USARTC0 and USARTC1
[15:04:15] <malinus> Roklobsta: no u
[15:04:42] <megal0maniac> Oh wow. Because there are 2 UARTs on port C
[15:05:38] <RikusW> megal0maniac: xmega got a lot of uarts and spi
[15:06:46] <RikusW> got yourself a xmega to toy with ?
[15:06:47] <megal0maniac> RikusW: I forgot just how many O.O
[15:06:56] <megal0maniac> RikusW: Na, just playing with the xboard again
[15:06:59] <RikusW> too many :-D
[15:07:10] <malinus> Roklobsta: I'm afraid stm is dying with avr http://www.google.com/trends/explore#q=stm%2C%20avr&cmpt=q&tz=
[15:07:24] <megal0maniac> Do you still have your xboard?
[15:07:29] <RikusW> yep
[15:07:54] <malinus> rip ST
[15:07:56] <RikusW> but I haven't done much electronics related stuff recently...
[15:08:21] <megal0maniac> Me neither. Just been working
[15:09:00] <RikusW> seems we can get mindbugs too ---> http://en.wikipedia.org/wiki/List_of_cognitive_biases
[15:09:26] <RikusW> with no easy way to fix it...