#avr | Logs for 2012-06-24

Back
[00:54:48] <jnh> Hi all.
[00:55:00] <theos> hi
[00:55:31] <jnh> I'm using an ATmega32U4 for my project - it has three on-board timers; I'm trying to figure out if I can drive 9 PWM outputs from it and still have a timer available to use as an ISR
[00:55:37] <jnh> I'm guessing no.
[00:55:59] <theos> why not?
[00:56:25] <theos> even a 555 can do pwm :P
[00:56:28] <jnh> Can you use a timer for an ISR and PWM at the same time?
[00:58:35] <jnh> - all the discussion of timers I can find online isn't clear on that.
[01:11:26] <Xark> jnh: I believe so. The interrupt on overflow bit is orthogonal to the PWM generation (AFAIK - I am not an AVR expert). If not, then there would be issues with Arduino Timer 0 interrupt and pins 5 & 6 using timer0 PWM...
[01:13:53] <jnh> right.
[01:42:42] <SuperMiguel> is the dragon any good?
[02:04:35] <inflex> it's a good general purpose programmer, yes
[02:04:40] <inflex> the HV facility is quite useful too
[02:04:57] * inflex now abuses HV RST simply to save him putting another resistor on the boards
[02:05:11] <inflex> (yes, I'm that lazy/stingy that it makes a differencein my life)
[03:06:11] <tmpvar> so I've setup a grid of potentiometers with rows being powered by digital outs and columns being fed into analog ins. When I turn all of the pots in a column all the way up, I'm seeing a voltage drop. Does anyone know how much voltage the analog pins on an atmega32u4 sink?
[04:10:58] <CapnKernel> tmpvar: You don't "sink" voltage.
[04:11:49] <OndraSter> haha voltage flowing!
[04:11:55] <OndraSter> and it is measured in ohms!
[04:12:24] <CapnKernel> On many AVRs, you can sink/source 40mA of current per pin, for a maximum of 100mA per 8-bit port, and 200mA combined across all ports.
[04:12:44] <OndraSter> yeah
[04:12:45] <CapnKernel> OndraSter: hi
[04:12:48] <OndraSter> hey CapnKernel
[04:14:00] <CapnKernel> tmpvar: You may be less confused if you think of voltage by its alternative name: "potential difference".
[04:14:25] <CapnKernel> It's inherently a measure of something between two points, not of a flow.
[04:14:48] <OndraSter> <CapnKernel> tmpvar: You may be less confused if you think of voltage by its alternative name: "potential difference".
[04:14:50] <CapnKernel> The ADCs in the AVR can measure a potential difference for you.
[04:14:52] <OndraSter> this is what helped me at school
[04:15:09] <OndraSter> many times
[04:15:32] <CapnKernel> Usually that potential difference is between the input pin, and ground. (The AVR ADCs have other modes, but let's not go into that.
[04:16:26] <CapnKernel> And you will usually set the ADC input put to be hi-Z, in other words, it will neither sink nor source current.
[04:16:38] <CapnKernel> tmpvar: You there, or am I pissing into the wind again?
[04:17:55] <CapnKernel> Because the problem of setting the pin for the ADC to sink current is that you'll be measuring the sink point, which will be pretty close to zero. You don't want that.
[04:18:22] <CapnKernel> Two suggestions for you, in order to make your circuit work.
[04:19:01] <CapnKernel> The first is that each pot, with its three wires, should be wired thus: One side: digital out. Other side: Ground. Centre wiper: The ADC input.
[04:19:47] <CapnKernel> The second is that you must set one (and only one) digital out to HIGH (current source) at any one time. All the rest should be set to high impedance (Hi-Z).
[04:20:37] <CapnKernel> If you use this arrangement, the pot will form a variable voltage divider. The ADC will measure the centre point, and varying the pot will vary the voltage. You Want This.
[04:21:13] <CapnKernel> You will need to write your software so you set your one and only output, then read from the different ADC pins in turn.
[04:21:45] <CapnKernel> Curiously enough, there's only one ADC inside the AVR - it just appears that there's more than one because the AVR has an internal multiplexor.
[04:22:08] <CapnKernel> After you change the multiplexor, it takes time for the circuit to settle down.
[04:22:34] <CapnKernel> So it may be an idea to set up the ADC input pin (which means setting the multiplexor), then iterating through the digital outs.
[04:22:48] <CapnKernel> Then change the mux to the next input pin, and repeat.
[04:23:58] <CapnKernel> I would suggest choosing the resistance of the pot to be a reasonably high value, such as 100k, in order to reduce the current the AVR needs to supply. You don't need a lot, event a few nanoamps will be enough.
[04:26:09] <CapnKernel> V = IR => I = V / R = 5 / 100k = 50uA
[04:29:21] <CapnKernel> Pots have a characteristic called "taper". The resistance of linear taper pots will vary linearly with rotation, whereas the resistance of log taper pots will vary logarithmically. You need to say which one when you're buying them. If you're controlling audio volume, use a log taper pot. If you're controlling something else, like movement or tempo, use a linear taper pot.
[04:29:37] <CapnKernel> There, I'm done now.
[04:29:47] <CapnKernel> OndraSter: I was pissing into the wind, wasn't I!
[04:32:18] <CapnKernel> tmpvar: Can I have my 20 minutes back now please?
[04:35:01] <OndraSter> yeah you were, CapnKernel :)
[04:35:30] <CapnKernel> tmpvar by name
[04:35:35] <CapnKernel> Any problem with what I said?
[04:37:35] <tmpvar> CapnKernel, wow, thank you
[04:41:43] <CapnKernel> tmpvar: Now read it carefully, and if you have questions, ask.
[04:42:21] <OndraSter> http://www.youtube.com/watch?v=H_Dtsx-VGG0&feature=player_embedded
[04:44:10] <CapnKernel> OndraSter: I'm in China you insensitive clod! :-)
[04:44:20] <OndraSter> :D
[04:44:26] <OndraSter> no ytb for china?
[04:44:47] <CapnKernel> No, as it may Undermine Social Stability and we Can't Have That.
[04:44:51] <OndraSter> oh
[10:34:20] <RikusW> specing: In South Africa, carrier pigeon faster than broadband | ZDNet ----> http://www.facebook.com/l/VAQFjhAjw/www.zdnet.com/blog/btl/in-south-africa-carrier-pigeon-faster-than-broadband/24093 :-D
[10:36:50] <specing> Dude
[10:37:01] <specing> It is totally uncool to post facebook links
[10:38:02] <RikusW> yeah, thats the only link I have....
[10:38:28] * RikusW almost never goes on FB anymore, its way too slow :-/
[10:38:47] <OndraSter> use better interwebz
[10:39:20] <RikusW> Only GPRS available here
[10:39:39] <RikusW> unfortunately the Wifi internet tower is not in line of sight....
[10:39:48] <specing> RikusW: you should start training pigeons
[10:40:17] <RikusW> maybe horses can carry more data :-P
[10:44:03] <RikusW> specing: so whats wrong with FB ?
[10:46:20] <RikusW> http://infiniteundo.com/post/25326999628/falsehoods-programmers-believe-about-time
[10:49:54] <theos> i deleted my FB account a few days ago
[10:50:02] <theos> orkut, linkdin too
[10:51:20] <RikusW> why ?
[10:54:46] <theos> got bored
[10:55:47] <theos> its either someone trying to make money by using my resources or there are useless people there
[11:09:59] <RikusW> http://www.wired.com/wiredenterprise/2012/06/beard-gallery/?viewall=true
[11:40:02] <theos> best one "Grace Hopper, inventor of Cobol and the exception that proves the rule"
[11:41:07] <RikusW> theos: http://www.technologyreview.com/featured-story/428150/what-facebook-knows/ :-P
[11:49:52] <wopi> Hi People, how I can convert a byte to string, for example 0xFF to "255" ?
[11:50:55] <LoRez> ord
[11:51:03] <LoRez> er...
[11:51:11] <LoRez> string?
[11:51:37] <LoRez> sprintf ord
[11:52:34] <Corwin> ^ how about itoa() ?
[11:52:37] <Tom_itx> http://www.amelek.gda.pl/avr/libc/avr-libc-reference.html
[11:55:03] <theos> RikusW i knew from the beginning that facebook is a social engineering experiment. i never wrote anything real there :P everything was fake
[11:58:16] <Kevin`> Corwin: itoa isn't a standard c function, it's a microsoft-ism. you can use printf for the same thing though, or a code snippit for it
[11:59:35] <Corwin> i know... but if its only for converting numbers to their textual representation i think few lines of itoa() code is better than linking printf() library
[12:03:14] <Kevin`> sure, add it if you need to. just don't expect it to exist beforehand :)
[13:11:28] <RikusW> Martyn: figured out those crypto avrs yet ?
[13:11:34] <Martyn> yep!
[13:11:37] <RikusW> *smartcard
[13:11:49] <Martyn> I had to get a reverse-engineered key
[13:12:01] <Martyn> but a company was willing to extract the key from the ones I had, and now I can program them
[13:12:06] <Martyn> they are still basically AT90's
[13:12:14] <Martyn> but there are only 2 gpio pins...
[13:12:50] <Martyn> and you can -either- use them as GPIO, OR as TWI, or sacrifice one other pin and get SPI
[13:12:58] <Martyn> so they have limited usefulness to me
[13:13:14] <Martyn> Oh, and they are damned hard to erase
[13:13:21] <RikusW> SPI flash / eeprom / ram ?
[13:14:02] <Martyn> I've been using it for SPI sensor
[13:14:04] <RikusW> seems like they would be as usefull as tiny10
[13:14:10] <Martyn> meh
[13:14:17] <Martyn> not really
[13:14:37] <RikusW> how much flash ? 64k ?
[13:14:47] <Martyn> I have since purchased 4,500 atmega 168's (10AU, low voltage p parts)
[13:14:53] <Martyn> yep 64/64
[13:15:07] <Martyn> they have huge capacity, but no really useful ways of talking to the outside works
[13:15:11] <Martyn> world
[13:15:12] <RikusW> 4500 m168 ?!! what for ?
[13:15:44] <RikusW> seems like they would make a good TWI flash/eeprom device
[13:15:45] <Martyn> .. everything :)
[13:15:51] <Martyn> m168's are awesome
[13:15:55] <RikusW> why soooooooooo many ?
[13:15:57] <Martyn> and I have TQFP32's
[13:16:06] <Martyn> Because they only cost me a -fraction- of their worth
[13:16:19] <Martyn> and now I have enough to make ..well.. any arduino-compatible thing I want
[13:16:29] <RikusW> what did you pay for that ?
[13:16:34] <Martyn> not going to say :)
[13:16:41] <Martyn> But very, very low
[13:16:44] <specing> :O
[13:16:59] <Martyn> enough that I can sell them on the hackerspace website for $1.50 :)
[13:17:03] <Martyn> store.atxhs.org
[13:17:09] <Martyn> er, store.atxhackerspace.org
[13:17:17] <Steffanx> Arduino-compatible … $$$$ Martyn :P
[13:17:31] <RikusW> thats fairly cheap
[13:17:38] <RikusW> I paid 2Euro for 2 m168's
[13:17:44] <RikusW> 2E each
[13:18:00] <OndraSter> will you have customers like this? http://media.peopleofwalmart.com/wp-content/uploads/2012/06/3942.jpg
[13:18:22] <Steffanx> The first webshop that needs photos of it's customers .. OndraSter ?
[13:18:29] <OndraSter> just check the link :D
[13:18:33] <Steffanx> Yes, i did
[13:18:57] <Steffanx> I know that webste
[13:20:42] <Martyn> In fact -- hey
[13:20:45] <Martyn> I'll even LOWER the price
[13:20:55] <Martyn> done
[13:21:13] <Steffanx> lol
[13:22:17] * electronics-cat :3
[13:22:20] <RikusW> Martyn: is that plain m168 or p / pa ?
[13:22:20] <Martyn> There.
[13:22:31] <Martyn> $1.15 for one->ten
[13:22:40] <Martyn> $1.00 for 50 or more
[13:22:50] <Martyn> (per unit)
[13:23:02] <Martyn> 168p 10AU
[13:23:11] <Martyn> surface mount, TQFP32
[13:23:49] <RikusW> TQFP32 is rather easy to solder, provided you make a pcb for it
[13:24:08] <Martyn> Plus, I ship them in Altoids tins if you buy 10 or more
[13:24:27] <Martyn> well, altoids or Dr. Doolitle tins :)
[13:24:37] <Martyn> <-- altoids feind
[13:25:42] <RikusW> Martyn: so did you actually manage to get that smartcard avr datasheet ?
[13:26:30] <Martyn> Yes
[13:26:37] <Martyn> It took bloody forever, and asking the right questions
[13:26:40] <Martyn> but I did get it
[13:27:08] <Martyn> which is how I found out I needed a key to unlock the chips for programming
[13:28:30] <RikusW> so does it use some custom programming protocol ? or something more or less like ISP ?
[13:32:19] <CapnKernel> OndraSter: Re pic: "one ton pickup"
[13:49:24] <Martyn> RikusW: Simple protocol .. it's the same as all other AT90's
[13:49:35] <Martyn> RikusW: You just have to send an "unlock" packet first.. I had to modify AVRdude
[13:50:39] <RikusW> ah, so ISP + a command with the key ?
[14:15:41] <OndraSter> gkhl
[14:15:52] <Corwin> stop drinking that
[14:20:06] <OndraSter> I wish
[14:35:46] <Corwin> i wish i knew what to use as new avatar picture... my current one is over a year old now
[14:40:00] <RikusW> an AVR chip :-P
[14:40:13] <Corwin> heh... no
[14:52:31] <OndraSter> Corwin, I am using Dr. Incredible :)
[14:52:32] <OndraSter> on XDA
[14:52:38] <OndraSter> on other forums I am using Rodney
[14:53:39] <RikusW> McKay ? ;)
[14:56:07] <OndraSter> yes
[14:57:02] <RikusW> seems like you're a big fan ;)
[14:57:28] <OndraSter> yes
[14:57:35] <OndraSter> I even met Zelenka
[14:57:39] <RikusW> of Dr BlowupPlanets :-P
[14:57:45] <OndraSter> :D
[14:58:14] <OndraSter> he was few years back on "czech comic-con"
[14:58:19] <OndraSter> or how to describe it :D
[14:58:49] <RikusW> you mentioned that, so how long were you able to chat with him ?
[14:58:56] <OndraSter> just met
[14:59:00] <OndraSter> ;D
[14:59:09] <OndraSter> you seem to have really good memory
[14:59:37] <RikusW> when it comes to AVR and SG1/SGA yes :)
[15:00:14] <OndraSter> :D
[15:00:19] <`Wedge_> reminds me. I haven't watched any Stargate except universe for a long time ago
[15:00:32] <OndraSter> neither did I
[15:00:57] <RikusW> I only have SG1 S1+S2.... :-/
[15:01:16] <RikusW> might get the other seasons in a few months
[15:01:18] <OndraSter> I have private torrent tracker for that :D
[15:01:22] <`Wedge_> I have all SG-1 and SGA
[15:01:36] <OndraSter> hmm I think that my brother burned it all on DVDs
[15:01:37] <OndraSter> but
[15:01:41] <OndraSter> I don't have DVD drive anymore
[15:01:55] <RikusW> why no DVD drive ?
[15:01:56] <OndraSter> only external one under all the electronics on the table
[15:02:07] <OndraSter> why any DVD/BD/HDDVD drive?
[15:02:13] <OndraSter> I don't like optical mediums
[15:02:16] <OndraSter> I don't use optical medium
[15:02:17] <OndraSter> s
[15:02:45] <RikusW> so you only use external HD ?
[15:02:52] <RikusW> or flash ?
[15:03:01] <OndraSter> I use my internet connection
[15:03:07] <OndraSter> but yes, external HDD most of the time
[15:03:14] <OndraSter> because I can't always find my 2GB flash drive :D
[15:03:21] <RikusW> ah, but I only have gprs...
[15:03:25] <OndraSter> ah
[15:03:29] <OndraSter> 20Mbit half-duplex here
[15:03:52] <RikusW> wow
[15:03:59] <OndraSter> $17/month approx
[15:04:04] <RikusW> uncapped ?
[15:04:07] <OndraSter> I share the line with other people
[15:04:08] <OndraSter> yes
[15:04:17] <OndraSter> but whenever I am downloading something, I am lucky to get over 2MB/s
[15:04:19] <RikusW> NICE ! :)
[15:04:34] <OndraSter> I think we have something around 60 - 80Mb/s down for 650 people
[15:04:34] <RikusW> I'm lucky to get 8kb/s
[15:04:38] <OndraSter> heh
[15:04:47] <OndraSter> you don't want some Atmel datasheets
[15:04:48] <OndraSter> :D
[15:05:04] <RikusW> I already have the atmel library cd :)
[15:05:12] <OndraSter> how do you update it? :P
[15:05:20] <RikusW> I don't
[15:05:45] <OndraSter> but man, I'd die being on GPRS
[15:05:52] <RikusW> apart from a few avrs like m324a, m328 and m32u2
[15:06:06] <OndraSter> I sometimes connect over my phone where I hold record @ 6Mbit (Vodafone HSDPA)
[15:06:11] <OndraSter> far away from Prague
[15:06:21] <OndraSter> usual is 2 - 3Mbit in Prague
[15:06:38] <RikusW> I also use Vodacom aka Vodafone
[15:07:25] <`Wedge_> heh, 8kb/s
[15:07:50] <RikusW> I pay about 1Euro for 20MB....
[15:07:58] <OndraSter> woah
[15:08:05] <`Wedge_> I remember when I first got ADSL 256kbit, it was amazing to see your speed going higher than dial-up for the first time :D
[15:08:12] <OndraSter> I pay $7.5 for 600MB FUP on phone
[15:08:16] <OndraSter> :D
[15:08:32] <OndraSter> I simply called carrier "what should I do when I want to transfer my phone # to another network" ;D
[15:08:37] <OndraSter> two days later phone rings
[15:08:42] <OndraSter> "hey we can offer you 50% discount"
[15:08:43] <RikusW> that is 5E / 100MB, the larger bundles is about half that price
[15:08:44] <OndraSter> "okay"
[15:11:20] <RikusW> I could get 1.5GB/month for 15Euro but its a 24 month contract
[15:11:37] <OndraSter> screw contracts
[15:11:41] <RikusW> thats too much for surfing and too little for movies...
[15:12:39] <RikusW> and downloading 1.5GB over gprs, well....
[15:12:50] <OndraSter> heh
[15:13:09] <OndraSter> that's 54.6 hours
[15:13:13] <OndraSter> @ 8kB/s
[15:13:50] <RikusW> I could actually download 20GB when I do it 24/7 * 30
[15:14:57] <RikusW> but the speed isn't always 8kb/s....
[15:17:39] <RikusW> OndraSter: how does your $ relate to Euro / usd ?
[15:17:53] <OndraSter> I am using american bucks
[15:17:55] <OndraSter> for comparison
[15:17:57] <OndraSter> we have CZK
[15:18:06] <OndraSter> 20CZK = $1
[15:18:12] <specing> RikusW: your nets suck :P
[15:18:22] <RikusW> it does :(
[15:18:49] <RikusW> My brother at uni got 4MBit adsl
[15:19:06] <OndraSter> Mbit or MByte?
[15:19:13] <specing> Bit dude
[15:19:17] <specing> it says bit
[15:19:18] <RikusW> MBit
[15:19:21] <specing> lol
[15:19:22] <OndraSter> it says MBit
[15:19:30] <specing> exactly
[15:19:35] <RikusW> 4096kbps
[15:19:41] <OndraSter> it is like saying MSB when you are talking about most significant bit
[15:19:46] <OndraSter> it should be MSb and LSb :P
[15:19:51] <OndraSter> RikusW, ok :D
[15:20:03] <specing> Maybe Im talking about the most significant byte
[15:20:09] * specing slaps OndraSter
[15:20:18] <OndraSter> specing, "when you are talking about most significant bit"
[15:20:24] <RikusW> how about msn/lsn ? :-P
[15:20:38] <OndraSter> let alone when it is some 8bit micro with 8bit registers :P
[15:20:42] <OndraSter> RikusW, heh
[15:20:57] <RikusW> you know what msn/lsn is ?
[15:21:16] <RikusW> nibble...
[15:21:28] <RikusW> 4 bits
[15:21:28] <OndraSter> I thought it was "number"
[15:21:37] <OndraSter> nibble didn't come up my mind :D
[15:22:17] <RikusW> AVR got a nice SWAP nibbles instruction
[15:22:28] <OndraSter> yes
[15:22:31] <OndraSter> I used it few times
[15:22:37] <RikusW> can be usefull for >>= 4 or <<= 4
[15:22:52] <OndraSter> I used it when I was converting hex to ascii and the other way around
[15:28:08] <Tom_itx> used on lcds alot
[15:28:11] <Tom_itx> nibble mode
[15:31:40] <RikusW> I have one PLL ic that use nibble mode, MC145146
[15:44:46] <jnh> this may be a stupid question, but is it possible to connect an LED's cathode to a PWM pin instead of the anode, and would this mean that I can put more current through the LED than if I was driving it from the AVR pin?
[15:46:26] <Martyn> yes, you can sink more than you can source ...
[15:46:33] <Martyn> remember to engage the resistor!
[15:46:34] <GNUtoo-hplaptop> hi, the following code available here: http://pastie.org/private/ksi0dvybwidqhovszzog produces the following result on a laptop: 63 0 9 but on an atmega328p it produces the following output: 63 0 9
[15:46:39] <Martyn> or you'll happily blow the pin
[15:46:47] <GNUtoo-hplaptop> oops
[15:47:02] <GNUtoo-hplaptop> on the atmega 328p it produces 63 0 0
[15:47:29] <GNUtoo-hplaptop> looking at the assembly shows that the two and three variable are never assigned at least it seems
[15:47:54] <GNUtoo-hplaptop> here's the assembly: http://pastie.org/private/azolu9t4faxt7h9siw0sfa
[15:48:03] <jnh> Martyn: right. I'm only talking 20mA per pin, but I am planning to drive 12 of them. It's would be better to sink current into the pin than to use 12 transistors :)
[15:48:07] <GNUtoo-hplaptop> did I miss something?
[15:48:21] <GNUtoo-hplaptop> do I need special handling for 32bit variables
[15:48:36] <GNUtoo-hplaptop> because I guess the assembler should split it in parts right?
[15:48:47] <GNUtoo-hplaptop> or emulate the 32bit
[15:48:51] <GNUtoo-hplaptop> or am I plain wrong?
[15:50:20] <Martyn> jnh : You may still blow it
[15:50:32] <Martyn> 40mA max sink.. I've sunk as much as 60mA, but it was tricky
[15:50:55] <jnh> GNUtoo-hplaptop: I'd try splitting it into 4 uint8's and masking off the bits you need.
[15:50:57] <Martyn> the problem is that you're not sinking directly to ground inside the die on the AVR
[15:51:07] <GNUtoo-hplaptop> ok
[15:51:13] <jnh> Martyn: okay. I'll just go with the original transistor plan :)
[15:51:19] <Martyn> jnh : If you're going to drive >40mA, switch to using an LED driver, or use a transistor
[15:51:20] <GNUtoo-hplaptop> jnd, how should I do that exactly?
[15:51:21] <Martyn> yeah
[15:51:30] <GNUtoo-hplaptop> like doing the shifts in the preprocessor
[15:51:44] <GNUtoo-hplaptop> and assiging the result to an uint8 at runtime?
[15:53:46] <jnh> GNUtoo-hplaptop: you might try doing the shifts in runtime instead of in the preprocessor. The preprocessor doesn't know what type to cast to, and the native types are only 8 bits long on the AVR, whereas they're probably 32 or 64 on your laptop.
[15:54:05] <jnh> at least you can verify that that's the problem and figure out a way to work around it.
[15:54:45] <GNUtoo-hplaptop> hmmm but isn't it already what I'm doing?
[15:55:13] <GNUtoo-hplaptop> ah you mean like that:
[15:55:14] <jnh> yes, you're right.
[15:55:41] <GNUtoo-hplaptop> uint32_t supported_commands = (1<<S_CMD_NOP) | (1<<S_CMD_Q_IFACE) | ... ?
[15:56:32] <jnh> what about explicitly casting each left shift to a longer type?: ((uint32_t)(1<<S_CMD_NOP)) | ((uint32_t)(1<<S_CMD_Q_IFACE))....
[15:57:04] <jnh> I'm sure there's something easy you've missed.
[15:57:08] <GNUtoo-hplaptop> good idea
[15:58:14] <jnh> or can you use UL? Like #define S_CMD_O_SPIOP 0x13UL ?
[16:00:38] <GNUtoo-hplaptop> it didn't change I'll do it at runtime
[16:00:41] <GNUtoo-hplaptop> ok I'll try UL
[16:02:52] <GNUtoo-hplaptop> still no luck
[16:09:35] <Corwin> 000000000000............................
[16:10:28] <Corwin> sorry :)
[16:10:33] <GNUtoo-hplaptop> Corwin, some part is zero but the last part(the higher part) is not zero
[16:10:40] <GNUtoo-hplaptop> it should print 9
[16:12:15] <jnh> GNUtoo-hplaptop: I
[16:12:29] <jnh> GNUtoo-hplaptop: I'm sorry, that's me out of ideas :/
[16:13:21] <GNUtoo-hplaptop> ok
[16:13:38] <GNUtoo-hplaptop> I've also an idea it may work but it's not user friendly at all
[16:13:47] <GNUtoo-hplaptop> split the big variable in 3
[16:14:01] <GNUtoo-hplaptop> to add command you would need to know where you are located
[16:47:57] <GNUtoo-hplaptop> I got an idea
[16:48:00] <GNUtoo-hplaptop> the parentesis
[16:54:43] <RikusW> jnh: you need to remember the Gnd pin can only take about 200mA or so....
[17:27:29] <OndraSter> each GND pin!
[17:27:33] <OndraSter> usually
[17:27:47] <OndraSter> check the datasheet :)
[17:27:49] <OndraSter> for details
[19:18:06] <TechIsCool> hey does anyone know of a simple tutorial explaining how includes work. I am kind of lost on how to create a function in another c file and be able to call it from my main c file
[19:23:23] <TechIsCool> nevermind forgot to include it in my makefile fail