#avr | Logs for 2012-05-26

Back
[05:36:44] <upix> Can anyone help me with this problem: I am working on atmega16 controlled tranceiver module rfm22 (datasheet: http://www.hoperf.com/upload/rf/RFM22B_23B.pdf ). According to some rfm22 guides (and to my understanding in datasheet too) it works in SPI mode 0 (Clock polarity - rising edge, clock phase - leading edge). On atmega16 that is CPOL=0 CPHA=0, and that is how I configured it SPCR = (1<<SPE) | (1<<MSTR);
[05:37:00] <upix> The problem is when I try to read a register from rfm I miss the LSB eg I set the register on rfm22 0b00110010 and just after that read it and get 0b00011001
[05:58:04] <Kevin`> upix: http://kwzs.be/~kevin/usb-rfm.txt - project of mine - see eg rfm22b_read and compare
[06:07:38] <upix> Kevin`: looks the same for me
[06:08:03] <Kevin`> same for write too?
[06:08:38] <upix> a sec
[06:09:15] <upix> yes
[06:09:42] <upix> the code is split diffrently, but command sequence is the same
[06:12:03] <upix> I will try using your code and see if works, maybe something is different in not so obvious way
[06:47:47] <specing> Where is rikuuuuuuuuuuuuuuussssssssssss????///////slashslashslash
[07:02:08] <upix> Kevin`: nope it doesn't work
[07:02:18] <upix> code :http://pastebin.com/emvAtPhU
[07:02:26] <upix> output: http://pastebin.com/LW4XEva4
[07:02:53] <upix> maybe I am missing some stupid mistake
[07:03:22] <upix> but at least I cant find it
[07:09:08] <drgreenthumb> upix, is it correct if you run it slower? (disable `SPSR = (1<<SPI2X);` for a test)
[07:11:49] <drgreenthumb> brb breakfast.
[07:12:14] <upix> will check in a sec
[07:14:49] <upix> oh lol it does
[07:15:10] <upix> but rfm can go up to 10Mhz and I'm running 8
[07:23:30] <upix> drgreenthumb: any ideas why this isn't working at 80% of maximum frequency?
[07:31:26] <drgreenthumb> no sorry upix I don't know what's causing it. just sounded clock related.
[07:32:31] <theBear> paging dr greenthumb, paging dr green thumb
[07:32:39] <theBear> hehe, couldn't help myself
[07:33:04] <drgreenthumb> resistance in the connections could slow it. noisy lines might throw the clock off. fuse settings. there's probably more reasons :P
[07:33:15] <drgreenthumb> hey theBear
[07:33:55] <drgreenthumb> I look about as goofy as the guy in that video so it's pretty appropriate. and for some other reasons too ;p
[07:33:59] <theBear> hello :)
[07:34:03] <theBear> heh
[07:34:34] <theBear> speaking of goofy, big funny clock necklaces and all, i saw public enemy last week ! </boast>
[07:35:29] <drgreenthumb> nice!
[07:35:41] <drgreenthumb> okay heh it's getting light outside time for some sleep. night.
[07:35:47] <theBear> cya :)
[08:37:52] <jacekowski> what's the difference between stk500 and stk600?
[08:38:31] <theBear> i don't know !
[08:38:32] <OndraSter> 100 gamer points
[08:38:35] <OndraSter> :P
[08:38:37] <OndraSter> check atmel's website
[08:38:38] <theBear> but on that subject, what
[08:38:39] <OndraSter> stk600 is newer
[08:38:44] <theBear> 's the difference between stk200 and 300 ?
[09:01:15] <inflex> Over 9000
[09:02:12] <theBear> i dunno, i woulda believed over 99 :)
[09:08:53] <Tom_itx> specing he saw you coming
[09:09:52] <specing> I know...
[09:10:29] <specing> Maybe he is slaughtering another cow ...
[09:11:44] <theBear> what ? i don't slaughter them, i just talk to them and hangout
[09:11:48] <theBear> i got one across the road
[09:11:56] <theBear> well, there is one across the road
[09:12:57] <specing> I was cycling once uphill when a cow came from behind the corner, running straight at me
[09:13:12] <Tom_itx> theBear, you callin your women cows now?
[09:14:09] <Tom_itx> specing if it had horns and
[09:14:21] <Tom_itx> 'extra parts' maybe it wasn't a cow
[09:14:34] <theBear> dude ! it might be a name for some women, but not MY ones <grin> nah, country, hardly any women, and they're all married by 25 anyway :)
[09:14:57] <Tom_itx> and divorced by 30?
[09:15:23] <theBear> heh nah, that'd be a buyers market for me <grin>
[09:15:27] <Tom_itx> seems a growing trend
[09:16:24] <theBear> yeah, but this is country, it's like going back in time.. it's a SMALL town
[09:17:41] <Tom_itx> and after that the govt raises any offspring that may have come about
[09:18:09] <Tom_itx> and rewards the woman for being single
[09:22:15] <theBear> yeah, it's a sad state of affairs
[09:23:31] <theBear> shaun micallef has a new show, something like "i'm bloody angry" i saw the other night.... i like his approach to things, and he had a nice segment with a lady mentioning how much she had (fictional, but possible) made having this refugee living in her house, then did all the sums on a big blackboard.... ridiculous
[09:24:28] <Tom_itx> it's scary to think of the minds of our leaders if this is the best they can come up with
[10:25:28] <Steffanx> So abcminiuser_, you made a user of your framework mad? :P
[10:25:43] <abcminiuser_> Steffanx, I was completely floored
[10:26:15] <abcminiuser_> "I am using your latest trunk with some test code you specifically said was only just written and only partly tested, and it doesn't work WHAT IS WRONG WITH YOU THIS IS ALL CRAP..."
[10:26:25] <abcminiuser_> Funnily enough I looked into the issue and it was a three line fix
[10:26:44] * theBear smiles to hisself
[10:27:16] <Tom_itx> you must lead the masses. they will follow
[10:28:52] <Steffanx> At least LUFA is the most difficult to use project ever abcminiuser_ :)
[10:29:20] <abcminiuser_> Yeah, I gotta win something for that
[10:29:25] <OndraSter> guiness?
[10:29:43] <abcminiuser_> It's not super easy yet I know, but I didn't think I was a candiadate for "worst programmer ever" because of it
[10:30:10] <abcminiuser_> I mean, Linux kernel hacking isn't easy either, but difficult != bad
[10:30:11] <Tom_itx> just ask him to see his replacement for your code
[10:31:06] <theBear> i dunno, my hacked kernel driver isn't exactly pretty <grin>
[10:35:09] <abcminiuser_> Man I want to rant against his rant, but I don't think that would be productive
[10:35:42] <abcminiuser_> At the bottom here is my first response to one of his messages: https://groups.google.com/group/lufa-support/browse_thread/thread/b805062cfc84004b?hl=en#
[10:35:44] <Tom_itx> have the gf give him a piece of her mind
[10:36:54] <abcminiuser_> I'm just astonished there is someone in the world like that
[10:37:18] <abcminiuser_> That would try test code on an unfinished feature, then scream and yell when he has an issue
[10:37:34] <abcminiuser_> Man, he must have a coronary if he ever tried an Ubuntu beta...
[10:42:15] <Tom_itx> i like mcclelland's post
[10:42:35] <Tom_itx> basically: put up or shut up
[10:43:05] <Tom_itx> i would fail in customer service
[10:44:08] <Tom_itx> sir, it was working when it left the factory. take it back home and see wtf you did to it beyond it's intended use to break it
[10:44:26] <Tom_itx> next.....
[10:45:39] <Tom_itx> charlie failed to register his nick
[10:50:15] <abcminiuser_> Tom_itx, I DO fail in customer service :P
[10:53:51] <Tom_itx> just tell him to return it for a full refund
[10:54:12] <Tom_itx> excluding any depreciation for wear
[10:54:35] <Tom_itx> then mail him a penny
[10:55:58] <Tom_itx> the problem with ppl like that is you almost have to help them beyond the call of duty or they will complain about it every chance they get
[11:04:32] <DrLuke> does anybody know where I can get a nice and cheapish atmega32u2 board?
[11:04:40] <DrLuke> u4 works too
[11:05:31] <nofxxxx> DrLuke, bought one from here... http://www.mattairtech.com/index.php/development-boards/mt-db-u4.html
[11:06:02] <DrLuke> thanks
[11:09:43] <Tom_itx> DrLuke, i've got one
[11:11:32] <DrLuke> tom_itx: perfect, exactly what I was looking for, thanks!
[11:11:42] <Tom_itx> a u2 that is
[11:12:27] <DrLuke> what's the difference to a u4?
[11:12:44] <Tom_itx> more io and adc
[11:12:55] <Tom_itx> i have a u4 too but haven't produced any
[11:13:12] <Tom_itx> http://tom-itx.dyndns.org:81/~webpage/boards/atmega32u4/atmega32u4_1.jpg
[11:13:22] <abcminiuser> Tom_itx, for new programmers you might want to add a reset button to switch compatibility modes
[11:13:45] <nofxxxx> there's some cryptographic stuff too, one can't sell outside US w/o a license
[11:13:54] <nofxxxx> U4 iirc ...
[11:14:17] <Tom_itx> abcminiuser ?
[11:14:41] <DrLuke> When do you plan to start producing the u4 boards?
[11:15:41] <Tom_itx> i'm not sure i will
[11:16:07] <DrLuke> Oh :(
[11:16:35] <Tom_itx> there are quite a few out there already and not that much difference in them
[11:16:47] <Tom_itx> i'll keep these and use them myself
[11:17:05] <DrLuke> yours looks really tiny though
[11:17:23] <Tom_itx> it's qfn opposed to tqfp
[11:17:38] <Tom_itx> .6" pin spacing like a standard dip
[11:18:27] <Tom_itx> http://tom-itx.dyndns.org:81/~webpage/boards/USB_Breakout/USB_Breakout_index.php
[11:18:30] <Tom_itx> there's the u2
[11:18:38] <OndraSter> I tried doing even .7" for the xmega board - nope. Not possible
[11:19:00] <Tom_itx> OndraSter, that was why i used qfn
[11:19:04] <OndraSter> so did I
[11:19:10] <Tom_itx> but it's a bit harder to reflow in the oven
[11:19:19] <Tom_itx> at least with cheap stencils
[11:19:45] <OndraSter> TQFP versions costs like 30% more :o
[11:19:46] <Tom_itx> if i got a stainless stencil it may be fine
[11:20:04] <Tom_itx> but i'm not gonna spend the bucks for one
[11:21:09] <DrLuke> I really have to get into pcb manufacturing
[11:21:23] <DrLuke> I've tried layouting my own mega32u2 board, but I failed
[11:21:41] <DrLuke> But I'm currently waiting for my tesla coil signal generator board to arrive from china
[11:22:55] <Tom_itx> it wasn't so bad
[11:23:13] <DrLuke> well, I didn't tilt my ic
[11:23:17] <Tom_itx> DrLuke what was the issue with the flip driver on the programmer?
[11:23:35] <Tom_itx> how did you get that to work
[11:23:36] <DrLuke> I'm not certain
[11:23:44] <DrLuke> I just reinstalled the driver from the flip directory
[11:23:49] <DrLuke> and then it worked instantly
[11:23:51] <Tom_itx> ok
[11:24:11] <DrLuke> it detected the programmer as the ISP MKII in windows, which it never before did
[11:24:42] <Tom_itx> abcminiuser i'm not sure about that as it would make them inconsistent with previous hardware
[11:25:03] <abcminiuser> Tom_itx, You could use a switch instead
[11:25:10] <abcminiuser> Which selects the compatibility mode
[11:25:39] <Tom_itx> then have the code look for a set pin?
[11:25:46] <Tom_itx> or cleared
[11:25:50] <Tom_itx> as the case may be
[11:29:50] <Tom_itx> maybe a jumper
[11:30:20] <Tom_itx> but that would make it difficult for the blue one to function without a hassle
[11:30:39] <Tom_itx> i could edge mount it i suppose and bring it out one end
[11:31:06] <Tom_itx> it's not one you would be switching alot
[11:32:40] <Tom_itx> DrLuke, that was for studio 5 compatibility
[11:32:47] <Tom_itx> or maybe 5.1
[11:33:17] <DrLuke> ah
[11:34:05] <Tom_itx> they got more picky as to how they interrogate the programmer
[11:34:20] <Tom_itx> ask abcminiuser
[11:52:23] <jacekowski> something ain't right with my avr
[11:52:39] <OndraSter> did you let the smoke out?
[11:56:38] <jacekowski> http://pastebin.com/wAXXvgYt
[11:56:42] <jacekowski> it's a arduino board
[11:56:44] <jacekowski> arduino uno
[11:56:57] <jacekowski> and i'm probing it on pin 8
[11:57:06] <jacekowski> which is supposed to be connected to PB0
[11:57:24] <jacekowski> and there is nothing there
[11:57:43] <OndraSter> did you... upload the code there?
[11:58:18] <jacekowski> yes i did
[11:58:26] <jacekowski> unless stk is playing up
[11:58:45] <Tom_itx> #include <avr/io.h>
[11:58:45] <Tom_itx> int main()
[11:58:45] <Tom_itx> {
[11:58:45] <Tom_itx> DDRB=0xff;
[11:58:45] <Tom_itx> while (1);
[11:58:46] <Tom_itx> {
[11:58:46] <Tom_itx> PORTB++;
[11:58:46] <Tom_itx> }
[11:58:47] <Tom_itx> }
[11:58:50] <OndraSter> wait
[11:58:51] <OndraSter> while (1);
[11:58:53] <OndraSter> why is there
[11:58:53] <OndraSter> the
[11:58:54] <OndraSter> ;
[11:58:58] <OndraSter> .....
[11:59:08] <Tom_itx> woops
[11:59:54] <Tom_itx> OndraSter that's to avoid executing the code below it
[11:59:56] <Tom_itx> it's a test
[11:59:58] <OndraSter> :D
[12:00:30] <OndraSter> test of your eyesight?
[12:01:32] <mimcpher> Are there any cheaper things than the Atmel JTAGICE2?
[12:01:42] <OndraSter> yes
[12:01:43] <OndraSter> jtagice3
[12:01:49] <OndraSter> or Dragon
[12:01:56] <OndraSter> but Dragon hasn't got any output protection
[12:02:06] <jacekowski> it's working
[12:03:09] <mimcpher> ah, Dragon looks closer to the price range I was hoping for
[12:03:16] <Tom_itx> jacekowski what does that do just iterate thru the port pins?
[12:03:30] <Tom_itx> until it rolls over then starts again
[12:03:32] <jacekowski> yeah
[12:03:35] <jacekowski> just to test it
[12:03:41] <jacekowski> i've had something more complicated but that didn't work
[12:03:45] <Tom_itx> just never tried it that way
[12:04:09] <jacekowski> it's flashing port pins at /2 /4 /8 ... clock frequency
[12:04:26] <jacekowski> toggling*
[12:05:07] <Tom_itx> yes
[12:06:06] <specing> Tom_itx: Some cows have horns, too
[12:06:33] <Tom_itx> yeah but not the 'spare parts'
[12:09:49] <jacekowski> ehh
[12:20:44] <karlp> meh, must be having a stupid day, I can't even replace digitalWrite() and pinMode() calls with ddrX and port/pin calls and have the code keep working.
[12:21:00] <karlp> stupid software
[12:21:15] <karlp> so much for a quick saturday afternoon project :)
[12:27:18] <specing> Tom_itx: In Soviet Russia, they do
[12:27:50] <Tom_itx> nuclear effects?
[12:33:43] <OndraSter> mmm nuclear
[12:35:26] <specing> little green cow
[12:36:14] <OndraSter> we have got purple cow
[12:36:20] <OndraSter> Milka
[12:36:24] <OndraSter> chocolate.
[12:36:42] <specing> Ah yes, the overpriced chocolate ;P
[12:38:07] <specing> How much does it cost there?
[12:38:16] <OndraSter> a lot
[12:38:21] <specing> Haha
[12:38:36] <specing> the cheapest 100g chocolate is 0,45 eur here
[12:38:53] <specing> (Not that I know about many -- there could be some even cheaper)
[12:39:08] <Steffanx> specing isn't a fatass?
[12:39:30] <specing> No
[12:39:42] <specing> Im just slightly overweight
[12:40:01] <Steffanx> aka big-boned ?
[12:40:15] <specing> define that term
[12:40:29] <OndraSter> lol big boned
[12:40:35] <OndraSter> nah, big boned
[12:40:37] <OndraSter> not big boned*
[12:40:38] <karlp> http://imgur.com/gallery/Mev10
[12:41:13] <Steffanx> Java ..
[12:41:24] <OndraSter> lol
[12:41:52] <Steffanx> It's South Park crap specing ..
[12:49:56] <Steffanx> Good evening Mr. StumbleUpon
[12:51:08] <RikusW> Hi Steffanx should I paste another url ?
[12:51:30] <Steffanx> If that makes you happy
[12:52:43] <RikusW> I just used a stiffy to copy some data, first time in years....
[12:53:08] <RikusW> I had the radio's ROM dumped on an old 386, only way to get it was with a stiffy...
[12:53:42] <karlp> is a stiffy a 3.5" floppy?
[12:53:47] <Steffanx> Oh, lol "stiffy"
[12:53:48] <RikusW> so there is only a ROM that controls everything, no MCU...
[12:53:55] <RikusW> karlp: yes
[12:54:06] <Steffanx> Only you South Africans use that word
[12:54:43] <Steffanx> The other part of the world probably thinks of something else
[12:54:50] <RikusW> lol
[13:04:59] <jacekowski> hmm, how to enable interrupts
[13:05:01] <jacekowski> the right way
[13:05:02] <OndraSter> sei
[13:05:05] <jacekowski> sei(0 doesn't work
[13:05:10] <OndraSter> sei();
[13:05:19] <OndraSter> it does
[13:05:19] <OndraSter> work
[13:05:38] <jacekowski> C:\Documents and Settings\jacek\My Documents\maf\default/../maf.c:46: undefined reference to `sei'
[13:05:45] <jacekowski> ahm
[13:05:46] <jacekowski> nevermind
[13:05:47] <OndraSter> ..
[13:05:58] <jacekowski> no include
[13:06:05] <Steffanx> :)
[13:12:59] <jacekowski> hmm, something is not right with my adc
[13:13:16] <jacekowski> i'm using stolen code because i can't be bothered to RTFM
[13:13:36] <jacekowski> but it should work regardless
[13:14:17] <karlp> you could always rtfm :)
[13:14:40] <jacekowski> might have to, but that section of manual is quite long
[13:17:58] <jacekowski> hmmm
[13:18:01] <jacekowski> RTFM didn't help
[13:18:35] <OndraSter> then RTFMA
[13:19:15] <drgreenthumb> [11:04] <jacekowski> might have to, but that section of manual is quite long .... [11:07] <jacekowski> RTFM didn't help
[13:19:20] <drgreenthumb> not that long, clearly :P
[13:19:37] <jacekowski> well i'm looking just for free running mode on single channel
[13:20:10] <jacekowski> i've got prescaler set, reference set, free running mode set, ADEN set and ADSC set
[13:22:24] <jacekowski> hmm, it's working now
[13:23:47] <jacekowski> OCR1A=ADC+1;
[13:23:48] <jacekowski> that works
[13:23:53] <jacekowski> without +1 it doesn't work
[13:24:17] <OndraSter> what is ADC?
[13:24:19] <OndraSter> register
[13:24:25] <OndraSter> ADCL + ADCH?
[13:24:45] <jacekowski> yeah
[13:25:06] <jacekowski> kinda looks like gcc is doing some sort of stealth type cast
[13:28:44] <RikusW> gcc handles 16bit registers automagically
[13:43:26] <specing> I just figured out how to make vim highlight binary constants :)
[14:20:39] * RikusW thinks dual modulus prescaling is a very clever idea :)
[14:22:17] <RikusW> Does anyone here perhaps have a Wavetek DM27XT DMM ?
[15:04:41] <nn7> good morning! I found a bit of code that I'm trying to understand and they use an operator I'm not entirely familiar with.
[15:04:48] <nn7> c >>= 1;
[15:04:57] <nn7> I understand that >> is a bitshift
[15:05:06] <nn7> but how the assignment works, I'm not certain
[15:05:15] <nn7> is this c = c >> 1
[15:05:25] <nn7> ?
[15:07:09] <Grievre> yes
[15:07:18] <nn7> ok thanks
[15:07:32] <nn7> I just couldn't find any webpages that directly addressed that operator
[15:10:04] <specing> nn7: look at its disassembly
[15:13:56] <RikusW> LSR
[15:17:27] <mimcpher> nn7: in C, in general, all of the x FOO= y operators are equivalent to x = x FOO y
[15:17:47] <nn7> ahh.. that makes sense
[15:19:24] <mimcpher> A compound assignment of the form E1 op = E2 differs from the simple assignment expression E1 = E1 op (E2) only in that the lvalue E1 is evaluated only once.
[15:20:02] <mimcpher> C99 spec, section 6.5.6.2 paragraph 3 (Semantics)
[15:20:08] <mimcpher> If you want the definitive answer :)
[15:20:19] <nn7> :D
[15:20:29] <nn7> you see, this is the kind of service I have come to love from #avr
[15:38:27] <autumnharmony> Can comebody help me?
[15:38:34] <autumnharmony> somebody
[15:39:25] <OndraSter> no
[15:39:26] <OndraSter> with what?
[15:40:22] <autumnharmony> I'll try to explain my problem, i have atmega 8535, i need to use counter/timer1 with external source on t1(pb1)
[15:41:08] <autumnharmony> I configured tccrb1 to extarnal source, but nothing happend
[15:41:18] <autumnharmony> external
[15:45:42] * specing is trying to use C++ on a t2313
[15:45:49] * specing is failing at it
[15:46:19] <specing> autumnharmony: Define "need"
[15:47:39] <OndraSter> C++ on t2313 is a joke
[15:47:41] <OndraSter> it is too big
[15:47:50] <OndraSter> but C++ on xmega256 - why not :)
[15:48:08] <specing> OndraSter: Who said 128 bytes ain't enaugh for everybody?
[15:48:32] <OndraSter> I did
[15:48:49] <OndraSter> AMERICANS! http://imgur.com/r/engineering/8D33r
[15:48:53] <specing> Anyway, Im trying to pass register variables through the template system to an instantiated class...
[15:49:11] <Landon> I like to put .NET on my t2313s
[15:49:20] <Landon> .db ".NET",0
[15:49:35] <specing> :P
[15:49:59] <autumnharmony> i need to use counter/timer 1 as counter with external source
[15:50:36] <autumnharmony> can someone shows example of this?
[15:50:47] <autumnharmony> working example
[15:51:01] <OndraSter> Landon, I have only .NET on my Netduino :P
[15:51:05] <autumnharmony> maybe i've done something wrong
[15:51:31] <specing> ringbuffer<register u8 asm("r2"), register u8 asm("r3"), 16> txbuf;
[15:51:36] <specing> Doesen't work :(
[16:03:07] <specing> Actually
[16:03:34] <specing> the "register" and "asm("r2")" parts of that are attributes
[16:04:11] <specing> Now how does one pass attributes through the template system? hmmm
[16:05:39] <autumnharmony> useless
[16:13:31] <RikusW> autumnharmony: TCCR1B = (1<<CS12)|(1<<CS11)|(1<<CS10); // external T1 on atmega32u2
[16:16:42] <autumnharmony> i did it
[16:17:04] <RikusW> and is DDRB0 = 0 ?
[16:17:12] <RikusW> is it set as input ?
[16:17:31] <autumnharmony> but tcnt noyt changing
[16:17:35] <autumnharmony> not*
[16:17:48] <autumnharmony> DDRB1?
[16:17:58] <RikusW> yes
[16:18:08] <RikusW> my typo...
[16:21:11] <autumnharmony> not changing :(
[16:21:35] <autumnharmony> how about pull-up?
[16:22:31] <RikusW> what clock source do you connect ?
[16:22:48] <autumnharmony> i use simulator
[16:22:50] <autumnharmony> vmlab
[16:23:03] <autumnharmony> i connect pulse generator
[16:23:39] <autumnharmony> maybe wrong characteristics ?
[16:24:21] <autumnharmony> V[inst_name] node VSS PULSE(v_initial v_final t_delay t_rise t_fall t_width t_period)
[16:25:15] <autumnharmony> how do you think, which values i must define?
[16:25:36] <autumnharmony> for 1MHz controller ?
[16:26:17] <RikusW> what frequency did you put in ?
[16:26:49] <RikusW> max 400kHz for 1MHz
[16:27:13] <autumnharmony> Vpulse pb1 vss PULSE(0 5 0 0u 0u 20u 2.5m) gives 400Hz
[16:33:48] <jacekowski> i've tried to use arduino uno board to mess with sensor on my car
[16:33:51] <jacekowski> air flow sensor
[16:34:17] <jacekowski> but arduino pulls more current than 5v supply from ecu could deliver
[16:43:59] <autumnharmony> i'm think it bug in simulator
[16:46:16] <OndraSter> note that emulator doesn't support everything!
[16:46:18] <OndraSter> plus yes, it is bugged
[16:46:21] <OndraSter> I ran into two
[16:46:24] <OndraSter> in the AS6
[16:47:00] <autumnharmony> Proteus pretty cool
[17:21:17] <Tom_itx> jacekowski really?
[17:21:25] <Tom_itx> that's not very much
[22:26:19] <drgreenthumb> cool circuit someone just posted in ##electronics http://www.swharden.com/blog/2011-08-06-ridiculously-simple-avr-mcu-am-radio-transmitter/
[23:52:47] <Casper> drgreenthumb: yeah cool one
[23:53:02] <Casper> too bad it do not have a matching receiver D:
[23:53:03] <Casper> :D
[23:53:24] <drgreenthumb> heh yeah I thought about it later and ... I'd actually have trouble putting my hands on an AM receiver right now.
[23:53:35] <drgreenthumb> maybe a cheap one from a drugstore or so.
[23:54:32] <Casper> with a simple mod, you could easilly do higher power
[23:54:43] <drgreenthumb> heh and get into trouble ;p
[23:55:52] <drgreenthumb> I bet it would also not be terribly difficult to hook up a piezo mic to an ADC and have some voice broadcast.
[23:56:56] <drgreenthumb> or build a line in and connect it to an ipod :)
[23:57:07] <drgreenthumb> radio drgreenthumb!
[23:57:09] <drgreenthumb> hehe
[23:57:20] <Casper> and low qualityt too :D
[23:57:27] <drgreenthumb> yeah ;)
[23:57:45] <Casper> but imagine the possibility if you could even do 2400bps
[23:57:49] <Casper> with a 100ft range
[23:58:48] <drgreenthumb> heh could make a little board with these components for under $1 easily. receiving is another matter.
[23:58:56] <iR0b0t1> http://www.et06.dk/atmega_timers/ I have found this calculator to give twice the compare register value that is needed. I am using Timer2 instead of Timer0 however... so... could that feasibly be the issue?
[23:59:37] <Casper> timer2 is 16 bits no?
[23:59:38] <iR0b0t1> Like enter 8MHz clock and 56kHz out. It says with a prescale of 1 the compare register would be 0x8F... but it ain't.
[23:59:46] <iR0b0t1> No, it is 8 bits.
[23:59:56] <iR0b0t1> Atmega328