#avr | Logs for 2012-06-11

Back
[01:07:12] <iR0b0t1> Can an interrupt disable itself?
[01:07:39] <Casper> what do you mean?
[01:07:46] <iR0b0t1> Like, I want to use a timer in a one-off event - so I would like to set the timer register, enable the timer, and then in the overflow interrupt disable the overflow interrupt.
[01:08:03] <Casper> why not?
[01:08:16] <iR0b0t1> I couldn't see any gotchas, so I assumed there was a gotcha.
[01:08:55] <Casper> I don't think there is one
[01:09:15] <Casper> from all I know, an interrupt is nothing more than a subfunction
[01:09:25] <Casper> with special caller and return
[01:21:20] <iR0b0t1> Casper: When needing to use the pin change interrupt on pins which share a PCINT vector... do you know of a convenient way to check for which pin changed value?
[01:25:24] <Casper> store previous value and compare
[02:14:31] <iR0b0t1> Casper: I was hoping you wouldn't say that.
[02:14:46] <Casper> hehe
[02:15:35] <iR0b0t1> But yeah now that I basically finished the protocol decoding, which I based on the pin change interrupt and measuring pulse duration...
[02:16:09] <iR0b0t1> I realized I could have done it by getting the PCINT on the falling edge, then setting the timer so the interrupt would occur Xµs later, and then I could sample the pulse.
[02:16:20] <Casper> also, there is even a chance that the interrupt will be triggered but you will find none
[02:16:42] <Casper> because you have to actually query the port to know which pin changed
[02:16:54] <Casper> so if it resetted before you check, you find none
[02:16:54] <Casper> and
[02:17:00] <Casper> you can also find more than one
[02:27:00] <iR0b0t1> Casper: I DO NOT LIKE THIS
[02:28:02] <Casper> nobody does
[02:28:13] <Casper> this is one of the few insanity with the avr
[02:28:25] <Casper> but hey! there is not many of those catch
[02:30:05] <iR0b0t1> Casper: Do you know what kind of time frame missing one of those would be on?
[02:30:11] <iR0b0t1> Like
[02:30:30] <iR0b0t1> I guess you could do it in one cycle, by storing the port register to a variable/register.
[02:31:29] <Casper> the problem is the many cycles from the pin change and the actual first instruction of the interrupt routine
[02:31:42] <iR0b0t1> Oooh yeah
[02:31:47] <Casper> i.e. the interrupt jump, the tons of push, then it can execute...
[02:31:53] <Casper> so what... about 10 cycles?
[02:31:55] <iR0b0t1> Hmmmmmm.
[02:32:09] <iR0b0t1> How long is each cycle dep. on clock? For example I am using 8MHz internal
[02:32:31] <iR0b0t1> I wish the AVR had automagic shadow registers.
[04:12:30] <iR0b0t1> I've got my protocol decoder setup so that when it receives a "read" pulse (1-15µs) it sets TCNT1 = (0xFF - ((60 * OWI_TICKS_PER_uS) - owi_tval));
[04:12:41] <iR0b0t1> Then it pulls the bus low
[04:12:52] <iR0b0t1> then it enables the time overflow interrupt, and disables the pin change one
[04:13:32] <iR0b0t1> This is supposed to provide a delay of up to 59µs, since the incoming pulse can be 1-15µs it does 60-value to calculate the remaining time.
[04:14:27] <iR0b0t1> However, issue is, I send an address packet (and what I am doing now it trying to get the ACK response working)
[04:14:36] <iR0b0t1> every 100ms. Some of these get dropped.
[04:14:54] <iR0b0t1> I do not know why. If I replace the sequence I explained above with a hardcoded delay, it always works.
[04:15:40] <iR0b0t1> The timer overflow interrupt sets the line high (tristated), disables the timer overflow interrupt, and enables the pin-change interrupt (through the mask register).
[04:15:48] <iR0b0t1> It also sets the counter register to 0
[04:22:30] <iR0b0t1> .
[04:22:35] <iR0b0t1> Okay maybe clearer this time
[04:22:38] <iR0b0t1> -----------------------------------------------------------------
[04:22:39] <iR0b0t1> So in an attempt to generate a delay (for an acknowledge pulse), I set a timer/counter to a value, disable the pin change interrupt (through the mask register), enable the timer overflow interrupt, bring the line low, and then return from the pin change interrupt. The timer overflow interrupt disables itself, brings the line high, enables the pin change interrupt, and resets the timer/counter (although it should already be reset).
[04:22:58] <iR0b0t1> The issue is, this doesn't always work. Some of the pulses are missed. If I instead use a hardcoded delay, it always works.
[05:58:39] <OndraSter> tiny2313 has no ADC? screw that then
[07:05:34] <w|zzy> Anyone know of a avr32 breakout board such as -> http://www.stackfoundry.com/hardware/copper-avr32/ though one that ships to AU
[07:13:37] <OndraSter> w|zzy, that's some weird spacing
[07:15:53] <w|zzy> tis. with not a huge amount of pinouts.. but its the only one ive found at a reasonable price.
[07:18:09] <w|zzy> I have an evk1104 board
[07:48:03] <iR0b0t1> w|zzy: they're all really damn expensive. I'd suggest trying to find the artwork for one and making your own, which is what I've resigned myself to eventually having to do. I have some ridiculous AVR32 chips I need to test out sometime
[07:56:15] <iR0b0t1> I've no idea why I've got four AT32UC3C0512C, but I do...
[08:28:46] <OndraSter> http://www.youtube.com/watch?v=TROd29XFHY0#
[08:30:53] <mrfrenzy> maybe someone did this already and published his design on seedstudio?
[09:45:39] <OndraSter> http://clip2net.com/s/21vIo
[09:45:42] <OndraSter> did I forgot something?
[09:45:47] <OndraSter> the 330R are 1W
[09:45:50] <OndraSter> the 39R is 5W
[09:46:26] <OndraSter> 200R is ... hmm something small
[10:00:06] <OndraSter> Tom_itx, do you have schematics for your triac board from the oven? I found that microchip has application note towards triacs that is absolutely different to what you have and what I have and what everyone else has
[10:22:32] <OndraSter> ah right it is 0611 on the west coast
[11:37:45] <OndraSter> so I have reverse engineered Tom_itx 's triac board
[11:37:56] <OndraSter> the rev1
[11:38:01] <OndraSter> which has actually bottom shot and top shot :P
[12:37:49] <JyZyXEL> http://www.ebay.com/itm/315Mhz-RF-transmitter-and-receiver-link-kit-for-Arduino-ARM-MCU-WL-/140730792038?pt=LH_DefaultDomain_0&hash=item20c4357866
[12:38:00] <JyZyXEL> are those 315MHz RX modules hard to read?
[12:39:38] <RikusW> http://channel9.msdn.com/coding4fun/blog/Design-and-simulate-digital-logic-circuits-with-LogicCircuit
[12:51:01] <abcminiuser> Oh man, work today
[12:54:27] <OndraSter> heh
[12:54:32] <OndraSter> abcminiuser, any funny stories?
[12:55:00] <OndraSter> RikusW, is that in .NET or native?
[12:55:00] <abcminiuser> OndraSter, we were talking around the water cooler
[12:55:15] <abcminiuser> The subject of the French team came up at one point
[12:55:42] <abcminiuser> And one of the students wasn't thinking, and said "I wonder if they're all standing around their wine cooler, talking about us..."
[12:55:50] <abcminiuser> Nearly wet myself
[12:55:51] <OndraSter> :D
[12:55:54] <RikusW> OndraSter: seems .NET 4
[12:56:09] <OndraSter> RikusW, cool =)
[12:56:33] <abcminiuser> Also, https://www.youtube.com/watch?v=fHWYsXgBdmg
[12:57:04] <OndraSter> wow
[12:59:40] <OndraSter> subscribing to atmel's youtube channel :D
[13:01:42] <OndraSter> abcminiuser, so now you are doing videos as well?
[13:02:08] <OndraSter> is that part of the support team or is it as some part of "introduce yourself" task?
[13:02:11] <OndraSter> :D
[13:04:28] <vectory> what are all the ics on the stk600???
[13:04:42] <vectory> oh, arent ics, but io ports -_-
[13:05:00] <abcminiuser_> Wut?
[13:05:12] <abcminiuser_> You put two boards in place, a routing card and a top socket
[13:05:13] <vectory> the connectors
[13:05:22] <abcminiuser_> That routes out all the programming and port pins to headers
[13:07:13] <vectory> i see
[13:10:09] <RikusW> vectory: you got one ? or just got a photo ?
[13:10:21] <vectory> just saw the linked video
[13:10:39] <vectory> assuming that is a stk600, since it was talked about
[13:10:59] <OndraSter> btw abcminiuser_ are you catching the norway accent or is it normal accent from USA? :D
[13:11:20] <Tom_itx> norwegian aussie accent
[13:12:13] <OndraSter> oh
[13:12:16] <OndraSter> he is aussie :)
[13:12:19] <abcminiuser_> OndraSter, I'm Australian
[13:12:19] <abcminiuser_> Norwegian accent my foot
[13:12:19] <OndraSter> I thought he was from the USA
[13:12:38] <Tom_itx> nope
[13:12:48] <OndraSter> Tom_itx, since you are here, what is the difference between rev1 and rev2 of your triac boards for your oven?
[13:12:51] <Tom_itx> http://www2.electronicproducts.com/World_s_largest_flexible_OLED_successfully_manufactured-article-fajb_OLED_flex_display_jun2012-html.aspx
[13:13:02] <Tom_itx> huh?
[13:13:03] <OndraSter> I disassembled your rev1
[13:13:11] <Tom_itx> not much
[13:13:13] <Tom_itx> if any
[13:13:21] <Tom_itx> for the high v stuff?
[13:13:24] <OndraSter> I see only connectors
[13:13:24] <OndraSter> yes
[13:13:38] <Tom_itx> the circuit would be the same
[13:14:14] <Tom_itx> the original may have been out one port pin and i added a 2nd port pin to split my elements up into 2 circuits
[13:14:24] <OndraSter> and do you have schematics for it? I took apart few datasheets and they often look different, some are the same as yours... this would be mine http://clip2net.com/s/21vIo
[13:14:28] <Tom_itx> yes
[13:14:43] <Tom_itx> it should be there
[13:14:49] <OndraSter> http://tom-itx.dyndns.org:81/~webpage/toaster_oven/toaster_oven_index.php
[13:14:52] <OndraSter> only serial display
[13:15:24] <Corwin> ^ for toasting avr chips?
[13:15:38] <OndraSter> that's one use, yes :)
[13:16:31] <Tom_itx> http://tom-itx.dyndns.org:81/~webpage/toaster_oven/control_sch.png
[13:16:31] <abcminiuser_> That's a boot'in
[13:17:35] <OndraSter> Tom_itx, oh it is all in
[13:17:41] <OndraSter> thanks
[13:17:46] <OndraSter> didn't look there :)
[13:27:56] <OndraSter> hmm new macbook pro. Two reasons to buy it: superhigh resolution, SSD
[13:28:03] <OndraSter> + Windows license from MSDNAA
[13:28:03] <OndraSter> :D
[13:35:42] <Landon> hope windows doesn't bork too hard on a nonstandard dpi ;)
[13:36:04] <OndraSter> not sure how would Win7 work with that, but Win8 is capable of it
[13:37:23] <Corwin> win8 is capable of borking? :)
[13:37:36] <Corwin> whats screen resolution of macbook pro?
[13:37:44] <OndraSter> 2800x1something
[13:37:55] <OndraSter> it is something I've never heard of, I don't remember it yet
[13:38:13] <OndraSter> 2880x1800
[13:38:25] <OndraSter> 16:10
[13:38:36] <OndraSter> not any s****y 16:9 :)
[13:39:43] <Corwin> hmm... nice
[13:39:52] <OndraSter> yeah
[13:39:57] <OndraSter> on 15.4"
[13:40:00] <OndraSter> super high resolution porn!
[13:40:01] <OndraSter> <3
[13:40:06] <OndraSter> (I had to, sorry)
[13:40:37] <Corwin> get a GF... it has even bigger resolution
[13:40:53] <Tom_itx> oh god no
[13:41:04] <Corwin> who is god here?
[13:41:08] <OndraSter> abcminiuser
[13:41:11] <OndraSter> most likely
[13:41:31] <Tom_itx> naw he's the devil
[13:41:35] <Corwin> :)
[13:41:39] <Tom_itx> ever see his posts on the forum?
[13:41:39] <OndraSter> why can't be the devil also the god?
[13:41:44] <OndraSter> yes, the ending
[13:43:33] <abcminiuser> I JUDGE THEE
[13:44:39] <_abc_> o.o
[13:45:02] <Corwin> ^ attack of ABC clones?
[13:45:08] <_abc_> Well he does use a lot of >:) icons in his forum postings. Must be a trademark >:)
[13:45:10] <OndraSter> _abc_, too bad you are just abc, not mini abc
[13:45:18] <_abc_> OndraSter: I am mega abc
[13:45:20] <OndraSter> let alone user of it!
[13:45:23] <OndraSter> hehe
[13:45:23] <Tom_itx> he was demoted
[13:46:22] <_abc_> Anyway, any news on freeglut builds of simavr which refuse to build the example/board_reprap and example/board_simpleduino ?
[13:46:53] <_abc_> I have this problem and I assume it is due to my using freeglut instead of some other (?) GL clone. Anyone care to comment?
[13:51:23] * Corwin hates windows now
[13:52:37] <Corwin> another devil clone joined :)
[13:54:24] <RikusW> thats not a clone mere another instance ;)
[13:54:43] <Corwin> devil is object oriented?
[13:58:08] <Corwin> anyone remembers windows "nslookup" command in linux ?
[14:00:23] <Corwin> hmm... nslookup should work :(
[14:01:20] <Vegar> dig
[14:01:28] <Vegar> nslookup works too
[14:01:46] <Corwin> hmm... which dig => no dig
[14:01:51] <Corwin> stupid VPS
[14:12:40] <OndraSter> Corwin, nslookup is not in stock linux
[14:12:49] <OndraSter> don't ask me about the package :)
[14:13:06] <Corwin> i cant install it anyway
[14:13:11] <Corwin> not root :(
[14:13:27] <Landon> vps that you don't have root...?
[14:14:10] <Corwin> user password was easier to hack than root
[14:14:13] <Corwin> :P
[14:14:16] <OndraSter> LOL
[14:14:26] <OndraSter> how about mysql... :D
[14:14:37] <Corwin> ?
[14:14:45] <OndraSter> oh you haven't read
[14:14:45] <OndraSter> let me dig it up
[14:15:02] <OndraSter> http://seclists.org/oss-sec/2012/q2/493
[14:15:14] <OndraSter> "MySQL doesn't accept password? Keep sending random till it works!"
[14:15:26] <Corwin> lol
[14:15:37] <OndraSter> chance 1:256 that it works :P
[14:22:57] <Corwin> i give up... doing ssh from windows really sux
[14:24:17] <OndraSter> putty isn't enough?
[14:24:22] <OndraSter> what more do you need :D
[14:24:57] <Corwin> putty works fine...i wanted to make ssh working
[14:25:03] <Corwin> ssh as command, not protocol
[14:37:09] <OndraSter> oh
[14:37:13] <OndraSter> abc
[14:37:15] <OndraSter> he is gone...
[14:37:27] <OndraSter> I wanted to give him an advice... go to sweden for a weekend :) http://9.asset.soup.io/asset/2143/9481_bf72.jpeg
[14:40:30] <Steffanx> He as a gf OndraSter
[14:40:43] <OndraSter> he as a gf? :D
[14:40:46] <Steffanx> has
[14:40:49] <OndraSter> oh
[14:40:56] <Steffanx> And that gf is with him in Norway
[14:41:14] <OndraSter> she would stay in Norway... :D
[14:41:31] <Steffanx> Or he could dump her at your place
[14:41:50] <OndraSter> I don't live in Sweden.. nor norway
[14:41:55] <OndraSter> bah ignore me
[14:41:55] <Steffanx> Who cares
[14:42:04] <Steffanx> Ignore you?
[14:42:08] <OndraSter> for now, yes
[14:42:14] <Steffanx> Nono
[14:42:19] <_abc_> OndraSter: which one of me is gone?
[14:42:20] <Steffanx> Said things can't be unsaid
[14:42:21] <Corwin> ignore you or /ignore you?
[14:42:25] <_abc_> :)
[14:42:29] <OndraSter> ignore is enough
[14:42:34] <OndraSter> if you want /ignore, it is your choice :P
[14:42:51] <Steffanx> No, I wont
[15:30:03] <w|zzy> thanks iR0b0t1
[15:53:55] <GuShH_> _abc_: http://gushh.net/tmp/arduinoshield.png
[16:02:25] <OndraSter> LOL GuShH_
[16:02:45] <OndraSter> will it do what I think it will?
[16:03:14] <OndraSter> let phase into all the digital pins and neutral to other side? :D
[16:03:20] <OndraSter> (or the opposite, depends on where do you look from)
[16:11:56] <GuShH_> OndraSter: yes sir.
[16:12:02] <GuShH_> OndraSter: and hopefully their usb interface isn't isolated.
[16:12:21] <OndraSter> :)
[16:12:25] <OndraSter> what's wrong on arduino?
[16:12:53] <OndraSter> if one wants something done quickly - like dump some EEPROM or whatever, just pick the arduino, write 4 lines of code and bam, done
[16:13:07] <OndraSter> doesn't have to re-read the datasheet with all the registers etc
[16:15:42] <GuShH_> OndraSter: the list of what isn't wrong is shorter
[16:16:13] <OndraSter> I don't care what's wrong or not, I use it to what I need to :)
[16:16:34] <OndraSter> when I need something bigger that require more pins - I use either mega32 in breadboard or different approach
[16:18:43] <cehteh> a cluster of tiny12's :)
[16:19:06] <OndraSter> hehe
[16:19:13] <OndraSter> I thought about clustering bunch of megas :D
[16:19:17] <OndraSter> on i2C for example
[16:19:30] <OndraSter> one as file server, one as proxy, one as web server
[16:19:36] <OndraSter> and one as sql server :D
[16:19:36] <_abc_> GuShH_: nice shield there >:)
[16:19:59] <_abc_> OndraSter: and one as a supervisor, and one more as a DHS spy?
[16:20:05] <OndraSter> DHS?
[16:23:26] <_abc_> OndraSter: Department of (US) Homeland (in)Security
[16:23:33] <OndraSter> oh
[16:23:40] <_abc_> OndraSter: the parent organization of the genital fondlers in US airports
[16:23:40] <OndraSter> I am not from the US => no DHS there :)
[16:24:04] <_abc_> OndraSter: I am also not from the US...
[16:38:03] <OndraSter> just making sure: it doesn't depend on the polarity of the anodes on the triac, right?
[16:38:16] <OndraSter> because my friend had issue and when he switched the anodes it worked
[16:38:19] <OndraSter> but it sounds.. weird
[16:38:24] <OndraSter> :P
[17:31:07] <drgreenthumb> hmm is there an inexpensive dev/prototype board with host capability other than the at90usbkey?
[17:36:48] <prpplague> drgreenthumb: "inexpensive" is not a quantitative term. my idea of inexpensive is most likely not the same as yours
[17:37:16] <drgreenthumb> umm okay. $30 US. specific enough?
[17:37:34] <prpplague> drgreenthumb: indeed
[17:39:21] <drgreenthumb> I'm trying to talk someone out of raspberry pi if that's a good indication ;) really this thing just needs to run Dean's RNDIS ethernet host and pass things through.
[20:30:03] <OndraSterver> ookay
[20:30:11] <OndraSterver> finally I installed xchat on my server
[20:30:16] <OndraSterver> so I can log everything!
[20:30:19] <OndraSterver> wahahaaahhahahahahahaha
[20:30:20] <OndraSterver> ..
[20:30:30] <OndraSterver> but now gn
[22:05:47] <rue_mohr> dude
[22:05:49] <rue_mohr> uh
[22:05:52] <rue_mohr> !thislog
[22:05:52] <tobbor> This one: http://rueshouse.dyndns.org:82/~ircjunk/irclogs/html/%23avr-2012-06-12.html
[22:06:03] <rue_mohr> goes back to THE BEGGINING of #avr