#avr | Logs for 2012-01-13

Back
[00:00:39] <vectory> your code that is
[00:01:08] <Kevin`> http://kwzs.be/~kevin/T-2876AB.txt - might make a bit more sense with this
[00:03:40] <vectory> lemme see, port d selects the segments, port c and port b select the segmentdisplay (group). all i/o set to output (ddr=1)?
[00:04:09] <Kevin`> yeah. there's no buttons yet for input
[00:05:01] <Kevin`> I wonder if it would work to use the LED matrix as a touchscreen
[00:05:08] <Kevin`> that would ba awesome and not require any more pins
[00:08:25] <vectory> there was something about using leds as optic sensors on http://tom-itx.dyndns.org:81/~webpage/
[00:12:15] <vectory> the book i have mentions that ports are set to high impedance after reset, yet they use them as inputs Oo
[00:12:26] <rue_bed> 74595
[00:12:39] <Kevin`> inputs are high-impedance
[00:12:45] <rue_bed> or 74164
[00:13:04] <rue_bed> Kevin`, have you seen my led touch sensor?
[00:13:13] <Kevin`> rue_bed: maybe
[00:13:14] <Kevin`> ?
[00:13:32] <rue_bed> I think vectory means my site
[00:13:44] <rue_bed> !assist
[00:13:47] <rue_bed> !assist
[00:13:47] <tobbor> Possibly http://eds.dyndns.org/~ircjunk/(null)
[00:14:04] <rue_bed> hmm, maybe in avr...
[00:14:19] <vectory> didnt dare to search there
[00:14:20] <vectory> :P
[00:14:25] <rue_bed> hold up
[00:15:16] <vectory> http://eds.dyndns.org/~ircjunk/tutorials/elex/ledsensor/ledsensor.html
[00:15:21] <vectory> rue_bed: got it :)
[00:15:57] <rue_bed> http://eds.dyndns.org/~ircjunk/tutorials/elex/ledsensor/ledsensor.html
[00:15:59] <rue_bed> pff
[00:16:49] <rue_bed> ah yes, with the terrible gif animations, now I remember
[00:17:49] <vectory> does that technique work reliable?
[00:18:34] <rue_bed> it senses light level
[00:18:50] <rue_bed> you could do it with an LDR
[00:19:05] <rue_bed> but you cant make an ldr double up as an indicator
[00:26:05] <Kevin`> sleep
[01:02:47] <jadew> am I getting this wrong or on t2313 you get only 128 bytes of ram?
[01:03:53] <Casper> it is possible
[01:04:06] <jadew> damn, that's tight
[01:04:27] <Casper> that's a tiny
[01:04:45] <jadew> yeah, any idea how to figure out the available RAM at any given time?
[01:05:24] <Casper> good luck
[01:05:28] <Casper> there is no precise way to do so
[01:05:38] <jadew> I see
[01:05:45] <Casper> actually, there is no real way
[01:06:22] <Casper> it seems like the only way is to figure out how many bytes was allocated, so you know the last byte of the "start"
[01:06:29] <Casper> then look at the stack pointer SP
[01:06:40] <Casper> that one is from top to bottom
[01:07:02] <Casper> the stack contain all the variable AFTER the main started, so all non-global stuff
[01:07:17] <Casper> what is free is what is between the "bottom" and the SP
[01:07:37] <jadew> I see
[01:09:52] <ziph> Some embedded compilers can tell you how much stack each function uses and the maximum stack used as long as you don't have recursion of any kind.
[01:10:22] <jadew> can gcc do that?
[01:10:50] <ziph> Don't know, but I've never seen any references to GCC doing it.
[01:11:04] <ziph> Why do you need to know?
[01:11:32] <jadew> I'm trying send blocks of data over usb from the device
[01:11:46] <jadew> so I have to buffer some of it, till the host pc queries for it
[01:12:09] <jadew> I basically want to know how big my buffer can get
[01:12:14] <ziph> What is the data? You can often avoid buffering by generating it on the fly.
[01:12:36] <jadew> I receive it from another PC, over LPT
[01:12:43] <ziph> Ahh.
[01:12:44] <jadew> so it can't be generated
[01:23:25] <jadew> wish v-usb had better docs
[01:26:40] <ziph> jadew: LUFA has excellent documentation. :)
[01:26:47] <ziph> jadew: (And the author hangs out here)
[01:27:15] <jadew> oh, didn't know about lufa
[01:27:27] <ziph> Found the page?
[01:27:32] <jadew> yep
[01:27:43] <jadew> thanks a lot
[01:27:48] <ziph> No problem. :)
[01:29:19] <Sgt_Lemming> oi CapnKernel, you about?
[01:46:42] <CapnKernel> Sgt_Lemming: Hi there
[01:47:04] <Sgt_Lemming> so, nother component for you to find :-P
[01:48:10] <Sgt_Lemming> Li-Po battery, >400mAh, =< 90mm x 55mm x 4mm
[01:49:47] <CapnKernel> Sgt_Lemming: That will be easy :-)
[01:49:55] <CapnKernel> What kind of termination?
[01:50:31] <CapnKernel> Two pads? Welded tails? A pair of red and black plastic wires with/without a connector on the end?
[01:50:45] <Sgt_Lemming> two pads :-D
[01:52:08] <Sgt_Lemming> although wires with a micro-JST connector or similar might be good, makes it replacable
[01:55:19] <CapnKernel> I think the latter will be a little easier.
[01:55:24] <CapnKernel> Can it wait until I get back to Shenzhen?
[01:55:49] <CapnKernel> bbl
[01:57:14] <Sgt_Lemming> yeah
[01:57:18] <Sgt_Lemming> happily
[02:03:22] <mapee> morning
[03:18:01] <mrsun> putting a pin into input mode, is that like drawing it to gnd? :)
[03:23:47] <CapnKernel> mrsun: no, quite the opposite.
[03:23:57] <CapnKernel> It will be high impedance
[03:24:02] <mrsun> ahh just read it has like 100 megaohms =)
[03:24:06] <CapnKernel> It won't sink or supply corrent
[03:24:40] <CapnKernel> Each pin also has a switchable "pull-up resistor"
[03:24:54] <CapnKernel> Which is useful when the pin is in input mode but nothing is connected
[03:27:36] <CapnKernel> To use the term you used, the pull up (when turned on) will draw the pin to Vcc.
[03:30:26] <mrsun> was thinking of making a digital capacitor for a function generator =)
[03:30:36] <mrsun> thats why i asked, where one side of the caps are to go to gnd :P
[03:30:53] <mrsun> maybe some kind of latch ...
[03:31:44] <mrsun> or those transistor ICs :P
[03:39:39] <mrsun> oh is it possible to use an output as a sink then ? :P
[03:39:50] <mrsun> when its low how does that behave? :)
[04:10:01] <CapnKernel> mrsun: You're new to electronics, aren't you.
[04:10:11] <CapnKernel> Electronics doesn't work that way.
[04:10:13] <mrsun> haha, havent been in it for a very long time :P
[04:10:37] <mrsun> so i guess you could say im "new" =)
[04:10:38] <CapnKernel> If you want a "programmable capacitor", you may be interested in something called a varactor: http://en.wikipedia.org/wiki/Varicap
[04:10:41] <mrsun> forgot like everything
[04:12:29] <CapnKernel> If you want to know more about how the pins on the AVR work, you could spend some time looking at the datasheet.
[04:12:35] <mrsun> CapnKernel, all i realy wanted was to have a 8 bit variable capacitor by using fixed values and turn them on to parallel connect them =)
[04:13:23] <CapnKernel> Sounds a little like an R-2R DAC: http://en.wikipedia.org/wiki/Resistor_ladder
[04:13:40] <mrsun> yes but with capacitors =)
[04:13:54] <CapnKernel> Can you find anyone else on the internet who has done it?
[04:14:23] <mrsun> ofc i guess as its a relaxation relaxation or whatever its called i could have 3 fixed caps for low, mid and high frequency and digital pot insted :P
[04:15:02] <mrsun> CapnKernel, http://afrotechmods.com/cheap/capacitor/8bitAMradio.gif there they are running caps into a uC atleast :P
[04:16:11] <CapnKernel> http://en.wikipedia.org/wiki/Voltage_multiplier
[04:16:40] <CapnKernel> It is possible to do programmable filtering
[04:19:19] <CapnKernel> Wow, I admire that dude's web design skillz/
[04:19:34] <CapnKernel> 10 points for making me LOL
[04:30:12] <amee2k> um.
[04:30:19] <amee2k> no offense
[04:30:27] <amee2k> that digital tuner just looks ghetto >_>
[04:33:56] <amee2k> style points if you use a 74169 instead of the MCU for tuning and a ZN414 for the receiver >_>
[04:36:55] <CapnKernel> didn't you see the top-level of that website? It's intentionally ghetto!
[04:36:56] <Sgt_Lemming> http://en.wikipedia.org/wiki/Cockroft_Walton_multiplier <--- another multiplier
[04:37:02] <CapnKernel> ep
[04:37:04] <CapnKernel> yep
[04:37:33] <Bushman> ave
[04:37:38] <Sgt_Lemming> http://en.wikipedia.org/wiki/Tesla_coil <--- and another :-P
[04:39:21] <amee2k> CapnKernel: lol :P
[04:39:37] <amee2k> no, i meant the schem
[04:40:05] <CapnKernel> That too.
[04:40:27] <CapnKernel> amee2k: Got any comments about mrsun's idea?
[04:58:39] <amee2k> brb tel
[05:20:19] <amee2k> CapnKernel: so, back...
[05:20:42] <amee2k> aaah, wtf is wrong with my phone today
[05:21:09] <CapnKernel> It's turned on?
[05:21:32] <amee2k> i'd pull the plug but then the internet wouldn't work either >_<
[05:21:44] <amee2k> so, back again
[05:22:00] <amee2k> well, from what i can see he wants to use the AVR pins as open drain outputs to switch capacitors in and out of the tuner
[05:22:31] <amee2k> it'll probably work somewhat, but i don't think it'll be a precision instrument
[05:22:38] <amee2k> getting a PLL chip is probably easier
[05:23:41] <CapnKernel> Did you see the varactor idea?
[05:23:54] <CapnKernel> The AVR can generate a variable voltage via a DAC.
[05:24:18] <amee2k> you can get a ghetto DAC with a PWM channel and a bunch of low pass fitlers
[05:24:59] <ziph> You want your varactor input to be ultra low noise for RF.
[05:26:00] <amee2k> 10 LC filter stages? >_>
[05:26:11] <ziph> What frequency does he want it for?
[05:27:50] <amee2k> from the caps i'd say longwave
[05:28:10] <amee2k> the highest value is like 20nF from what i can see
[05:28:33] <ziph> DDS or DDS followed by a PLL would be the way to go there.
[05:37:54] <karlp> what's dds?
[05:38:32] <amee2k> direct dick..errr digital synthesis
[05:38:57] <amee2k> basically "use a very fast DAC and be done with it"
[05:39:26] <amee2k> if you're in china, you can use a moderately slow DAC and just pretend its fast
[05:39:31] <karlp> oh right,
[05:56:28] <amee2k> ziph: not sure you'd need that for a radio receiver. at least not if the noise is just residual switching frequency from the PWM channel
[05:57:34] <amee2k> if the switching frequency of the PWM channel is ultrasonic it shouldn't matter if it gets into the output
[06:58:08] <hetii> Hello :)
[06:58:19] <hetii> I just got an idea that i need to share
[06:59:54] <hetii> how do you think is it possible to communicate from some cheap avr to some usb wifi dongle ?
[07:00:41] <mrfrenzy> no
[07:01:00] <mrfrenzy> the cheap usb dongle needs a pc cpu to do a lot of the work
[07:01:04] <hetii> i don`t talk about the chip that have usb host inmplement inside but maybe will be possible to wrote some software emulation and have even low but working comunication
[07:01:12] <hetii> hmm
[07:02:40] <mrfrenzy> look at the source for the linux driver of some wifi chip and see if you think an avr can implement that
[07:03:00] <amee2k> why do none of the at90PWM series have TWI interfaces??
[07:03:12] <karlp> because they were designed to have more pwm?
[07:03:15] <karlp> something had to go?
[07:04:35] <amee2k> not really
[07:05:13] <amee2k> only one 16 bit timer in pwm81
[07:05:22] <amee2k> and some funny other timer
[07:07:17] <karlp> possibly because it's an old design then?
[07:07:43] <amee2k> are there any >=28 pin MCUs that don't have TWI on the ADC pins?
[07:09:47] <hetii> imagine that you can bay a RTL8188 mini usb card then reflash it and have a mini stick that allow work like ethernet <-> rs232
[07:10:21] <hetii> but i have no clue if its even possible somhow that this chip will works standalone
[07:10:31] <amee2k> imo what some MCUs really need is a small crossbar matrix to re-assign pins with conflicting functions
[07:12:25] <karlp> you mean, like lots of non-avr parts?
[07:12:58] <karlp> all the cortex m3s I've seen let you put a certain periph on as many as three different sets of pings,
[07:13:14] <karlp> pics too
[07:13:20] <amee2k> yes, like lots of other MCUs >_>
[07:14:15] <amee2k> it sometimes drives me nuts that i can't use an otherwise quite ideal part because pins block each other
[07:16:43] <OndraSter_> yap
[07:19:12] <amee2k> especially if there are pins that really can do nothing besides generic GPIO, like P2 and PD3
[07:19:23] <amee2k> PD2*
[07:20:22] <OndraSter_> what chip?
[07:33:05] <hetii> i found such chip, he is in USB interface AT90USB162-16AU, will be able to works as a driver for some usb card?
[07:37:40] <amee2k> OndraSter_: mega8/X8
[07:38:13] <OndraSter_> hetii, as in usb host?
[07:38:22] <amee2k> PD2 and 3 have nothing except for an interrupt (which almost all the GPIOs have anyway) from what i can see
[07:38:39] <OndraSter_> I don't see any other interrupt pin
[07:38:43] <OndraSter_> or am I looking at wrong chip?
[07:39:24] <amee2k> almost all the GPIO pins can be configured to trigger an interrupt
[07:39:44] <OndraSter_> http://clip2net.com/s/1tVkN
[07:39:50] <OndraSter_> this chip?
[07:40:05] <hetii> OndraSter_: unfortunalty i cannot find such information in pdf
[07:40:23] <OndraSter_> I am not sure if AVR USB devices can do USB Host/OTG
[07:40:28] <hetii> but in AT90USB128 im sure it is host
[07:40:37] <amee2k> http://ompldr.org/vYzhoYQ/pinout.png << this one
[07:41:12] <amee2k> hmm i just noticed PD3 has a timer too, but only 8 bit and the castrated kind of timer
[07:41:29] <OndraSter_> ah
[07:41:33] <OndraSter_> atmega88a :)
[07:45:45] <OndraSter_> hmm at90usb... all those registers! It is easier to grab FTDI/PL2303 and make virtual serial port :)
[07:45:50] <OndraSter_> at least for me
[07:46:19] <amee2k> last time i checked FTDI stuff was obscenely expensive
[07:46:30] <OndraSter_> I got four 232RLs for like... $10
[07:46:35] <amee2k> i've been wondering about writing firmware to make clones using attinys
[07:46:59] <OndraSter_> http://www.ebay.com/itm/IC-FT232RL-FTDI-SSOP-28-10PCS-/260810573933?pt=LH_DefaultDomain_0&hash=item3cb985886d
[07:47:01] <OndraSter_> or even this
[07:47:06] <OndraSter_> ten for $25
[07:47:21] <amee2k> over here they cost the same in EUR
[07:48:06] <amee2k> considering how much crap uses them i can't believe they cost more than 1EUR in real life
[07:48:29] <amee2k> or there is some secret source for cheap clones
[07:50:35] <OndraSter_> http://i.crackedcdn.com/phpimages/photoshop/1/8/8/3188_slide.jpg?v=1
[07:50:39] <OndraSter_> SUPER GUITAR HERO anyone? :D
[07:50:55] <OndraSter_> NOOOO
[07:50:57] <OndraSter_> NOT CLONES ANYMORE
[07:51:02] <OndraSter_> the jtag ice was bad enough :(
[07:51:21] <OndraSter_> pin supposedly for Vtg was tied to Vcc
[07:51:36] <OndraSter_> pin supposedly "not connected" (or vcc sometimes) was probably ADC input
[07:51:38] <OndraSter_> what a mess :(
[07:51:50] <OndraSter_> Dragon _works_
[07:51:59] <OndraSter_> and works great
[07:52:36] <OndraSter_> no wonder the chinese copied it wrong
[07:52:36] <OndraSter_> http://amtek.files.wordpress.com/2011/07/jtag_sch.png
[07:52:38] <OndraSter_> omg
[07:52:45] <OndraSter_> original design was wrong too lol
[07:53:03] <OndraSter_> original copy design
[09:39:39] <vectory> wonder how pins are set for charlie plexing. like this? http://paste.debian.net/152145/
[09:42:17] <vectory> wouldnt it always turn on led 1 and 5, too?
[09:43:42] <vectory> i see i didnt grasp the concept, yet
[09:46:58] <vectory> my thought behind it was, that pin3 sources current, that pin2 sinks, so current travels shortest way through led4, while pin1 is high impedant and no current flows to it. wtong?
[09:47:03] <vectory> *wrong
[09:48:04] <vectory> reading a tut now
[09:56:35] <vectory> "It's out of the scope of this tutorial to discuss the science behind the electrical" arghhh
[10:06:12] <jadew> hey guys, any idea if "out 378h, ax" would set both 378 and 379? with al and ah respectively?
[10:07:02] <vectory> are you talking x86?
[10:07:13] <jadew> yep
[10:07:28] <jadew> I used to know this stuff, but haven't written asm in ages
[10:07:45] <karlp> what on earth are you doing it again for now?!
[10:07:59] <jadew> transfering data from my old 486 sx :P
[10:08:02] <vectory> jadew, run it in a debugger
[10:08:27] <jadew> I don't have access to that pc right now
[10:08:34] <vectory> dosbox
[10:09:06] <jadew> it emulates the LPT port?
[10:09:13] <vectory> i think you are wrong, btw, will only set 378h
[10:09:18] <vectory> but i dont know
[10:09:32] <jadew> yeah, I'm not sure either
[10:11:52] <jadew> the reason why I'm asking is because I'm not sure if I should transfer 8 bites + 1 for clock, that would be ok if I could set both bytes in 1 instruction
[10:11:56] <grummund> vectory: it's pretty straigh forward, but you do have DDR wrong for pin 3 in the example
[10:12:04] <jadew> if it's not possible I'm going to go for 7 bits + 1 for clock
[10:12:36] <vectory> thx grummund, i noticed reading the example. i dont know why, tho
[10:12:50] <vectory> should current sink pull it low?
[10:13:57] <grummund> vectory: to turn On LED4, you want pin3=high and pin2=low.
[10:14:54] <grummund> however there is a risk that this will also turn on LED5 & LED1.
[10:15:17] <vectory> how about if led1 and 2's voltage drop is too big?
[10:15:33] <vectory> will it just prevent them from lighting, or can it damage?
[10:15:51] <vectory> oh i got so many questions written down :)
[10:16:36] <grummund> yep exactly. forward voltage spec. of the LEDs needs to be great enough that they will not turn on in series
[10:16:36] <vectory> *led 5 and 2
[10:16:51] <vectory> k
[10:19:46] <vectory> jadew: 328h wont work. imediat adressing only with 8 bits. you need to have the port adress in DX
[10:24:43] <vectory> 378* x)
[10:29:24] <vectory> we had half a year of x86 asm, not once mentioned in/out -_-
[10:29:32] <grummund> vectory: ignore what i said about LED forward voltage
[10:29:40] <vectory> huh?
[10:29:54] <asteve> whaut?
[10:30:36] <vectory> its not that easy, i guess, since Vf isnt precisely fixed?
[10:31:05] <grummund> it has a nominal value (and can be assumed to be fixed)
[10:31:31] <grummund> typically 2V say, for a small LED.
[10:32:18] <vectory> if supply is too high it will blow, if too low it wont glow?
[10:32:35] <vectory> im a poet
[10:32:37] <vectory> look at that
[10:32:41] <grummund> that is what the resistor(s) are for
[10:33:27] <asteve> picture all leds to be fat kids, if you don't limit the amount of cake they can consume they will eat themselves to death
[10:33:28] <grummund> say with 5V supply, you have 2V across the LED, and 3V remaining across the resistor
[10:34:22] <jadew> vectory, I know about the addressing thing
[10:34:33] <vectory> what is it
[10:34:50] <jadew> the fact that you can't have literal values bigger than 255
[10:34:54] <jadew> so you have to use dx
[10:35:05] <jadew> but that has nothing to do with my issue
[10:35:13] <jadew> brb phone
[10:35:21] <vectory> i can try in dosbox with codeview x)
[10:35:26] <vectory> dir
[10:35:32] <vectory> he
[10:35:39] <vectory> alt+tab
[10:35:51] <grummund> vectory: the current flows pin3 --> resistor --> LED4 --> resistor --> pin2
[10:36:15] <grummund> when pin3 is 5V, and pin2 is 0V.
[10:36:22] <vectory> yes
[10:36:58] <grummund> the LED wants 2V (fixed), and the remaining is shared between the resistors, 1.5V each.
[10:37:07] <grummund> 1.5 + 2 + 1.5 = 5
[10:37:09] <grummund> ok?
[10:38:20] <vectory> well, yes
[10:46:15] <vectory> damn, i accidentally my masm folder together with windows );
[11:06:39] <vectory> bb
[12:18:26] <impulse32> what's the name of that windows terminal program everybody loves?
[12:18:39] <impulse32> the one that has fonts for unreadable ascii characters?
[12:18:53] <asteve> cygwin?
[12:19:01] <impulse32> no
[12:19:03] <impulse32> it's native
[12:19:03] <eatyourguitar> you can just read in hex
[12:19:17] <eatyourguitar> with an ascii map open in another window
[12:20:05] <eatyourguitar> there are like 20 different characters for space
[12:20:21] <Casper> hyper terminal?
[12:21:48] <eatyourguitar> in linux the script would be very small to display things in hex and asii at the same time.
[12:22:04] <impulse32> using xxd?
[12:22:23] <eatyourguitar> using perl, python, unix, anything
[12:22:37] <impulse32> yea
[12:22:40] <impulse32> i don't use windows
[12:22:42] <impulse32> this is for someone else
[12:22:55] <eatyourguitar> in linux your script can read and write to a port as if it were a text file.
[12:23:55] <eatyourguitar> this means you can have a small script that does some print(ascii(hex(dev/ttys0)))
[12:31:02] <amee2k> py err putty ... something?
[13:16:04] <OndraSter_> http://dl.dropbox.com/u/3936936/all_brd.png
[13:16:11] <OndraSter_> now, suggestions, what can be doing problems
[13:16:22] <OndraSter_> it will be either 16MHz or 8MHz clocked
[13:16:29] <OndraSter_> probably 16MHz, SPI will go 8 or lower
[13:16:45] <OndraSter_> I know, IT IS MESS
[13:20:44] <RikusW> be carefull of clocking spi too high....
[13:21:04] <RikusW> first get it working at low speed then try going higher
[13:22:37] <OndraSter_> yes
[13:22:50] <OndraSter_> I can be flushing data to SPI at few kHz just fine
[13:23:19] <OndraSter_> higher would be needed just for external peripherals
[13:23:37] <OndraSter_> I took out one whole port (PortD), SPI, and the remainings of two ports
[13:23:49] <RikusW> check the max supported spi clock of the peripherals...
[13:24:02] <OndraSter_> 8MHz for the A6275s I think
[13:24:04] <OndraSter_> either 8 or 20
[13:24:20] <RikusW> avr got a clock / 4 limit...
[13:24:25] <RikusW> for slave mode
[13:24:28] <OndraSter_> 20 actually
[13:24:33] <OndraSter_> clock/2 for master
[13:25:08] <OndraSter_> I am wondering how you can push 2MBaud on UART with 16MHz crystal, since one baud requires > 8 bits...
[13:25:14] <RikusW> going over 1MHz require good wiring
[13:25:53] <OndraSter_> 1MHz or 1MBaud?
[13:26:22] <RikusW> talking about spi, but it probably applies to uart too...
[13:26:38] <OndraSter_> ah
[13:26:48] <RikusW> having a split in the wire, especially if one end isn't connected is _bad_
[13:26:57] <OndraSter_> split?
[13:27:04] <OndraSter_> like not connected MISO or MOSI?
[13:27:05] <RikusW> a T
[13:27:32] <OndraSter_> well we'll see
[13:27:36] <RikusW> or connecting multiple devices
[13:27:50] <OndraSter_> first board will be prototype for me, the second board will be for school, with fixed all bugs that will occur
[13:27:51] <OndraSter_> (hopefuly none)
[13:28:04] <RikusW> it might cause trouble at higher speeds like 8MHz
[13:30:48] <OndraSter_> I just hope that the RAM won't be having problems
[13:30:53] <OndraSter_> I don't know WHO designed the pinout of the SRAMs
[13:30:57] <OndraSter_> but he clearly wasn't clever man
[13:31:01] <OndraSter_> the pinout is just crazy
[13:31:06] <OndraSter_> (I know, it "expands" lower sizes, but still)
[13:31:44] <RikusW> using m128 ?
[13:31:56] <OndraSter_> ye
[13:31:58] <OndraSter_> 128a
[13:32:13] <RikusW> why the need for more ram ?
[13:32:28] <OndraSter_> need to store 32+kB worth of data :)
[13:32:43] <RikusW> you did use a 573 latch ?
[13:32:48] <OndraSter_> ye
[13:34:00] * RikusW have 2 boards here used for gps/gprs tracking, got a m128l + 64kb ram + battery charging ic
[13:34:48] <RikusW> gps/gprs go on a top board
[13:34:48] <RikusW> which I don't have..
[13:34:48] <OndraSter_> I actually used 128kB SRAM, since 64kB ones were way more expensive lol
[13:34:48] <OndraSter_> and, for future possibilities, I added bank switching possibility
[13:34:48] <OndraSter_> (manual ofc)
[13:34:48] <OndraSter_> via PE3 pin I think
[13:34:49] <OndraSter_> or smth
[13:34:49] <OndraSter_> to the A16 bit
[13:34:49] <RikusW> did you connect the extra address lines to other io pins ?
[13:34:59] <OndraSter_> sure
[13:35:03] <RikusW> nice
[13:35:08] <OndraSter_> one board is for me
[13:35:11] <OndraSter_> and the other one is for school
[13:35:18] <OndraSter_> the chief asked me if I could make one more board for them ;D
[13:35:34] <OndraSter_> the director of the school
[13:35:38] <RikusW> what will it be used for ?
[13:35:40] <OndraSter_> I am doing it as a graduation project
[13:35:47] <OndraSter_> it is huge LED display :P
[13:35:50] <OndraSter_> 32x48 bi-color
[13:36:45] <RikusW> 1536 leds... sounds expensive ;)
[13:36:53] <OndraSter_> 3072
[13:36:58] <OndraSter_> 8x8 matrices
[13:37:16] <OndraSter_> $35 for box of 25 matrices, I am using only 24
[13:38:00] <OndraSter_> bi-color... red & green
[13:39:00] <RikusW> smd leds ?
[13:39:21] <OndraSter_> no idea, it is packed in boxes
[13:39:32] <OndraSter_> http://www.ebay.com/itm/25-LED-Dot-Matrix-24pin-8x8-3mm-Red-Green-Common-Anode-/250971580475?pt=LH_DefaultDomain_0&hash=item3a6f12683b
[13:41:29] <Kevin`> I suppose that's less work than manually placing the leds :)
[13:41:36] <OndraSter_> haha
[13:41:38] <OndraSter_> yap
[13:41:57] <OndraSter_> what is driving me mad is the fact that RG matrix = about $1.something per piece
[13:42:02] <OndraSter_> RGB matrix = about $12.5 per piece :(
[13:42:45] <RikusW> blue is expensive
[13:42:58] <Kevin`> not THAT expensive
[13:52:22] <OndraSter_> Kevin`, compared to RG, it IS expensive :P
[13:54:55] <Kevin`> what I mean is, the cost difference is from something else, not just from having blue leds
[14:01:26] <Kevin`> my device in it's current state nicely counts the amount of time i've spent not working
[14:03:26] <Kevin`> (1:28:25)
[14:06:48] <OndraSter_> is that timer that measures how long is opened redtube/xvideos, Kevin` ? :D
[14:08:48] <Kevin`> no, it counts how long it's been since it was last reset / power was applied. basically, since I last uploaded a new firmware version to it
[14:09:04] <OndraSter_> ah
[15:07:13] <macobo> Quick question - is it possible to have a output (such as PB4 from) resonate the clock?
[15:08:02] <asteve> you want something that is controlled by the clock to control the clock?
[15:09:46] <macobo> that is controlled by the clock (shift register)
[15:10:55] <asteve> you want the clock to clock itself?
[15:13:58] <macobo> I don't understand what you mean - shift registers need clock to be given to a certain input. I'm using a board similar to some attiny without the clock being brought out as a pin, so I wondered if it was possible to make some outputs of the atmega resonate like the clock. :)
[15:19:13] <Casper> look up PWM
[15:19:24] <Casper> 50% PWM probably
[15:19:25] <Casper> or
[15:19:30] <Casper> use synchronious uart?
[15:19:59] <amee2k> SPI comes to mind
[15:20:59] <macobo> Casper: crafty. Didn't think of that.
[15:22:25] <Casper> . . .
[15:22:33] <Casper> 697 megs of compressed drivers!
[15:22:45] <amee2k> only?
[15:23:14] <Casper> yeah... for one laptop
[15:24:14] <Casper> wireless driver.... 241 megs...
[15:24:53] <amee2k> welcome to china
[15:24:58] <amee2k> thats industry quality for ya.
[15:25:20] <Casper> intel driver!
[15:25:56] <amee2k> thats what she said
[15:25:57] <Casper> ind you.... you can have a full featured linux distro that is smaller that the driver pack
[15:26:00] <Casper> and
[15:26:08] <Casper> it include the drivers!
[15:26:34] <amee2k> it include the drivers and like 5 web browsers, and office suit, email client and whatever
[15:26:43] <Casper> yup
[15:26:51] <Casper> and 2 dowzen of games
[15:27:06] <amee2k> when you install windows you install for an hour. then you install everything else for another 3 hours
[15:27:16] <Casper> worse
[15:27:27] <Casper> have you installed a windows vista on a laptop recently?
[15:27:53] <amee2k> i haven't installed windows vista since it was called longhorn beta :P
[15:28:21] <Casper> it's a 10-12 hours job for windows + drivers + updates
[15:28:44] <amee2k> when i was into windows it was still 2k and xp and these had a way of training their users
[15:29:01] <amee2k> so after a while you get used to reinstalling and don't really care anymore
[15:29:12] <amee2k> same as you get used to rebooting
[15:29:18] <Landon> But Windows 8 will be even better! It'll have the reinstall button :)
[15:29:31] <amee2k> shrug
[15:29:31] <Casper> but it won't have the start menu!
[15:29:55] <amee2k> until i'm done studying i hopefully won't have to touch that shit anymore
[15:31:06] <Casper> I'm a tech guy... so... I'm tortured....
[15:31:29] <Casper> and it's annoying that microsoft is so braindead
[15:31:34] <amee2k> go to uni instead?
[15:31:50] <Casper> like today, I have a computer... the idiot... he installed 3 antivirus
[15:31:59] <Casper> and they ended up conflicting each others
[15:32:21] <Casper> safe mode work, but not normal
[15:32:29] <amee2k> lol
[15:32:46] <Casper> you go in safemode, try to remove the microsoft av (windows defender).... it can not uninstall in safemode
[15:33:23] <amee2k> i'd just shove in the disk and reinstall lol
[15:38:43] <Casper> weird
[15:38:50] <Casper> that laptop don't have amodem!
[15:40:35] <Kevin`> macobo: why are you feeding an asyncrhnous clock to a shift register? where's the data coming from?
[17:51:54] <Landon> does anyone have Designing Embedded Hardware?
[18:54:06] <huetti> hi
[18:55:01] <huetti> is there somebody who uses the jtagice mkii-cn from mcuzone ?
[18:59:14] <jadew> how do you set up a PCINT on rising edge? by looking at the MCUCR register I can only see how to do it for INT0 and INT1
[20:14:27] <inflex> jadew: you can't
[20:14:33] <inflex> jacekowski: PCINT only works on -change-
[20:14:41] <jadew> got it, thanks
[20:14:54] <inflex> np
[20:15:33] <jadew> now another question, is there any way to reliably use interrupts while running a soft usb driver?
[20:16:18] <jadew> I keep losing packets (that get signaled trough interrupts) while I'm querying the device over usb, that's because the other interrupts get discarded while the usb interrupt is running
[21:07:24] <Casper> jadew: interrupt can only be set once, not twice or more
[21:07:53] <Casper> so if you interrupt happend more than once while your other interrupt is executed, then you will lose interrupt
[21:20:08] <rue_house> depends what the prioritites on your interrupts are
[21:30:26] <ferdna> i have a 62mm round lens... i want to make it 60mm how can i do it with out scratching the lens? =/
[21:33:37] <Roklobsta_> does the osft usb driver have to be entirely executed in an interrupt or can the usb interrupt put some sort of low level usb event into a queue for the driver to handle later?
[21:40:36] <inflex> ferdna: likely you'll destroy it tyring to do so.
[21:42:01] <ferdna> i thought so... thats why i drop the question here so you guys could suggest methods/ideas etc
[21:44:10] <inflex> cheaper/simpler likely to just buy a 60mm unit, or make an adaptor, or send it to a lens grinding service and have them do it
[21:57:43] <Casper> inflex: anyway it won't work for him
[21:58:14] <Casper> he want to see the UV light with his naked eye, which are invisible... so unless he use some specialised camera, it won't work
[21:59:12] <inflex> umm yeah... or gets a cataract / cornea replacement
[22:00:12] <inflex> anyhow, if the lens is glass, it'll be opaque irrespective... need quartz to have any hope.
[22:01:43] <Casper> he said he have plastic one, I said to cover with masking tape, mark the quantity to remove on the tape and use a dremel or a grinder...
[22:02:08] <Casper> ferdna: be sure that it's not an UV remover filter, usually when they talk about filter it's to remove a component
[22:02:10] <inflex> oh right, plastic lens, sure yeah
[22:03:45] * inflex thought it might have been some exotic selenium-glass or such
[22:04:38] <ferdna> inflex... i want a lense... that does exactly this
[22:04:40] <ferdna> http://www.youtube.com/watch?v=H2-nP2xl9Zg&feature=player_embedded
[22:05:03] <ferdna> he is using this type of sheet gels...
[22:05:11] <ferdna> but i would like something already made...
[22:05:47] <ferdna> actually this are infrared...
[22:06:05] <Casper> those are NOT infrared
[22:08:05] <Casper> to see infrared, you need to convert the IR into visible light. those lense do NOT do it
[22:09:48] <Kevin`> Roklobsta_: remember that the software usb driver is software, it's driving the pins directly for each bit, not using a controller
[22:12:08] <Kevin`> kipkay does mostly completely stupid things
[22:13:10] <Kevin`> your eyes can see some infared though
[22:22:29] <Casper> some, but not enought to be usefull
[22:22:39] <Casper> and not everybody does
[22:23:57] <Tom_itx> GP says Jan 13 is the cutoff for small orders before CNY
[22:29:46] <inflex> Tom_itx: amusingly, I received that notice on Jan 13.
[22:30:25] <Tom_itx> same here
[22:37:39] <Roklobsta_> kevin`:yick nasty compromise. is there time in an avr to get anything else done?
[22:39:39] <Kevin`> Roklobsta_: there's a little time, yes, but you probably have to respond to incoming data instantly, if only to actually receive it
[22:39:56] <Casper> Roklobsta_: or use true usb parts
[22:40:05] <Kevin`> Roklobsta_: you know there's devices with hardware usb controllers, right? and they will do full-speed too
[22:40:12] <Roklobsta_> yes.
[22:40:27] <Roklobsta_> i am starting with avr. if i do use usb I'll just whack an ftdi chip on.
[22:40:39] <Kevin`> there are avr chips with usb support
[22:41:16] <Casper> the problem with usb on non-usb is that you have to do all the signaling in software, that take almost all the ressources of the avr
[22:41:42] <Roklobsta_> casper: right. does lufa support both usb and non usb native avrs?
[22:41:59] <Casper> afaik, no
[22:41:59] <Kevin`> Roklobsta_: lufa, afaik, only supports chips with hardware usb
[22:42:35] <Roklobsta_> yeah I had a squiz at it - not in detail - audio support is there and would need hardware usb.
[22:42:50] <Roklobsta_> i guess software usb is best for HID stuff and slow serial.
[22:53:09] <Casper> software is not best, it's a dirty hack
[22:53:22] <Kevin`> http://kwzs.be/~kevin/P1130001.AVI - cmos logic is fun (no processor connected)
[22:53:28] <Casper> 115200 has been done with software