#avr | Logs for 2012-07-28

Back
[00:00:07] <SuperMiguel> in asm
[00:01:52] <Casper> ?
[00:03:40] <SuperMiguel> http://ideone.com/t2tAl
[00:03:48] <SuperMiguel> see loop, where it calls delay 1?
[00:04:01] <SuperMiguel> how can i have inner go back to like 27
[00:04:13] <SuperMiguel> with out making it a function
[00:05:42] <R0b0t1> A jump?
[00:05:53] <SuperMiguel> jump to what?
[00:06:02] <R0b0t1> 27.
[00:06:14] <R0b0t1> or you'd have to make a label there just to jump back to it.
[00:06:31] <R0b0t1> Also, outer has one t.
[00:06:49] <SuperMiguel> ya with out it a label there is no way?
[00:07:09] <R0b0t1> Probably not. But what are you trying to accomplish?
[00:07:31] <R0b0t1> You are trying to execute the contents of loop sequentially where part of the body is located elsewhere?
[00:08:15] <SuperMiguel> im trying to execute code, then delay, then continue
[00:08:24] <R0b0t1> While I don't know why you would want to do this explicitly instead of just putting the code from 35-48 in place of the rjmp.
[00:09:13] <SuperMiguel> cuz i have to call it multiple times?
[00:09:19] <SuperMiguel> will it keep going if i do that?
[00:09:20] <SuperMiguel> let me try
[00:09:30] <R0b0t1> I'm not sure what you are wanting to do, sorry.
[00:09:35] <R0b0t1> If calling it works why not stick with that?
[00:20:40] <R0b0t1> So I figure there might be some crossover, there was a project I saw awhile back which was new firmware for some hobby RC brushless controllers which at some atmega on them - the newer models use an 8051 by silicon labs. Does anyone know if there's a reimplementation of the programming protocol for the silabs chips?
[00:21:04] <R0b0t1> The programming tool is like $30 which is kinda too much...
[00:21:20] <R0b0t1> The protocol has been released. I'm just hoping someone has implemented it so I don't have to.
[00:22:41] <R0b0t1> ... and since I have literally found NOTHING on silabs products ... (although they do look quite good)
[00:29:10] <SuperMiguel> Casper: any idea whats wrong with this code? it keeps crashing in avr simulator http://ideone.com/WOoyJ
[00:29:28] <Casper> SuperMiguel: simulator suck
[00:30:16] <Casper> SuperMiguel: try it on a real avr, don't trust simulators
[00:32:04] <SuperMiguel> is that how u guys make delays?
[00:32:46] * Casper use C
[00:35:41] <theos> i use macros for delays :D
[00:38:16] <SuperMiguel> i guess my board didnt like ret
[00:38:22] <SuperMiguel> it was reseting there
[00:38:26] <SuperMiguel> and getting stock
[00:43:02] <R0b0t1> SuperMiguel, yes, delays are usually done by looping
[00:43:28] <SuperMiguel> R0b0t1: http://ideone.com/KhrQu this works
[00:43:56] <SuperMiguel> but, im not sure how i could have make inner better
[00:44:31] <SuperMiguel> and if instead of 3 loops(loop,loop2,loop3) i could off done it with only 1
[00:44:59] <R0b0t1> well longer delays are usually done with multiple loops
[00:45:07] <SuperMiguel> and finally how can i even calculate time?
[00:45:25] <R0b0t1> you need to find the execution times of each instruction in the loop, and add them.
[00:45:28] <R0b0t1> Check the data sheet.
[00:45:46] <R0b0t1> (it depends on clock frequency, normally, and might be given in "ticks")
[00:45:56] <R0b0t1> ... well, it always depends on clock frequency
[00:46:54] <SuperMiguel> i mean this is what 127550 executes per loop
[00:47:14] <SuperMiguel> running at 1.2 Mhz
[00:48:35] <R0b0t1> Okay well 1 second/1,200,000 * (cumulative_instruction_execution_ticks)
[00:49:38] <R0b0t1> If each of those 127550 instructions is a one-cycle instruction, then the loop will take 0.1063 seconds to execute at 1.2MHz
[00:54:45] <Sefid_Par> is it possible to produce 3 pwm simultaneously?
[00:55:09] <Sefid_Par> I want to produce 3phase pwm in fact.
[01:00:23] <CapnKernel> Yes but it depends on what you mean for "possible".
[01:04:20] <Sefid_Par> CamnKernel: Of course it should be written in the datesheet, I wanna know that if an AVR has 3 timers to make three pwms.
[01:04:21] <learningc> If you have 3 PWM modules, yes
[01:05:25] <Sefid_Par> learningc: I want to learn how to produce PMW correctly, Do you have any resources for it?
[01:06:41] <learningc> The datasheet for the correct device is the only correct resource to look into.
[01:08:04] <learningc> Which device are you intending to experiment on?
[01:08:34] <Sefid_Par> I want to make 3phase PWM, It doesn't important what to use.
[01:09:42] <learningc> If your device has 3 PWM outputs it would help, otherwise you would need to do it in software
[01:11:03] <Sefid_Par> Oh, You are right, You mean that I can make three PWMs only by using one Timer, Is it true?
[01:13:56] <CapnKernel> Yes, but you will need software assistance.
[01:14:22] <Sefid_Par> What software assistance?
[01:19:48] <CapnKernel> You could set a timer to generate an interrupt at 3 or 6 times the basic PWM frequency, and in your interrupt handler, twiddle the bits to activate/deactivate the outputs for the next phase.
[01:22:32] <Kevin`> get one of the devices designed for pwm, with a pll and many outputs
[01:24:07] <CapnKernel> Sefid_Par: Or you could do it as Kevin` suggests, and fix it in hardware by getting the right device in the first place.
[01:25:49] <Sefid_Par> Which one is better? pll or just avr?
[01:25:55] <learningc> Generally devices with PWM modules, you use the timer to set the period, and the PWM registers to set the duty cycle. So if you need the same period for all three PWM outputs, 1 timer would be sufficient.
[01:26:20] <Kevin`> Sefid_Par: pll is a module, not a seperate type of chip
[01:27:29] <Sefid_Par> Cool
[01:28:53] <Sefid_Par> You mean that I should make one period and then make the two other cycles just by coping this cycle. is it true?
[01:29:28] <Sefid_Par> .copying by pll
[01:36:42] <CapnKernel> Sefid_Par:
[01:36:45] <CapnKernel> Define "better"
[01:36:52] <theos> him again :)
[01:37:21] <Sefid_Par> theos :)
[01:37:27] <theos> hey :)
[01:37:41] <CapnKernel> Yeah. I'm still not sure whether his questions are borne of a desire never to read anything, or he really is that short of a clue.
[01:38:02] <theos> Sefid_Par did you read the books?
[01:38:15] <theos> get "the art of electronics" 2nd edition
[01:38:30] <Sefid_Par> theos: No!
[01:38:47] <theos> Sefid_Par you dont want to learn?
[01:39:26] <SuperMiguel> theos: i heard that book is good
[01:39:46] <Sefid_Par> CamnKernel: I meant that building one duty cycle and then shift it by pll module. I wanted to know if the pll could repeat the wave.
[01:40:01] <theos> SuperMiguel yeah its like the electronics bible. it needs to be update though
[01:40:20] <Sefid_Par> theos: I do not know which one you mean. Is that the book in ibiblio?
[01:40:26] <theos> Sefid_Par you can type the first few letters of the nick and press tab to complete the nick
[01:40:56] <Sefid_Par> theos: WOW, it was great!
[01:40:58] <Sefid_Par> :)
[01:41:20] <theos> Sefid_Par this book - - http://www.amazon.com/The-Art-Electronics-Paul-Horowitz/dp/0521370957
[01:41:44] <theos> there are other good books too. free tutorials too
[01:42:09] <Sefid_Par> theos: I can not buy books from amazon.
[01:42:25] <theos> Sefid_Par search your libraries
[01:43:23] <Sefid_Par> theos: You are right.
[01:47:15] <R0b0t1> Just pirate them, ffs.
[01:47:31] <R0b0t1> 'course it is kinda hard to find electronics books on thepiratebay.
[01:48:41] <_abc_> R0b0t1: it's okay, elsevier and others pirate them and sell them at extortion prices
[01:48:47] <_abc_> R0b0t1: and scribd
[01:49:02] <_abc_> R0b0t1: typically you find it on scribd because they pollute SEO wise
[01:49:17] <_abc_> Then search for it at the original academic place which issued them, where they are free
[01:49:43] <R0b0t1> I thought places like elsevier has exclusivity clauses
[01:49:44] <_abc_> And already paid for by taxpayers in that country, and by a universtiy, AND frequently legally in the public domain
[01:50:06] <_abc_> R0b0t1: papers issued under exclusivity do not exist as far as I am concerned
[01:50:20] <R0b0t1> Like, I know the research is usually publically funded - but didn't publication gates try to and often succeed at enforcing exclusivity?
[01:50:39] <R0b0t1> Like I don't give a shit either, but TECHNICALLY.
[01:51:05] <_abc_> Publication 'gates' consist of mostly illegal monopolies and cartels which have no power outside their jurisdiction.
[01:51:37] <_abc_> And frequently only muscle power in their own jurisdiction at the edge of the law
[01:52:10] <_abc_> Do you really believe a contract stipulating that the copyrighted work of a person can be published only by one publisher stands up in court?
[01:52:29] <impulse> are you talking about the HSBC scandal?
[01:52:33] <_abc_> There are such things as first publishing rights and so on, but exclusivity is illegal in most places.
[01:52:53] <_abc_> impulse: I am talking about electronic publication under excelusive rights by elsevier and others.
[01:52:59] <_abc_> *exclusive
[01:53:21] <impulse> yea those guys are crooked
[01:53:32] <impulse> that name is on some of my textbooks
[01:53:40] <CapnKernel> If you are the original author (or the original author has assigned rights to you) then it's completely up to you how the work is distributed, and this includes exclusivity.
[01:53:42] <_abc_> I personally boycott elsevier on the net since they spammed google years ago to show excerpts of papers they sell, but when you reached their page, you did not see said excerpts at all
[01:53:52] <_abc_> CapnKernel: Disagree.
[01:54:05] <CapnKernel> _abc_: Go on.
[01:54:14] <_abc_> There is nothing else to be said, really.
[01:54:15] <CapnKernel> As an example, the GPL is based on copyright.
[01:54:30] <CapnKernel> So you're going to disagree but you can't back it up?
[01:54:46] <_abc_> This is not a discussion.
[01:54:53] <R0b0t1> CapnKernel: The material of interest is usually publicly funded.
[01:54:56] <CapnKernel> Copyright gives you the right to determine the circumstances under which your work can be copied.
[01:55:26] <CapnKernel> Let's say a work is done by someone at a university.
[01:55:35] <impulse> R0b0t1: you mean academic papers?
[01:55:36] <CapnKernel> Often the author assigns his rights to the university.
[01:55:56] <CapnKernel> The university has the right to make an agreement with someone like Elsevier
[01:56:03] <R0b0t1> University receives public funding, done.
[01:56:05] <CapnKernel> And that can include exclusivity
[01:56:08] <_abc_> The short version: any paper ever printed by a university with state funding cannot be sold 'exclusively' by anyone else, and most papers which are parts of PhD theses and studies contracted and paid for in whole or in part by tax money, no matter in which country, MUST be published openly.
[01:56:25] <CapnKernel> Must? How so?
[01:57:28] <_abc_> Any company in EU (such as Elsevier) who gets to 'exclusively' sell such papers, is automatically infringing EU anticompetition laws which stipulate that a private enterprise cannot receive state funding or incentives in detriment of other competitors. This is by virtue of the material published being subsidized by tax money.
[01:57:38] <R0b0t1> CapnKernel: Like in some (very bad) I believe a court found the elsevier exclusivity clause to be enforceable, ... even though public funding and grants for universities usually come with the stipulation, in writing, that the results and relevant papers be released.
[01:57:49] <_abc_> There are no ifs and buts and I am not willing to discuss this any more.
[01:58:27] <impulse> come to think of it universities are pretty crooked too
[01:58:28] <CapnKernel> That's a function of EU law. It doesn't apply everywhere, and it's separate from the issue of copyright.
[01:58:52] <CapnKernel> Modern universities are nothing but academic-based corporations.
[01:58:53] <_abc_> Just by counting the papers which are subsidized and published by Elsevier in Europe last year and making them cough up what they owe in damages to the EU antitrust body will wipe out half their eranings.
[01:59:22] <R0b0t1> CapnKernel, "public funding requires public results". The issue is not exactly that there is an exclusivity clause, just that they tried to enforce it over state/national/EU union law.
[02:00:16] * R0b0t1 did that thing, kinda like, "ATM machine". Oops.
[02:00:28] <_abc_> CapnKernel: NO COPYRIGHT IS ABOVE THE LAW, THE LAW COMES FIRST, THE COPYRIGHT AFTER. A PERSON WHO COPYRIGHTS A PAPER WRITTEN UNDER PUBLIC FUNDING AND OMITS THE ASSIGNMENT OF MERIT AND THE OPEN PUBLICATION REQUIRED BY SAID FUNDING OWES THE EU *COPYRIGHT* AND ANTITRUST BODIES MONEY.
[02:01:38] <_abc_> Let me add to this that, in EU, most universities are state funded to well over 80%
[02:01:57] <_abc_> Iow, 80% of what comes out of them MUST be published freely or at low cost.
[02:02:50] <_abc_> Also the USA had similar laws in the past, and we all owe the US taxpayer more than a little for making projects like X11 and even, indirectly, open source Unix, possible.
[02:05:54] <_abc_> US Army papers and studies are still marked 'since this paper was elaborated under contract so and so of the so and so department, and funded by tax payers, it is in the public domain' (subject to secrecy waivers and so on, of course)
[02:07:57] <CapnKernel> NASA stuff too
[02:10:11] <SuperMiguel> R0b0t1: whats the formula for time if u know the number of cycles? and clock speed?
[02:11:09] <_abc_> CapnKernel: one more thing: PhD theses must be published and publically accessible. Without that, there is no PhD. Example: our esteemed prime minister was exposed as a fraud, having copied verbatim over 80 pages out of his 400 page opus PhD, using that. Without a published and peer reviewed PhD thesis, everyone can claim to have 3 PhDs.
[02:11:38] <_abc_> CapnKernel: Had it not been a requirement that the PhDs be published, he would have gotten away with it.
[02:15:53] <R0b0t1> SuperMiguel: 1 sec / f (in Hz) * (tick_length) where tick_length is the sum of the execution time in cycles of each instruction
[02:16:45] <SuperMiguel> R0b0t1: so if my cpu is running at 4 Mhz it will run 4millon cycles per sec
[02:16:51] <R0b0t1> yes
[02:17:10] <R0b0t1> 1 sec / 4,000,000 * (total cycles for code)
[02:39:14] <SuperMiguel> is there a NOT in avr asm?
[02:39:31] <SuperMiguel> or a way to flip all bits?
[02:49:09] <theos> yes
[02:50:12] <SuperMiguel> theos: how?
[02:51:09] <R0b0t1> not
[02:51:26] <theos> SuperMiguel you can perform 1s and 2s complement
[02:51:57] <SuperMiguel> gotcha 1s comp is the same as NOT
[02:52:35] <theos> yes
[02:52:42] <theos> 1 becomes 0 and 0 becomes 1
[02:52:53] <SuperMiguel> thxs
[02:53:02] <theos> np
[02:53:25] <theos> the asm command is COM. COM Rd
[04:13:10] <OndraSter> so I wanted to order the atxmega and guess what
[04:13:11] <OndraSter> http://clip2net.com/s/29M3H
[04:13:16] <OndraSter> it requires some end-user signatures
[04:13:27] <OndraSter> what the eff is DUNS/Federal ID/SSN?
[04:13:30] <OndraSter> I know only SSN
[04:13:38] <OndraSter> and that I don't have because I live in the EU obviously
[04:15:11] <Kevin`> OndraSter: it's because of the crypto support. are you ordering it FROM the us? atmel isn't a us company, so they should be able to sell things that do cryptography
[04:15:22] <OndraSter> I am ordering it from mouser
[04:15:28] <OndraSter> via czech distributor
[04:15:36] <OndraSter> (because shipping from mouser = 40€ otherwise, with this only 6€)
[04:15:45] <OndraSter> and I know that xmega has crypto support
[04:15:46] <R0b0t1> simple, answer the obvious answer
[04:15:50] <OndraSter> NO
[04:15:52] <OndraSter> but
[04:15:59] <OndraSter> what should I put into the DUN/SSN/ field?
[04:16:13] <OndraSter> my ID number?
[04:16:17] <R0b0t1> OndraSter, which country to you live in?
[04:16:27] <OndraSter> CZE
[04:16:28] <R0b0t1> Surely you have some state-issued ID which has some applicable number on it
[04:16:34] <OndraSter> yes
[04:16:45] <R0b0t1> then use that
[04:16:55] <OndraSter> Ultimate destination of product -- is that like the final country or what? :D
[04:17:13] <R0b0t1> Where you intend to market and sell the product.
[04:17:28] <OndraSter> oh
[04:17:30] <OndraSter> no idea :D
[04:17:35] <OndraSter> CZE, GER, USA
[04:17:39] <R0b0t1> (as in, it could be perfectly legal to ship <x> tech to some country for manufacture, but not for sale)
[04:17:52] <R0b0t1> (completely disregarding the fact some of the chips could fall out of a truck)
[04:17:57] <OndraSter> :D
[04:18:07] <OndraSter> web addres... hmm don't have any website right now
[04:18:11] <R0b0t1> N/A
[04:18:13] <R0b0t1> or blank
[04:18:18] <OndraSter> thanks
[04:18:22] <OndraSter> now where to get working scanner damnit
[04:18:30] <R0b0t1> trolololololo
[04:19:11] <OndraSter> because the **** printer doesn't even start without colour cartridge (and I don't have even empty one)
[04:19:16] <OndraSter> it is NETWORK MULTIFUNCTION
[04:19:21] <OndraSter> but it won't start without ONE CARTRIDGE?!
[04:19:23] <OndraSter> bollocks
[04:19:34] <OndraSter> I do wonder if the 110000 years old LPT scanner still works?
[04:19:38] <OndraSter> mmm
[04:20:01] <R0b0t1> Yes. Suggested therapy involves a baseball bat and a few printers. If you know a big guy who can chuck the printers at you, you could probably even play ball with 'em.
[04:20:19] <OndraSter> now to find a computer with LPT :D
[04:20:36] <OndraSter> I remember it working on Windows XP for sure, not sure how about any x64 system :D
[04:21:11] <specing> write "iran" :P
[04:21:23] * R0b0t1 goes to bed it is way too early/late
[04:21:40] <OndraSter> specing, lol
[04:23:01] <specing> 1) yes
[04:23:08] <specing> 2) yes
[04:23:28] <specing> 3,4) yes
[04:23:42] <specing> explanation: fuck you and your export laws
[04:23:48] <OndraSter> yes
[04:24:01] <OndraSter> I have no idea why it should be "illegal" to export devices that have CRYPTO?
[04:24:09] <OndraSter> wouldn't it be illegal to export anything
[04:24:17] <OndraSter> since you can do crypto in software?
[04:24:46] <specing> they would restrict it if they could
[04:25:31] <specing> first they employ nazi scientists and then refuse to share the tech with the rest of the world
[04:25:42] <specing> land of oppurtunity ftl
[04:26:20] <OndraSter> lol
[04:26:27] <OndraSter> damnit I found the LPT cable only so far
[04:26:44] <OndraSter> I don't think I took the scanner apart because I knew it was working
[04:30:39] <Kevin`> OndraSter: it's an outdated law that has never been fixed
[04:31:26] <Kevin`> OndraSter: it's illegal to export software that can do crypto too. hence all os distribution needs to happen from outside of this country =p
[04:32:42] <Kevin`> nor can anybody in this country work on crypto software realistically
[04:32:59] <Kevin`> it all has to be imported
[04:33:32] <OndraSter> lol
[04:33:34] <OndraSter> FAIL
[04:33:56] <OndraSter> srsly, how can giant flatbed scanner DISAPPEAR?!
[04:35:04] <CapnKernel> OndraSter: Does it have to be hi-res? How about just taking a phone pic?
[04:35:41] <OndraSter> well it has got my signature and my ID number and name and everything on it so I suppose it should be better quality
[04:35:45] <OndraSter> I thought about making a photo
[04:37:04] <specing> make a 320*180 photo
[04:37:27] <CapnKernel> These people only care that they can tick off a box saying "national ID sighted". There's no box that says "Carl Zeiss lens was used, colour temperature was ..."
[04:37:38] <CapnKernel> So make it easy for yourself.
[04:37:59] <OndraSter> actually my phone does have carl zeiss
[04:38:22] <OndraSter> but I have got buggered hardware and it can't focus properly often :/ need to RMA it
[04:40:27] <OndraSter> hmm on direct and a lot of light it focuses fin
[04:40:28] <OndraSter> e
[04:43:33] <OndraSter> well that did come out pretty good... http://tmp.ondraster.cz/customer.jpg (I have blackened address and my ID of course :D)
[04:45:03] <OndraSter> funny thing - this email went to SPAM actually :D
[04:45:07] <OndraSter> so I didn't notice it yesterday
[04:45:08] <OndraSter> oh well
[04:50:43] <OndraSter> hmm "400W" Errorcase powersupply that stopped working - at minimum one of the input caps is blown up... is it worth fixing?
[04:51:14] <CapnKernel> Depends on the value of your time.
[04:51:18] <CapnKernel> Oh wait, you're a student :-)
[04:52:53] <OndraSter> bah the soldered in fuse is blown up as well
[04:52:56] <OndraSter> I don't think I will bother
[04:54:16] <specing> Hehe, now we can call OndraSter at 4am in the morning
[04:54:30] <OndraSter> usually I leave my phone in the charger during the night
[04:54:38] <OndraSter> which is in the other room
[04:54:44] <OndraSter> so you can try calling me
[04:59:51] <specing> I think Ondrej would be equivalent to Andrej here
[05:00:06] <OndraSter> ye
[05:00:07] <OndraSter> Andrew
[05:00:58] <OndraSter> blah I won't bother with the PSU, I bet the transistor or diode burnt out as well
[05:01:06] <OndraSter> and for some unknown reason the input cap did too
[05:01:51] <OndraSter> so, the only way how to be spared from the stupid laws is to live in the US or not import stuff from there?
[05:02:03] <OndraSter> in that case - I'd love to try finding some supplier like mouser
[05:02:06] <OndraSter> farnell is LOL prices
[05:02:33] <OndraSter> WTF
[05:02:42] <OndraSter> I found some small metallic something inside
[05:02:49] <OndraSter> it could have shorted something
[05:02:53] <OndraSter> oh god
[05:02:57] <OndraSter> BLOODY ERRORCASE
[05:03:03] <OndraSter> at least that fuse worked
[05:03:51] <CapnKernel> So OndraSter, how are your momentary lightbulbs?
[05:04:32] <OndraSter> mome what?
[05:04:41] <OndraSter> btw, I got a call from my ex-teacher yesterday
[05:04:48] <OndraSter> the one that did with me the LED matrix
[05:04:52] <OndraSter> and gave me his old scope and wavegen
[05:04:57] <OndraSter> that he has got some space on a panel :/
[05:05:12] <OndraSter> so if I haven't got some small project
[05:05:17] <OndraSter> sorry CapnKernel
[05:05:41] <_abc_> OndraSter: try tme.eu in Poland
[05:05:50] <_abc_> OndraSter: you are in Slovakia, no?
[05:05:53] <OndraSter> we have got our tme.cz I think even
[05:05:53] <OndraSter> no
[05:05:54] <OndraSter> CZE
[05:05:58] <_abc_> Czech
[05:06:00] <_abc_> sorry
[05:06:00] <CapnKernel> OndraSter: np, you know where I am :-)
[05:06:01] <OndraSter> CapnKernel, but I will still keep everybody redirecting to yuo :)
[05:06:04] <OndraSter> you*
[05:06:04] <_abc_> I mix them up :)
[05:06:24] <OndraSter> no atxmega256a3u there
[05:06:28] <CapnKernel> "momentary lightbulbs" , aka fuses.
[05:06:32] <_abc_> no
[05:06:33] <_abc_> ...
[05:06:40] <OndraSter> only original a3-mh and it costs more than on farnell even
[05:06:46] <_abc_> CapnKernel: real men use CERDIP windowed momentary lightbulbs
[05:06:52] <CapnKernel> LOL
[05:06:52] <_abc_> CapnKernel: the bonding wires glow...
[05:06:53] <OndraSter> and on farnell it costs more than twice as much as on mouser
[05:06:55] <OndraSter> lol
[05:07:27] <_abc_> Did I tell aout the USB Chinese camera which acted as a mini orange projector?
[05:07:41] <_abc_> It's a single chip CMOS camera which used a bad USB cable (miswired)
[05:08:07] <_abc_> When plugged into a PC's current unlimited USB plug (!) there was a beam or orange light coming out of the lens...
[05:08:35] <_abc_> So it is safe to say that some Chinese USB cameras are actually USB lights :)
[05:09:13] <OndraSter> lol
[05:09:19] <_abc_> I have to go buy maccaroni sauce
[05:09:23] <_abc_> later
[05:09:48] <OndraSter> bb
[05:10:09] <OndraSter> holy ** the errorcase is so cheap! 400W through those tiny and thin wires? heck no
[05:10:29] <OndraSter> I had problems bending wiring from my 525W PSU because of how thick they are!
[05:10:35] <OndraSter> lol
[05:12:15] <specing> speedy RikusW :)
[05:12:36] <RikusW> no slow RikusW now....
[05:12:41] <OndraSter> hmm for desoldering from these giant power traces I will grab my 100W soldering iron!
[05:12:42] <OndraSter> lol
[05:12:53] <RikusW> 115kbps now...
[05:13:23] <specing> ooo that is even faster than the 57k modems from 1990
[05:13:26] <OndraSter> :D
[05:13:28] <RikusW> it is :)
[05:13:51] <RikusW> usually 57k is optimistic, in reality its slower
[05:14:01] <RikusW> say 3 or 4 kb/s
[05:14:16] <RikusW> I get 8 or 10 if I' lucky
[05:15:25] <RikusW> but sometimes the network gets overloaded and very slow
[05:16:15] <RikusW> particulary during the start and end of a vacation, there is a big road going nearby
[05:16:25] <specing> I have a constant 1.1 MB/s on a 10mbit line
[05:16:31] <RikusW> which a LOT of people use to go to the sea
[05:16:42] <RikusW> nice :)
[05:16:57] <specing> Wish I had optical :/
[05:16:59] <CapnKernel> OndraSter: That would be the DFWM iron... :-)
[05:16:59] <RikusW> whats the monthly cost of that ?
[05:17:24] <specing> I'd say about $30
[05:17:28] <RikusW> my brother pays ZAR1000 for a 4mbit line (about 100Euro)
[05:17:49] <OndraSter> lol CapnKernel
[05:17:49] <OndraSter> yes
[05:17:52] <RikusW> so 24 Euro ?
[05:17:58] <specing> something like that
[05:18:18] <OndraSter> I bought it few years ago
[05:18:22] <RikusW> hmm 1/4 the price for >double the speed....
[05:18:25] <OndraSter> to change a digitizer in a phone :D
[05:18:32] <OndraSter> but I did it even with the huge tip
[05:18:36] <OndraSter> mad skillz!
[05:18:52] <OndraSter> then I bought the chinese soldering iron + hotair gun station
[05:18:55] <OndraSter> (both in one box)
[05:19:48] <RikusW> specing: is there any limit to the amount of data you can download ? (or only the line speed?)
[05:19:54] <specing> none
[05:20:31] <RikusW> over here you get either 50GB/month or uncapped with bandwidth shaping
[05:20:58] <RikusW> for ZAR1000 that is
[05:21:01] <OndraSter> I'd go for 50GB then, RikusW
[05:21:12] <specing> though at my speed I can fill ~three terabyte disk per month
[05:21:50] <specing> So I never attempted to test the limits
[05:22:07] <RikusW> heh
[05:22:24] * RikusW only have a 1TB external :-P
[05:22:36] <RikusW> and there is only 50GB or so free space...
[05:22:52] <specing> I wonder where all that data came from
[05:23:27] <RikusW> my brother at uni of course
[05:23:34] <specing> hehe
[05:23:34] <RikusW> not via GPRS :-P
[05:24:02] <RikusW> or some did, datasheets I downloaded and backed up
[05:25:00] <CapnKernel> Just thinking quietly to my self
[05:25:10] <CapnKernel> About flying lead testing.
[05:25:23] <CapnKernel> If you stand in front of a gun, are you testing flying lead?
[05:25:50] * RikusW would rather not test it that way...
[05:25:57] <specing> depends on its relative speed to the planet
[05:26:08] <specing> you might even flying towards stationary lead!
[05:26:12] <specing> be*
[05:26:21] <CapnKernel> It could be argued that the lead isn't flying
[05:26:30] <CapnKernel> Merely "falling, with style"
[05:27:24] <RikusW> or depending on direction, the lead was decelerating... ;)
[05:27:37] <specing> yes and the movement of the planet
[05:27:42] <specing> and the galaxy
[05:27:46] <specing> and the star system
[05:27:57] <specing> s/star/solar/
[05:28:52] <OndraSter> hmm they have yet to identify black hole, right?
[05:28:54] <OndraSter> I think I found one
[05:28:55] <OndraSter> IN MY ROOM
[05:29:04] <OndraSter> somewhere
[05:29:19] <OndraSter> only things I need get lost in there, things I don't need still occupy my room
[05:30:23] <RikusW> ooooh
[05:30:29] <RikusW> familiar feeling....
[05:30:46] * RikusW try not to misplace stuff
[05:35:21] <OndraSter> seriously, HOW CAN GET MISSING GIANT FLATBED SCANNER
[05:35:35] <OndraSter> it is old school one
[05:35:43] <OndraSter> that is thick as ... hmm
[05:35:43] <specing> look under yo bed
[05:35:44] <OndraSter> a lot
[05:35:49] <OndraSter> my bed is in another room
[05:35:58] <OndraSter> where I have got only my UV light source :)
[05:36:01] <OndraSter> nothing else
[05:37:42] * RikusW have a Epson Perfection 660 scanner
[05:38:06] <RikusW> got it working with sane after some effort, and a bin fw file from the XP driver...
[05:38:40] <OndraSter> for some unknown reason
[05:38:42] <OndraSter> treason even
[05:38:45] <OndraSter> it was in my brother's room
[05:39:04] <OndraSter> including Diskette 1 of Win3.11
[05:39:05] <OndraSter> lol
[05:44:04] <OndraSter> chmpf I have got ton of male-male cables, male-centronics, male-minicentronics
[05:44:07] <OndraSter> BUT NO MALE-FEMALE
[05:44:14] <OndraSter> (db25)
[05:45:15] <Steffanx> And a shop to buy one is 1500 km away from you? :)
[05:45:25] <OndraSter> a) not worth for something this old
[05:45:27] <OndraSter> b) not open on weekends
[05:45:36] <Steffanx> Huh? Weird shop
[05:45:43] <OndraSter> well
[05:45:45] <OndraSter> there are some
[05:45:49] <OndraSter> but I ain't paying $5 for it lol
[05:46:43] <OndraSter> and those have got only male -> centronics
[05:48:47] <OndraSter> $4.3
[05:48:47] <OndraSter> hmm
[05:48:51] <OndraSter> and not open on weekends
[05:49:02] <OndraSter> I think I will rather turn this room upside down to find it
[05:49:28] <CapnKernel> You can pretend you're in Australia.
[05:51:17] <OndraSter> heh?
[05:51:24] <OndraSter> ohh I see what you did there :P
[05:51:31] <OndraSter> anyway, the cable found, it was, guess twice..
[05:51:34] <OndraSter> in brother's room again!
[05:51:58] <OndraSter> in my old electronics wardrobe
[05:52:00] <RikusW> what does he do with it ?
[05:52:22] <Steffanx> I think his brother likes to annoy OndraSter
[06:06:36] <OndraSter> sometimes I think like the humanity has failed
[06:06:38] <OndraSter> YET it survived
[06:07:07] <OndraSter> 1000 different power plugs are a good example
[06:12:05] <Kevin`> we haven't failed yet, but were are operating just above the minimum level of survival
[06:12:35] <Kevin`> although, personally, that's pretty much a failure anyway
[06:13:03] <Steffanx> "above the minimum level of survival" how that can be a failure?
[06:13:42] <Kevin`> Steffanx: because it's pathetic
[06:13:45] <Kevin`> ants do better
[06:14:04] <Steffanx> We should all live below the minimum level of survival and die?
[06:14:20] <Kevin`> no, that would also be failure
[06:14:23] <Steffanx> :)
[06:14:48] <Kevin`> the fact that the only further down we can go is extinction is kind of the failure
[06:19:52] <RikusW> we could go back to the dark ages...
[06:20:23] <Steffanx> That's more problem for us than it's for you :)
[06:20:48] <Steffanx> *us = western people
[07:38:53] <OndraSter> and the canner WORKS!
[07:39:06] <OndraSter> obviously the IBM T21 with Windows XP was too much
[07:39:09] <OndraSter> I had to go deeper :D
[07:41:02] <OndraSter> AMD K6 233MHz, 32MB RAM, Windows 2000
[07:44:11] <specing> Heh even my router pwns that
[07:47:22] <Steffanx> Congratz
[07:47:36] <CapnKernel> scanner even?
[07:53:13] <OndraSter> http://tmp.ondraster.cz/ussucks.jpg
[07:53:16] <OndraSter> 15 years old scanner still works
[07:53:32] <OndraSter> and it is on its side so the paper doesn't completely touch the glass
[07:53:47] <Steffanx> censored ?
[07:54:08] <OndraSter> yes, obviously
[07:54:09] <Steffanx> Or did the scanner add the squares? :)
[07:54:18] <Steffanx> *rectangles
[07:54:32] <OndraSter> I did in mspaint
[07:54:52] <Steffanx> paint of win7 is great :D
[07:54:54] <OndraSter> :D
[07:55:39] <OndraSter> I suppose I should take the scanner apart and clean it a bit
[07:55:51] <OndraSter> the glass mostly
[07:55:54] <Steffanx> Except for some details .. which make it crap :P
[07:56:23] <Steffanx> It sucks at handling eight bits per pixel jpeg images
[08:20:43] <Sefid_Par> How can I find the clock cycle of a AVR/C function?
[08:21:35] <Sefid_Par> for example _delay_ms or _delay_us.
[08:29:41] <CapnKernel> Sefid_Par: Why do you need to know it?
[08:30:26] <CapnKernel> The job of _delay_ms and _delay_us is to generate the right delay, independent of which clock speed. As such, you don't care how many cycles it is, just as long as the delay is right.
[08:31:03] <CapnKernel> And _delay_ms or _delay_us are macros. Usually they will expand to a loop, not a function call. But for small delays, it will be done with nops.
[08:31:52] <CapnKernel> If you really need to know how long a function call is, set a pin high before you call it, and set it low afterwards. Then watch the signal on an oscilloscope (or count it using a second micro)
[08:34:13] <Sefid_Par> CapnKernel: Thank you, Of course I do not use AVR studio, I hope to have this ability in linux too.
[08:35:05] <Steffanx> I wouldn't be surprised of simavr or simulavr can measure it for you
[08:35:34] <Sefid_Par> Steffanx: Thank you.
[08:36:51] <CapnKernel> Sefid_Par: You didn't answer my question.
[08:37:07] <CapnKernel> If we know why you want to do it, we may be able to advise you of a better way.
[08:38:42] <Sefid_Par> Oh, excuse me; I want to calculate the delay time to have accurate palse width.
[08:39:43] <Steffanx> You know you have a timer + pwm stuff for that?
[08:40:00] <Sefid_Par> capnKernel: I want to make 3phase palses. I writed the program. But I should calculate the delay durations.
[08:40:45] <Sefid_Par> Steffanx: The output frequency is 500Hz; I think I can not make it by pwm!
[08:41:53] <CapnKernel> 500Hz is easy
[08:42:02] <CapnKernel> 500KHz, harder
[08:42:11] <Sefid_Par> CapnKernel: Why?
[08:42:15] <CapnKernel> But if you want it to be accurate, I suggest using the timer to generate interrupts
[08:42:20] <CapnKernel> Why what?
[08:42:31] <Sefid_Par> Why 500Hz is easy?
[08:42:41] <Sefid_Par> You mean cause of accuracy?
[08:42:48] <jacekowski> it's slow
[08:43:12] <Sefid_Par> jacekowski: It's slow but what defferences?
[08:43:22] <jacekowski> you can do it with pwm
[08:43:24] <CapnKernel> It's slow, you have tens of thousands of cycles between when you have to do anything
[08:44:26] <specing> 500kHz? easy.
[08:45:12] <Sefid_Par> If I could make it by pwm I should keep reading about it. I thought that I have to make the palse width only by pre-scaler and it is hard to accurate it to 500.
[08:45:39] <Sefid_Par> specing: Why it is easy? is it possible to do by pwm?
[08:46:21] <specing> Sefid_Par: how fast is your chip running?
[08:46:26] <specing> is it at 16Mhz?
[08:46:47] <Sefid_Par> it can be run by external cristal.
[08:46:48] <specing> that means you have 32 cycles between each iteration
[08:47:07] <specing> or, an accuracy of 1/32 ;P
[08:48:02] <Sefid_Par> Oh, You mean the accuracy. is it true?
[08:48:10] <specing> ...
[08:50:18] <Sefid_Par> I will come back about 2 hours later. Excuse me for the sudden intrupt.
[08:53:18] <OndraSter> interrupt? which interrupt vector?
[08:54:48] <CapnKernel> Guys, enjoy the next two hours!
[08:55:27] <OndraSter> dude, he hasn't left yet :D
[09:01:39] <CapnKernel> It really worries me that he's asking the wrong questions.
[09:06:49] <specing> He is producing random babble
[09:07:20] <specing> It is like listening to intergalactic noise in a more coherent form
[09:11:05] <CapnKernel> I don't think it's random
[09:11:16] <CapnKernel> I think he's trying to run before he can walk
[13:27:01] <R0b0t1> hi
[13:27:06] <R0b0t1> hi
[13:27:09] <R0b0t1> hello
[13:27:10] <R0b0t1> :(
[13:27:39] <Steffanx> Lo
[13:29:07] <OndraSter> hi
[13:29:13] <OndraSter> med?
[13:29:58] <Steffanx> Time will tell
[14:21:51] <abcminiuser> Cripes, I think Glen was nervous for his video :P
[14:21:57] <abcminiuser> https://www.youtube.com/watch?v=GnPqkm0WAk4&list=UU7BvmnfLf-HTRZmMlPXeWwA&index=1&feature=plcp
[14:23:27] <Steffanx> The old video guy quit his job abcminiuser ?
[14:23:48] <abcminiuser> Steffanx: which one?
[14:24:21] <Steffanx> The one who did the interesting videos :P
[14:25:04] <Steffanx> Eivind
[14:25:24] <abcminiuser> Heh, he's on holidays but still there
[14:25:47] <Steffanx> When it's your turn again?
[14:25:48] <abcminiuser> Apparently it gives us a friendlier face to diversity and use random engineers for the troubleshooting videos
[14:26:13] <abcminiuser> I had my chance, didn't like it :P
[14:26:26] <Steffanx> So no Mr. Camera in from of the camera again?
[14:26:48] <abcminiuser> Well if you can think of a good topic I can have a crack at it
[14:26:53] <abcminiuser> But I didn't like the other one :S
[14:36:00] <abcminiuser> Also I found a green JTAG at work Friday
[14:38:40] <Steffanx> I read about it ..
[14:38:44] <Steffanx> i think it's a chinese clone :P
[14:40:00] <OndraSter> abcminiuser is back!
[14:40:26] <Steffanx> Shit happens OndraSter
[14:40:31] <abcminiuser> Yah I
[14:40:35] <OndraSter> only for today and tomorrow though? :P
[14:40:35] <abcminiuser> I'm using the webchat
[14:40:50] <abcminiuser> Freenode hates the local free Wifi from the library I'm stuck using at the moment
[14:41:03] <abcminiuser> Also, GGRREEEENNNN JJJTTTAAAGGGG
[14:41:05] <OndraSter> library?
[14:41:08] <OndraSter> what is green jtag?
[14:41:21] <R0b0t1> abcminiuser: do you work for atmel?
[14:41:21] <Steffanx> a jtag something with green case
[14:41:31] <OndraSter> oh
[14:41:32] <abcminiuser> JTAG ICE MKII
[14:41:44] <R0b0t1> also yeah he is totally freaking out in that video
[14:41:45] <abcminiuser> We used to sell them in blue green purple and orange
[14:41:48] <R0b0t1> too much side to side swaying
[14:41:55] <OndraSter> no pink? :(
[14:41:58] <OndraSter> with white dots?
[14:42:00] <OndraSter> I am disappointed!
[14:42:08] <abcminiuser> Hrm, not sure, don't think so
[14:42:18] <abcminiuser> But I'd never seen anything buy blue until then
[14:42:24] <abcminiuser> I wonder how long it was on the shelf for...
[14:42:29] <R0b0t1> If you work for atmel you should totally send me free stuff
[14:42:43] <OndraSter> :D
[14:42:58] <OndraSter> abcminiuser, I ordered today three atxmegas... and since they have crypto they wanted me to fillout some form!
[14:43:02] <abcminiuser> R0b0t1: nah I work for Microchip
[14:43:05] <OndraSter> bollocks in the USA
[14:43:06] <R0b0t1> BALLSACK
[14:43:14] <abcminiuser> OndraSter: I know, sucks but it's US law
[14:43:18] <OndraSter> ye
[14:43:18] <R0b0t1> okay well actually that works too, can I have a pickit?
[14:43:24] <abcminiuser> Incidentally, I've heard from sales we're actually shipping samples now
[14:43:31] <OndraSter> woot
[14:43:37] <abcminiuser> So try now if you need them
[14:44:10] <R0b0t1> All I have is a crummy ICD3 that fell off a truck. Fucking hate that thing.
[14:44:13] <abcminiuser> I'm on support for two weeks now, so no one email AVR support
[14:44:17] <OndraSter> I suppose I could use few... I wanted one board to send to Dave (that crazy ozie bloke), free samples would ease my starting point for "free samples" to people
[14:44:24] <OndraSter> abcminiuser, only ARM or AVR32? :P
[14:44:45] <abcminiuser> We don't do AVR32 support in Trondheim any more, so feel free to email us about those :D
[14:44:51] <OndraSter> :D
[14:44:58] <R0b0t1> abcminiuser: Last time I ordered samples it took like 2 months to get them, lol.
[14:45:01] <OndraSter> Trollheim?
[14:45:12] <OndraSter> last time I tried ordering samples I never heard from Atmel ever again lol
[14:45:32] <R0b0t1> OndraSter: Pretend to be a business. SOP for ordering samples.
[14:45:43] <abcminiuser> R0b0t1: we actually ship them now, until this month I didn't even realize anyone was reading the requests
[14:45:44] <OndraSter> sure I tend to lie when ordering samples :P
[14:45:51] <abcminiuser> But I saw a confirmation and everything
[14:45:59] <OndraSter> actually I don't lie about purpose anymore
[14:46:01] <OndraSter> I always have some
[14:46:14] <OndraSter> have some purpose for them*
[14:46:49] <R0b0t1> abcminiuser, I filled out the web form, they sent me an email which asked for the exact same stuff as the web form, then sent a confirmation letter "will be shipped if request accepted"
[14:46:54] <R0b0t1> randomly 2 months later I get a package
[14:46:56] <R0b0t1> kinda freaked me out
[14:47:04] <OndraSter> lol
[14:47:10] <OndraSter> did local atmel guy visit you as well?
[14:47:20] <abcminiuser> Mystery sample elves
[14:47:26] <R0b0t1> No, not even a call, though they asked for phone
[14:47:59] <R0b0t1> silabs has been the only one to call me so far, through a distributor
[14:48:03] <OndraSter> the phone # is for the PPL/..
[14:48:06] <OndraSter> yay
[14:48:11] <R0b0t1> wait maybe the call from arrow was for atmel parts
[14:48:11] <OndraSter> what does silabs do?
[14:48:36] <R0b0t1> OndraSter: They do a lot of audio/RF stuff, but look at their uCs, they have a lot of cool features. Especially the 8051s.
[14:48:43] <OndraSter> oh
[14:48:58] <OndraSter> NO, 8051!! DO NOT TORTURE ME ANYMORE!
[14:49:03] <OndraSter> everything comes from china with 8051 clone
[14:49:09] <OndraSter> and I always want to hack it but I have no idea how :D
[14:49:12] <R0b0t1> OndraSter: I would recommend them. They also have an ARM Cortex-M3 with some beefy analog on it.
[14:49:23] <R0b0t1> and USB host?
[14:49:28] <OndraSter> I like stm32
[14:49:32] <OndraSter> for ARM cortex
[14:49:36] <OndraSter> and LPC series from NXP
[14:49:48] <R0b0t1> Yeah if I do ever really need 32bit I'd be more likely to go for stm32
[14:50:01] <R0b0t1> I think I bought an AVR32 a while back but never did anything with it
[14:50:35] <OndraSter> avr32 has on one side 32bit core, but compared to xmega it lacks other stuff... sure it has ethernet, but it has barely ADC :/
[14:50:37] <R0b0t1> (regardless AVR32 kinda sucks compared to STM)
[14:50:48] <OndraSter> not sure if I'd go for AVR32 in my projects
[14:51:11] <R0b0t1> Yep, the xmega is probably the best line from atmel.
[14:51:23] <OndraSter> if only it had more 16bit (or even 32bit :P) support :/
[14:51:39] <OndraSter> it is still "too much 8bit"
[14:51:50] <R0b0t1> mhmm
[14:52:02] <R0b0t1> abcminiuser, tell someone that Atmel needs a 16bit line.
[14:52:15] <OndraSter> just upgrade xmega with 16bit registers :)
[14:52:15] <R0b0t1> A lot of people on the internet told you so. Would totally make money.
[14:52:19] <R0b0t1> Pawn it off as your idea.
[14:52:22] <OndraSter> :D
[14:52:42] <R0b0t1> 3) ??? 4) get promotion
[14:53:31] <OndraSter> :D
[14:53:43] <OndraSter> "chief of innovation"
[14:53:46] <OndraSter> also we want ethernet in xmega
[14:53:46] <OndraSter> then it is feature complete
[14:53:46] <OndraSter> :)
[14:53:56] <OndraSter> some even cheaper PICs do have ethernet
[14:56:31] <abcminiuser> :P
[14:56:57] <abcminiuser> Any ASF bugs need fixing? I've been fixing all the reported one liners for the last few weeks
[14:56:57] <OndraSter> abcminiuser, does that mean "ATXMEGA512A1UE IS COMING!!!"? :P
[14:57:44] <abcminiuser> OndraSter: Fairly certain commenting on future products would get me insta-fired, please don't ask :S
[14:57:56] <OndraSter> :D
[14:58:06] -OndraSter:#avr- okay, we need abcminiuser to get drunk.
[14:58:37] <abcminiuser> No seriously, I can tell you about existing stuff and help out, but even I know company secrets need to remain so if I want to remain employed :(
[14:58:40] <OndraSter> good thing - he won't remember and Atmel won't know who leaked it
[14:58:42] <OndraSter> sure
[14:59:13] <abcminiuser> Although I will say that I can neither confirm nor deny we are currently developing a genetically engineered robot chicken
[14:59:58] <OndraSter> talking about robot chicken, new series shall begin in the near future :P
[15:00:14] <abcminiuser> Futurama's airing now :)
[15:00:22] <OndraSter> yep
[15:00:26] <OndraSter> just as Continuum
[15:00:34] <OndraSter> but there is never enough TV shows :D
[15:01:19] <abcminiuser> I wants me some googly fiber damnit
[15:01:50] <drgreenthumb> I've got a topic for you abcminiuser! driving your AVR with an EPFGC! TIL about these http://en.wikipedia.org/wiki/Explosively_pumped_flux_compression_generator :)
[15:02:10] <OndraSter> is that homemade LHC?
[15:02:22] <drgreenthumb> homemade? heh.
[15:04:02] <abcminiuser> EMP gun!
[15:04:17] <abcminiuser> Fun fact, there's a parking garage around here that's an old bomb shelter
[15:04:29] <abcminiuser> EMP grounding, bigass door and all
[15:05:02] <abcminiuser> https://picasaweb.google.com/108771026244030052455/TrondheimMay2012
[15:08:47] <kobsu> abcminiuser: just got LUFA workin again :)
[15:08:54] <abcminiuser> Mmm?
[15:09:01] <kobsu> abcminiuser: the solution was, compile LUFA with zero optimization
[15:09:03] <SuperMiguel> isnt ROL supposed to rotate left? like if i have 11111110 it goes to 11111101 and then 11111011 ?
[15:09:19] <abcminiuser> kobsu: hrm that can't be good
[15:09:19] <kobsu> abcminiuser: with -O2 interrupts do not work on UC3
[15:09:36] <abcminiuser> What's your interrupt driver code like?
[15:09:40] <abcminiuser> The LUFA one?
[15:09:45] <kobsu> abcminiuser: the LUFA one
[15:10:23] <kobsu> abcminiuser: I have gone that through several times with in system debugger (Dragon+JTAG)
[15:10:35] <kobsu> abcminiuser: Didn't find anything unusual from your code
[15:10:48] <abcminiuser> kobsu: can you gist the LSS and MAP of the working/non working code?
[15:11:08] <abcminiuser> Perhaps the linker is discarding the interrupt code
[15:11:13] <kobsu> abcminiuser: sure, will do that asap
[15:11:47] <kobsu> abcminiuser: with -g flag?
[15:12:05] <abcminiuser> Yeah although that shouldn't impact it
[15:13:19] <kobsu> abcminiuser: just though that if you want to read LSS with debug statements
[15:14:08] <abcminiuser> Yeah add it in
[15:18:21] <kobsu> abcminiuser: https://gist.github.com/3194586 (compiled with -O2, EVENT_USB_Device_ControlRequest() won't be called, Windows detects as unkown device)
[15:21:57] <abcminiuser> Hrm seems ok
[15:24:04] <abcminiuser> Have you got a JTAG to check what's happening in the chip?
[15:25:24] <kobsu> I have run this through in system debugger (Dragon+JTAG)... didn't notice anything unusual when interrupts were initialized and GM bit was cleared
[15:27:58] <abcminiuser> Hrm, can you set a breakpoint in INTC_GetInterruptHandler()
[15:32:04] <kobsu> i'll try
[15:34:20] <kobsu> hmm... it says "The breakpoint will not currently be hit. Unable to set requested breakpoint on target."
[15:36:06] <kobsu> that was with the -O2 version... i'll try the same with -O0
[15:36:33] <kobsu> Auts, Studio 6 just crashed... ;)
[15:42:48] <kobsu> abcminiuser: with -O0 version I can set the breakpoint for that
[15:43:27] <kobsu> ouh sorry, forgot to run the debuggee... no cannot set it
[15:43:29] <abcminiuser> It's mapped into the binary
[15:43:36] <abcminiuser> So it's not being discarded
[15:43:40] <abcminiuser> I wonder if it's a timing thing
[15:49:29] <kobsu> yeah go figure
[16:04:36] <learningc> abcminiuser: Got a question for you. :) Since the jtagice3 has a jtag interface, can I use it to program and debug ARM uC like ARM 7/9/11/Cortex, etc.?
[16:04:48] <abcminiuser> learningc, no
[16:04:49] <OndraSter> no
[16:04:53] <OndraSter> poorly no
[16:04:56] <abcminiuser> JTAG is a standard for the physical interface
[16:05:03] <abcminiuser> But not the debug protocol
[16:05:07] <CapnKernel> They're only common at the lower layer
[16:06:11] <learningc> Ah ok.
[16:08:50] <learningc> Then for those ARM uCs, is there a popular debugger to program them?
[16:10:26] <OndraSter> any ft(2)232
[16:10:31] <OndraSter> well, not any
[16:10:36] <OndraSter> but the ones with JTAG support
[16:10:42] <OndraSter> OpenOCD can talk through them
[16:11:16] <learningc> Ah ok.
[16:11:27] <OndraSter> they are about $50
[16:11:34] <OndraSter> somebody here was making them
[16:11:38] <OndraSter> I forgot his name meanwhile
[16:12:23] <learningc> Any recommended commercial products?
[16:18:22] <R0b0t1> learningc, I know this sounds stupid but I'm cheap enough I've never used an actual debugger. Just a lot of print statements.
[16:18:33] <R0b0t1> And being careful.
[16:18:35] <R0b0t1> Very vareful.
[16:19:39] <R0b0t1> Actually I would say being careful in the first place is better than buying a debugger.
[16:19:52] <R0b0t1> Even if you had the debugger, you'd spend more time debugging than being careful.
[16:20:29] <R0b0t1> A debugger, though - you can use it to place the blame on someone else when your code works and there's a mysterious fuckup.
[16:21:44] * CapnKernel is having a chuckle about R0b0t1 carefully misspelling careful.
[16:22:33] <learningc> Ah ok. A debugger is nice though, because you can see the values in the memory.
[18:17:43] <specing> OndraSter: interestign would be if one could debug AVRs though FT232H with avarice
[18:38:37] <Steffanx> Read the stuff rikusw did and you can specing
[18:38:54] <Steffanx> Reverse the jtagice mkii too and you can do everything
[18:39:58] <Steffanx> Shouldn't be too hard to implement
[19:02:56] <OndraSter> on the other hand you can grab Dragon for 50 bucks
[19:03:10] <OndraSter> and it works out of the box with vast majority of AVR/AVR32
[19:03:21] <OndraSter> plus it works with Atmel Studio
[19:03:24] <OndraSter> <3
[19:03:40] <OndraSter> that's what linux is missing! Proper IDE for C++/managed/ASM!
[19:03:52] <OndraSter> (no, Eclipse is just pure crap, just as Netbeans :P)
[19:04:24] <Steffanx> ok mr
[19:10:16] <R0b0t1> learningc: Why use a debugger to view the values in memory when you could serial out them instead?! Muahahahaha
[19:11:33] <OndraSter> JTAG is much more powerful
[19:11:34] <OndraSter> by far
[19:11:43] <OndraSter> you can break the app ANYTIMEE
[19:11:47] <OndraSter> -E
[19:26:31] <R0b0t1> OndraSter, similarly, I can put an output statement at ANYTIME
[19:30:10] <OndraSter> R0b0t1, not really
[19:30:22] <OndraSter> you cant out of nothing just pause the program with knowing exactly where you are
[19:30:32] <OndraSter> unless you are running at 0.5Hz and manually counting instructions :)
[19:31:38] <R0b0t1> I also can't break the program randomly. Timing sensitive things would still be affected ._.
[19:33:24] <OndraSter> sure
[19:33:32] <OndraSter> but with JTAG you can pause it whenever you want, singlestep, ...
[19:33:42] <OndraSter> timing sensitive things you can skip
[19:33:50] <OndraSter> and stop right after them etc
[19:33:57] * R0b0t1 has never needed JTAG/actual debugging.
[19:34:13] <OndraSter> it helps greatly :)
[19:34:31] <R0b0t1> It makes your failures not matter, because you can fix them later!
[19:34:33] <R0b0t1> HERESY
[19:34:46] <OndraSter> it really eases up digging through bugs by far
[19:34:55] <OndraSter> I also reflash borked phones :P
[19:34:57] <OndraSter> with my Riff Box
[21:14:12] <daveee321> anyone know the difference between calling a pin PD6 versus DIO14, on an atmega 644?
[21:15:02] <Tom_itx> look at the device .h file
[21:18:00] <daveee321> where would i fin that? i am defining this pin in the firmware. DIO14 worked just fine, I just saw someone else's config.h file and they used PD6 instead
[21:18:05] <daveee321> *find
[21:18:53] <Tom_itx> are you using windows or linux?
[21:19:01] <Tom_itx> winavr?
[21:19:49] <daveee321> mac
[21:20:40] <Tom_itx> look for something like avr/include/avr/
[21:21:01] <Tom_itx> and your device header files should be there somewhere
[21:22:21] <daveee321> ok, one sec
[21:22:55] <Tom_itx> the PDx stuff is defined there
[21:23:14] <Tom_itx> iom644.h
[21:25:02] <daveee321> not finding it. i went into the arduino IDE.app contents and am looking at the hardware
[21:26:06] <Tom_itx> so you're running arduino stuff
[21:26:15] <Tom_itx> not raw c
[21:26:31] <daveee321> yea. well it's C that I load through the arduino IDE
[21:28:00] <daveee321> i found tons of files on pins, but it all shows teh same thing, that PD6 and DIO14 are the same pin, but I wonder why there are diffeerent ways to define something as being on that pin
[21:29:23] <Tom_itx> they probably all map to the same address
[21:29:43] <daveee321> yea, they do. so far i can't find anything different about them
[21:30:05] <Tom_itx> probably none
[21:30:54] <daveee321> yea, i think so. thanks for the help
[21:31:52] <Tom_itx> i'd rather get used to using PDx