#avr | Logs for 2012-04-05

Back
[04:39:59] <Metalsutton> Hey everyone. Can anyone help me please?
[04:40:18] <Metalsutton> I am following this guide : http://www.raphnet.net/electronique/gc_n64_usb/index_en.php
[04:41:26] <Metalsutton> scroll down to the voltage regulator schematic ... there is a calculator there, I have pretty much all values of resistors to use, however I am not sure if one of the resistors needs to be adjustable.
[04:47:29] <Metalsutton> anyone?
[05:00:05] <Metalsutton> Argh is anyone there?
[05:00:23] <aod> everybody is sleeping now ;p
[05:01:01] <Metalsutton> hhmmm
[05:01:11] <CapnKernel> Metalsutton: Unless you need a variable regulator, or you have no chance of getting a fixed regulator, it's easier just to use a fixed one.
[05:01:30] <Metalsutton> sweet as I have found one. I have just one more question.
[05:01:46] <Metalsutton> Does anyone know what direction R1 goes in that diagram?
[05:01:54] <Metalsutton> from Pin 2 to 3, or 3 to 2?
[05:02:22] <CapnKernel> What is the input voltage for the regulator?
[05:02:47] <Metalsutton> 5v (usb)
[05:07:31] <CapnKernel> Metalsutton: Something like this might be what you're after: http://au.element14.com/jsp/search/productdetail.jsp?sku=9755349
[05:11:52] <Metalsutton> doesnt require resistors i take it? straight to 3.3.
[05:11:58] <CapnKernel> That's right.
[05:12:03] <Metalsutton> hmmm
[05:12:21] <Metalsutton> thanks!
[05:12:44] <CapnKernel> You're welcome
[05:19:11] <skorket> Sorry for the stupid question, but I can't remember the name of this very common encoding scheme...it's where you transmit data over one channel and the data gets xor'ed with the clock or something like that. It's called something like Manhattan encoding or something like that...does anyone know what the name of it is?
[05:20:13] <skorket> Manchester encoding! of course
[05:20:44] <Metalsutton> Glad I could help!
[05:20:47] <Metalsutton> :)
[05:22:30] <skorket> anyone played around with the nrf24l01+?
[05:22:41] <skorket> and thanks Metalsutton, was driving me nuts
[06:31:38] <P3X018> When referring to a specific port bit, I have a book which uses PORTB.0, which is also giving me errors, is it supposed to be PB0 instead?
[06:34:51] <P3X018> But then PB0 is simply a number such as 0, guess it needs to refer to the port as well through <<-operator. But is PORTx.x not used anymore?
[06:35:11] <Valen> you use them both together as a rule
[06:35:18] <Valen> your book sounds like arduino?
[06:35:35] <Tom_itx> unless PORTB.0 hasn't been defined
[06:36:15] <P3X018> It's the book "Embedded C programming and the atmel AVR"
[06:36:26] <Valen> ahh fairy nuff
[06:36:38] <Tom_itx> best to check the device header file to see what's been defined if you're not sure
[06:37:08] <P3X018> I can't find PORTB.0 defined in the header... I'm using AVR Studio, perhaps that uses different definitions from the CodeVisionAVR which the book uses?
[06:37:37] <Valen> I use C_SETBIT();
[06:37:58] <Valen> and all those doohickeys for dealing with pins
[06:38:11] <Valen> avr035.h i think its called
[06:38:19] <Valen> much more easy to comprehend
[06:38:29] <Tom_itx> http://tom-itx.dyndns.org:81/~webpage/avr/c_bits/bits_index.php
[06:41:11] <P3X018> nice header
[07:27:50] <inflex> hiya Tom_itx, Valen
[07:27:59] <Tom_itx> hi inflex
[07:49:15] <Valen> heyya inflex
[07:49:47] * Valen is planning a 6mx4mx2.4M "water tank" under his garden shed
[07:50:12] <Valen> no its not a bomb shelter or kinky dungeon
[07:50:19] <Valen> those would require planning permission
[08:23:18] <P3X018> Anyone has used a USB-Serialport adapter to connect an atmel device to a PC with no com-port? I'm getting a "installation failed" when windows 7 tried to "install" the new device. Though I can see on the device manager the name "Prolific USB-to-Serial comm Port"
[08:24:18] <Steffanx> Prolific is another word for trouble
[08:24:29] <Steffanx> You have to find the right driver for your converter
[08:24:47] <OndraSter> yeah
[08:24:48] <OndraSter> PL-2303
[08:26:21] <P3X018> What's PL-2303?
[08:26:27] <OndraSter> the adapter :)
[08:26:34] <OndraSter> when it is prolific, then it is pl-2303
[08:26:44] <P3X018> ahh =)
[08:34:11] <vanquish> i have no idea what you're talking about
[08:34:46] <vanquish> bah, sorry wrong channel
[08:34:51] <vanquish> well, i guess it's applicable here too
[08:34:56] <vanquish> :-\
[08:40:30] <Steffanx> Lucky you vanquish
[08:42:28] <P3X018> damnit still doesn't resolve the issue of Yellow mark error in the device manager list. Even after installing PL-2303 driver... Perhaps I've a Chinese counterfeit product.. :S
[08:42:54] <Steffanx> Or an other version of the pl-2303
[08:43:18] <Steffanx> I had some trouble with an adapter too, after a few hours of googling i found a driver that worked :0
[08:43:18] <P3X018> hmm let me try that then
[08:43:19] <Steffanx> :)
[08:43:26] <Steffanx> *other = older
[08:43:46] <Steffanx> That problem you have, is a very common problem with pl-2303's
[08:43:53] <P3X018> I see...
[09:00:17] <Kevin`> P3X018: does it work in linux?
[09:09:17] <P3X018> Kevin`: Haven't tried it yet.
[09:46:01] <amee2k> hmm anyone know some ubiquitous opamp types like 324 that has exposed offset adjust pins?
[09:46:16] <amee2k> can be anything from 1 to 4 opamp blocks in one part
[10:39:11] <ureif> amee2k: LM741
[11:20:02] <P3X018> Damnit I've tried so many different USB-Serial drivers but always the same problem "This device cannot start. (Code 10)"...
[11:21:31] <P3X018> One thing I notice though is that when I uninstall one driver and install the next one, the port isn't even recognized through the device manager, and the windows even begins to try and "install the device" when I connect it, even when I've installed the driver. It's first after I update the driver through the device manager that it shows "Prolific...", and the problem is that the system...
[11:21:33] <P3X018> ...chooses what driver to install that way, I can't force it to choose the ones I've found because they are .exe files perhaps..
[11:32:13] <OndraSter> is it just me or are there no Altera FPGAs on mouser?
[11:32:42] <Steffanx> it's you
[11:33:06] <OndraSter> really?
[11:33:21] <Steffanx> I think so
[11:34:11] <Steffanx> http://www.naffets.nl/share/a-20120405-182410.png ..
[11:34:11] <OndraSter> http://cz.mouser.com/Semiconductors/Integrated-Circuits-ICs/Programmable-Logic-ICs/_/N-6j778/
[11:34:15] <OndraSter> no Altera there
[11:34:15] <Steffanx> oops
[11:34:17] <Steffanx> mouser :p
[11:34:22] <OndraSter> yap
[11:34:27] <Steffanx> me automatically converts mouser to digikey :p
[11:34:31] <OndraSter> :D
[11:34:36] <OndraSter> no czech reseller for digikey
[11:34:42] <OndraSter> and I ain't paying $60 for shipping really
[11:35:17] <Steffanx> cz.mouser.com isn't really in cz is it?
[11:35:24] <OndraSter> actually
[11:35:26] <OndraSter> partially
[11:36:10] <Steffanx> I guess you're right
[11:39:53] <OndraSter> I am looking for "cheap" FPGAs/CPLDs
[11:40:57] <OndraSter> that will work with USB Blaster clone :P
[11:41:28] <specing> P3X018: pl2303 works like charm on Linux
[11:43:43] <drobban> < OndraSter> no Altera there. Isnt there anything on Ebay...
[11:43:45] <P3X018> specing: I tried it on ubuntu, but didn't register anything, not sure how you can tell if it's connected. Otherwise I'm trying to make it work on Win 7 64-bit..
[11:44:03] <OndraSter> drobban, but I would be afraid about chinese copycats :)
[11:45:02] <drobban> OndraSter: I have a friend, that acctually ordered his on ebay. It was a development board.
[11:45:27] <OndraSter> something like this?
[11:45:32] <drobban> It cost 26$ with delivery
[11:45:46] <drobban> wait.
[11:45:51] <OndraSter> hmm cycloneII there too
[11:45:52] <OndraSter> for $24
[11:46:35] <drobban> OndraSter: it is exactly that one.
[11:46:50] <OndraSter> http://www.ebay.com/itm/ALTERA-FPGA-CycloneII-EP2C5T144-minimum-system-learning-board-development-board-/260985324999?pt=LH_DefaultDomain_0&hash=item3cc3f005c7
[11:46:51] <OndraSter> this?
[11:47:19] <specing> P3X018: dmesg
[11:48:24] <drobban> OndraSter: My friend says its like that one. He says the one he got is like the seller: Industryland. sells
[11:48:36] <OndraSter> oh kk
[11:48:37] <OndraSter> thanks
[11:49:01] <drobban> np.
[12:00:55] <OndraSter> drobban, and what do you programm in it with?
[12:02:19] <drobban> OndraSter: Im not using it at all, my friend does, he says USB Blaster.
[12:02:29] <OndraSter> I mean, what app do you use on PC :)
[12:02:43] <drobban> Quartus Altera
[12:02:46] <OndraSter> ah ok
[12:02:47] <OndraSter> thanks
[12:03:13] <cyanide> hello folks
[12:03:37] <drobban> OndraSter: hehe, just fun to be in assistance. It is not usual that my friend is at my place like this. Hehe.
[12:04:45] <OndraSter> yay, altera quartus is only 30 day trial
[12:07:44] <OndraSter> nvm, there is free version
[12:18:41] <drobban> OndraSter: =)
[12:19:06] <OndraSter> only if that board had those... opposite.. pins
[12:19:09] <OndraSter> you know, holes instead of pins
[12:19:13] <OndraSter> so you can stick wire into it
[12:26:52] <ChrisCrooooo> [18:12] <ChrisCrooooo> Hi all, beginner here! How can I shift 11110000 into 00001111 just a right shift gives me a nibble (i think) which isnt what i want, I want the 4 bits before hand to be zeros [18:13] <ChrisCrooooo> i think concatenation but + will add and not concatenate
[12:27:10] <ChrisCrooooo> sorry for the noob question :(
[12:27:24] <ChrisCrooooo> i'm using avr-gcc btw
[12:31:40] <izua> ChrisCrooooo: should it be 1111XXXX -> 00001111?
[12:31:52] <izua> then, four shifts to the right (x >>= 4)
[12:32:05] <ChrisCrooooo> but does this preserve the first 4 bits?
[12:32:12] <ChrisCrooooo> as in makes them 0s
[12:32:13] <aod> no
[12:32:23] <aod> it makes them 0
[12:32:36] <ChrisCrooooo> would >> make them 0s?
[12:32:53] <izua> it doesn't 'make' them
[12:33:02] <ChrisCrooooo> i thought 11110000 >> 4 would equal 1111 without the leading 0s
[12:33:11] <izua> wat
[12:33:24] <izua> do leading 0s ever make a difference?
[12:33:35] <aod> what's the difference between 00001111 and 1111? :)
[12:33:35] <ChrisCrooooo> i'm trying to turn a byte into a high and low byte
[12:33:46] <izua> you're trying to extract nibbles?
[12:33:51] <ChrisCrooooo> yes izua
[12:34:04] <ChrisCrooooo> unsigned char high_command = character >> 4; unsigned char low_command = character;
[12:34:04] <izua> n_high = (x >> 4)
[12:34:09] <ChrisCrooooo> is my current code
[12:34:15] <izua> n_low = x & 0x0F;
[12:34:25] <ChrisCrooooo> ah brilliant :)
[12:34:34] <izua> but since there is no representation on 4 bits
[12:34:38] <izua> they will all be at least 8 bits
[12:34:52] <izua> and contain the nibble section from the original in the lower nibble
[12:34:53] <izua> thus
[12:35:02] <izua> abcdefgh => 0000abcd and 0000efgh
[12:35:14] <izua> (if that makes sense, heh, failbinary)
[12:35:20] <ChrisCrooooo> yeah i see that now
[12:36:54] <ChrisCrooooo> i want the leading 4 0s, because i am using the last 4 pins on a port, if that makes sense?
[12:37:10] <ChrisCrooooo> oh dont worry
[12:37:58] <ChrisCrooooo> but the code isnt working :( 0x81 should be 00001111 and 00000001, would the above code i've pasted give me this?
[12:38:07] <izua> you can't _not_ have them
[12:38:25] <izua> if you'd be using 32 bits for your vars, you'd be having 28 leading 0s. they are always there
[12:38:32] <ChrisCrooooo> oohhh!
[12:39:00] <ChrisCrooooo> i was using an online right shifter which wasnt using 8 total bits :)
[12:39:07] <ChrisCrooooo> which confused me, heh
[12:39:48] <izua> the aboe code should do that for 0xF1
[12:39:58] <izua> 0x08 is 0b1000
[12:41:44] <ChrisCrooooo> so to confirm: 11110000 >> 4 = 00001111 for a high bit, and the low bit i can just output the original 11110000 because the first 4 bits make no difference
[12:42:04] <OndraSter> I suppose you should do &0x0F to make sure the top 4 bits do not write anything
[12:42:07] <OndraSter> do not set anything*
[12:42:09] <ChrisCrooooo> (i'm interfacing with an hd44780 in 4 bit mode and im seeing some strange characters)
[12:42:52] <OndraSter> (for assembly guys -- I always do & 0x0F, then pop the original value, swap bottom-top nibble (one instruction), again 0x0F and done)
[12:44:22] <ChrisCrooooo> and sending 0x01 doesn't clear the screen :(
[12:44:59] <izua> you do know there are prewritten libraries for this, right?
[12:45:20] <grummund> strictly, nnnnXXXX >> 4 = 0000nnnn.
[12:45:32] <izua> also make sure you never write to a port directly, but using a mask instead
[12:45:44] <izua> if you want to put those 4 bits out, for instance
[12:46:00] <izua> PORTx &=~(0xF0); //clear lower 4 bits
[12:46:18] <izua> PORTx |= data; //write useful data, which should only be contained in the lower 4 bits
[12:46:25] <ChrisCrooooo> yeah izua but i want to learn, and the best way of learning in my opinion is to get rid of shitty libraries :)
[12:47:00] <ChrisCrooooo> ah izua I've just been doing PROTx = 0b00000000 or whatever
[12:47:18] <izua> you should look up bit operations and ports if you don't want to write a shittier library yourself
[12:47:24] <grummund> izua: PORTx &=~(0xF0); //clear *upper* 4 bits
[12:47:34] <izua> whoops
[12:47:49] <izua> PORTx &=~(0x0F)
[12:48:11] <izua> i thought i'd be doing &= (0xF0) but wrote &=~ out of reflex :P
[12:48:27] <izua> ChrisCrooooo: if PORTx is already at value 01010000
[12:48:34] <izua> and you want to set bit 0 -> thus making it 01010001
[12:48:45] <izua> if you do PORTx = 0000 0001
[12:48:51] <izua> it will change to 0000 0001
[12:48:59] <izua> you need to preserve the old value, which you can't know
[12:49:08] <izua> (might be set by an interrupt, or some other logic)
[12:49:14] <izua> so you should always mask
[12:49:21] <ChrisCrooooo> yes, but preserving the old value doesnt matter, Ive the whole port :)
[12:49:38] <ChrisCrooooo> i know it shouldn't be done, and i have corrected it
[12:49:47] <grummund> ChrisCrooooo: it makes sense only to write to the pins you want to affect
[12:52:31] <grummund> PORTx = (PORTx & 0xf0) | (var >> 4); /* write var upper 4-bits to port */
[12:52:33] <grummund> PORTx = (PORTx & 0xf0) | (var & 0x0f); /* write var lower 4-bits to port */
[12:54:48] <ChrisCrooooo> brilliant grummund
[12:55:44] <ChrisCrooooo> i'm writing 0x01 to an HD44780 compatible LCD, and it doesnt clear the screen, it just makes the first character completely "black", any ideas?
[12:56:42] <grummund> yeah, use a library :p
[13:03:34] <OndraSter> drobban, ordered the developer board, meanwhile installed the Quartus II and already tried simple stuff =)
[13:03:34] <OndraSter> thanks
[13:03:59] <OndraSter> ChrisCrooooo, remember that you need to set the device to 4bit mode first
[13:11:34] <RikusW> http://sites.google.com/site/projectsentrygun/
[13:13:05] <asteve> RikusW: there's a guy that did something similar with opencv and an arduino
[13:13:18] <asteve> i'm going to build one sometime over the winter
[13:13:24] <asteve> with a button that says "don't press this"
[13:13:40] <drobban> OndraSter: Np.
[13:13:51] <drobban> OndraSter: Godluck
[13:14:12] <drobban> +o
[13:14:14] <drobban> :)
[13:15:02] <RikusW> I'll like to put some pepper balls in there and leave it as a security measure :-D
[13:17:53] <RikusW> Maybe use a FLIR HS324 thermal camera with it ;)
[13:25:51] <amee2k> ureif: hmm any other ideas besides a 741? :)
[14:37:18] <zii> If I add an object when lining and compiling the main executable with the avr-gcc, does it get included as well?
[14:40:07] <Casper> zii: depend on the command you issues
[14:44:16] <zii> Hmm, seems like the problem's elsewhere.
[14:44:19] * zii keeps debugging.
[14:44:21] <zii> on*
[14:44:59] <specing> zii: No vector table included in final .hex?
[14:46:37] * RikusW just had a duh moment.... fixed a 18V printer smps, checked all components, and finally replaced the IC, still dead, measured the output cap, 18 V ?! turned out there was a dry joint on the coil just before the cable, cracked nicely around the solder.... :S
[14:47:19] <RikusW> I assumed it was surge damage....
[14:48:02] <Casper> :)
[14:48:34] <specing> abcminiuser_: WHO MOVED THE DOCS UNDER /Images!?
[14:52:24] <RikusW> specing: its a shorter path now, why complain about it ? ;)
[14:56:28] <specing> RikusW: /doc ?
[14:56:30] <specing> :D
[15:03:37] <RikusW> hmm even better :)
[15:13:15] <cyanide> hello hello
[15:14:04] <RikusW> hi
[15:26:44] <OndraSter> hi
[15:31:14] <vectory> does avr-libc support stdarg.h?
[15:35:42] <RikusW> what for ?
[15:36:48] <RikusW> ah
[15:37:39] <RikusW> printf does work on avr right ?
[15:37:41] <RikusW> so it should
[15:50:54] <vectory> printf works, but elsewhere there is no hint for va_list in the docs
[15:51:06] <vectory> no stdarg.h eithr
[15:57:27] <chupas> other than range and i guess cost. is there any reason to have a freq counter instead of an O scope?
[15:58:03] <j4cbo> they're sort of orthogonal
[16:00:39] <chupas> I guess the question is If i allready have an O scope on my becnh, would I have a use for a freq counter. What can the freq counter do that I cant do with the O scope
[16:01:25] <j4cbo> if it's a digital 'scope, not much
[16:01:33] <j4cbo> besides, as you mentioned, range
[16:02:17] <chupas> ive never owned one and was just curious. I do have scopes though so I guess im set then
[16:03:25] <j4cbo> you can get a 3.5 GHz frequency counter for a few hundred bucks
[16:03:44] <j4cbo> a reasonably-priced scope probably cannot handle that
[16:03:53] <chupas> your right
[16:04:19] <chupas> but not ever dealing with freq that high its of no value to me at this point
[16:05:31] <OndraSter> if you have, let's say, 50MHz scope, it can't automatically detect above 25MHz (and even there it might fail)
[16:05:52] <OndraSter> no wait
[16:05:55] <OndraSter> my fault
[16:05:55] <OndraSter> nvm
[16:05:56] <OndraSter> ignore me :)
[16:21:09] <Kevin`> chupas: does your oscilloscope have a precision frequency reference?
[16:21:29] <Kevin`> (or the ability to connect one)
[16:21:38] <chupas> Na. I dont relly need it
[16:21:53] <chupas> im sure a counter can be connected to one
[17:48:49] <CapnKernel> morning
[17:50:17] <Casper> hi ya
[17:51:10] <Tom_itx> evening
[18:28:23] <OndraSter> night :D
[18:28:27] <OndraSter> yay timezones
[18:38:02] <Tom_L> yay!
[18:46:44] <OndraSter> why is digikey cheaper than farnell by a lot
[18:46:52] <OndraSter> but there is no way how to pay <$40 shipping from digikey ?!
[18:46:55] <OndraSter> it kinda loses its advantage
[18:47:01] <OndraSter> only farnell and mouser have czech resellers
[18:47:11] <OndraSter> but farnell has terrible prices and mouser doesn't have altera FPGAs...
[18:47:20] <BusError> pushed a few patches to simavr... including a simulated board that runs a reprap firmware and fakes a 3d printer.. enough that the printing software is fooled anyway :-)
[18:48:40] <Tom_L> OndraSter, i haven't found digikey cheaper very often
[18:49:51] <OndraSter> compared to farnell?
[18:50:11] <Tom_L> compared to mouser
[18:50:13] <OndraSter> oh
[18:50:18] <OndraSter> but mouser hasn't got the parts
[18:51:18] <OndraSter> it is cheaper to have it sent to US address and then reshipped here
[18:51:26] <OndraSter> you save like $20?
[18:51:28] <OndraSter> for small orders
[18:52:20] <Tom_L> i've done that a time or two for ppl
[18:52:53] <OndraSter> I can use service called shipito... $8.5 fee + like $5 shipping with their own airplane or what
[18:52:58] <OndraSter> for small packages it works fine
[18:53:22] <OndraSter> why is shipping to UK half the price ?!
[18:53:24] <OndraSter> $30
[18:53:27] <OndraSter> from digikey
[18:54:13] <CapnKernel> Anyone use Jameco?
[18:54:33] <Tom_L> for a couple parts
[18:54:36] <Tom_L> not very often
[18:54:53] <CapnKernel> Why or why not? Price?
[18:54:55] <CapnKernel> Range?
[18:55:32] <OndraSter> more expensive than farnell (at least the cyclone)
[18:55:47] <Tom_L> just seems like more of a hobby store
[18:55:56] <Tom_L> and cheaper is why i got the parts
[18:59:05] <CapnKernel> Hmm
[18:59:08] <OndraSter> what, you can have it shipped from digikey to US address for few bucks
[18:59:09] <OndraSter> damn
[18:59:09] <CapnKernel> Thanks
[18:59:30] <CapnKernel> OndraSter, the world is SO UNFAIR!!! :-)
[18:59:43] <OndraSter> yeah
[18:59:48] <OndraSter> you have got no idea how much lol
[18:59:55] <CapnKernel> lol
[19:01:14] <OndraSter> hmm the shpiping through their airmail is not possible anymore
[19:01:17] <OndraSter> either fedex, usps...
[19:01:28] <OndraSter> and the price is at digikey+usps+$8.5
[19:01:34] <OndraSter> still lower than directly from digikey though
[19:01:37] <OndraSter> but... damn
[19:02:55] <OndraSter> it is about the extra price of farnell :(
[19:04:18] <OndraSter> hmm when I send e-mail to mouser to their czech@mouser.com... should I write in CZ or EN? :D
[19:04:33] <OndraSter> probably CZ
[19:09:34] <OndraSter> anyway
[19:09:36] <OndraSter> I am off
[19:09:36] <OndraSter> bb
[19:09:54] <Tom_L> :)
[21:23:57] <vuln> Hello there
[21:24:24] <vuln> I downloaded AVR Studio 5 and I don't really know what is happening, but I can't see ATmega328P in the list of platforms to start developing when I click New Project on AVR Studio.
[21:24:27] <vuln> What is going on?
[21:25:38] <Tom_L> u tell me
[21:27:08] <vuln> how come Tom_L?
[21:28:12] <Tom_L> maybe it's in studio 5.1
[21:29:15] <vuln> Can't I download this template separatedly?
[21:29:24] <Casper> there is no 328?
[21:29:32] <vuln> Casper weird, in't it?
[21:29:41] <vuln> Actually, there is NO atmega, only atxmega boards =/
[21:29:54] <Casper> then you downloaded the wrong package
[21:29:58] <vuln> probably =/
[21:30:04] <vuln> Do I have to download it all over gain?
[21:30:59] <vuln> as5installer-stable-5.1.208-full
[21:31:03] <vuln> isn't it the right package?
[21:31:50] <Casper> dunnot, nobody here use that junk
[21:31:58] <vuln> really?
[21:32:02] <vuln> what do you use?
[21:32:23] <Casper> our favorite text editor and avr-gcc and avrdude
[21:32:57] <vuln> ok
[21:32:58] <vuln> ty
[21:42:43] <Tom_L> casper is a linux phreak
[21:44:18] <Tom_L> vuln, you shouldn't need full
[21:45:57] <vuln> Tom_L it is sad that even the full doesn't have the minimum tools lol
[21:46:28] <Tom_L> btw, there is a mega328 and 328p in my list
[21:46:34] <vuln> not in mine :(
[21:46:39] <vuln> I only have ATXmega boards.
[21:46:39] <Tom_L> let's walk thru it
[21:46:44] <Tom_L> mkay?
[21:46:57] <Tom_L> studio 5?
[21:47:20] * Tom_L knocks on the monitor
[21:47:45] <Tom_L> vuln, wanna walk thru it with me?
[21:48:11] <vuln> sure
[21:48:45] <Tom_L> open stuido fresh and click 'file' 'new' 'project'
[21:48:56] <vuln> done
[21:49:01] <Tom_L> c executable project
[21:49:10] <Tom_L> with c selected on the left column
[21:49:37] <Tom_L> at the bottom: Name: atmega328p
[21:49:45] <vuln> there is no c executable prject
[21:49:54] <vuln> sorry
[21:49:55] <vuln> there is
[21:49:55] <Tom_L> in the middle?
[21:49:59] <Tom_L> mkay
[21:50:01] <vuln> doen
[21:50:09] <Tom_L> name the project
[21:50:13] <Tom_L> atmega328p
[21:50:15] <Tom_L> at the bottom
[21:50:20] <Tom_L> and click 'ok'
[21:50:23] <vuln> found :x
[21:50:33] <Tom_L> all set?
[21:50:34] <vuln> I'm so sorry, I was looking for an atmega328p template
[21:50:41] <vuln> so sorry, I'm embarassed. Thank you.
[21:51:00] <vuln> good night
[21:51:15] <Tom_L> template for what exactly?
[21:51:49] <Tom_L> mkay.
[21:51:52] <Tom_L> goodbye
[21:51:58] <Tom_L> next?
[22:51:35] <ome> Does anyone know a good alternative to Protues for linux that can emulate atmega serious ?
[22:55:43] <rue_house> ome, dont try to emulate
[22:56:11] <Casper> there is zero emu that work perfectly
[22:56:14] <rue_house> just build the project up in modules and test as you go
[22:56:39] <rue_house> all running your code in an emulator does is to tell you the code works in an emulator
[22:57:11] <ome> rue_house: that is fair.
[22:57:29] <ome> but I really don't make some of my prototypes emulator working only.
[22:57:43] <ome> given that there is only slightly need to change code/fix bugs.
[22:57:58] <rue_house> are you in russia?
[22:58:20] <ome> Casper: well, prefect is a bit too much, by Proteus is "good enough".
[22:58:24] <ome> rue_house: hahah, no why ?
[22:58:30] <rue_house> just asking
[22:58:35] <ome> OH wait.
[22:58:38] <ome> what did I just said.
[22:58:56] <ome> s/don't make/don't mind to make/
[22:59:07] <rue_house> why do you wantto emulate it if your not going to build it?
[22:59:27] <ome> proof of concept.
[22:59:53] <rue_house> why make it for an avr at all? just make a pc program
[23:00:26] <ome> well, maybe I should have asked my question even more clear.
[23:01:10] <ome> I am looking for an electronic circuit simulator that can has avr micro-controller like Proteuos that can work under linux. :)
[23:01:42] <rue_house> you want to run linux on avr?
[23:02:01] <rue_house> or you want to program an avr using linux
[23:02:02] <rue_house> ?
[23:02:44] <rue_house> on linux, you can use a text editor to write code, gcc-avr to compile it, and avrdude to write to the avr
[23:03:16] <ome> https://en.wikipedia.org/wiki/Proteus_(design_software)
[23:03:18] <rue_house> if you wish to run linux on avr, it will run slow (many hours to boot up)
[23:03:26] <ome> an alternative to that for Linux.
[23:03:50] <rue_house> nedit
[23:04:27] <ome> And I am specifically interested in 'microprocessor simulation'.
[23:04:52] <rue_house> that is not a good interest
[23:05:25] <ome> rue_house: why so ?
[23:05:32] <rue_house> it causes much failure
[23:06:02] <ome> what sort of failure you mean ?
[23:06:36] <rue_house> false confirmation that code work
[23:06:38] <ome> an AVR processor is far more simpler then what you get for your PC and can be emulate 'good enough' that works.
[23:06:53] <rue_house> false notification that code does not work
[23:07:08] <rue_house> those two reason
[23:08:23] <rue_house> make code on avr real or make code on pc to simulate everything, but not for avr
[23:08:44] <ome> !doesntwork
[23:08:50] <ome> is intense.
[23:08:59] <rue_house> no simlator works
[23:09:03] <rue_house> ever
[23:09:12] <rue_house> well, maybe pdp11 simulator
[23:09:56] <rue_house> not simulators for windows or linux, none work 100%
[23:11:29] <ome> well, I don't like to argue, but I did used simulator on windows and they work fairly good.
[23:11:47] <rue_house> 'fairly' != 100%
[23:11:50] <ome> and also, you keep insesting on code, if the code doesn't work as expected, you need to fix the compiler.
[23:12:05] <rue_house> you dont know what dosn't work, so you get wrong answer if code work or not
[23:12:15] <ome> and at the emulation level, there is only a handful of instructions for AVR, so it will fail or work.
[23:12:28] <rue_house> no
[23:12:29] <j4cbo> .. no...
[23:12:45] <rue_house> there is timers and hardware things that not all simulators do right
[23:13:00] <rue_house> and other things
[23:13:02] <j4cbo> an avr instruction set emulator is only useful if you are also emulating with 100% accuracy both (a) everything else inside the chip and (b) the rest of your project
[23:13:38] <rue_house> if your avr program not use interrupts and not do any io, simulator probably ok
[23:14:41] <ome> http://3.bp.blogspot.com/-xUzsxYeZG38/TdjmSNk75eI/AAAAAAAAALo/AG5cIZS3WTg/s1600/pic1.PNG
[23:14:45] <ome> that works fine.
[23:15:01] <ome> so did this one http://www.engineersgarage.com/sites/default/files/imagecache/Original/wysiwyg_imageupload/10723/Picture1_0.png
[23:15:28] <ome> I do get that emulating doesn't means it will be 100% like real thing. but it's not useless. but again that is me.
[23:15:35] <rue_house> 'fine' != 100%
[23:15:40] <j4cbo> bit-bang I/O, one peripheral, one very old uC
[23:16:00] <rue_house> they may say your code work when it dosn't, they may say code do work when it will not
[23:16:21] <ome> rue_house: there is no such thing as prefect in Programming. trust me on this.
[23:16:43] <rue_house> ome, thats why I say use real world avr for testing
[23:17:08] <ome> rue_house: that is far too expensive.
[23:17:19] <j4cbo> what?
[23:17:25] <rue_house> avr cost $8
[23:17:38] <ome> it's not about parts.
[23:17:41] <rue_house> often less
[23:17:41] <ome> it's about time.
[23:18:10] <rue_house> ome, you spend just as much time trying to figure out why code work on simulator and not in real world
[23:18:23] <ome> anyways, give proteous a try even for fun of it.
[23:18:30] <rue_house> if you break up code right and test in stages, coding and testing goes fast
[23:18:50] <rue_house> if you try to write all code at once and then test, you in trouble forever
[23:19:48] <rue_house> haha my C code is getting worse, I keep making 1 letter variables.... didn't think I'd go back to my BASIC habbits ever
[23:20:29] <rue_house> ome, do you want names of avr simulators for linux?
[23:20:59] <rue_house> simulavr