#avr | Logs for 2012-08-28

Back
[00:08:20] <tomatto> thanks
[00:13:03] <Casper> tomatto: might want to consider using an opamp for true differential, with increased resolution
[01:13:51] <tomatto> Casper: i am using opamp already, but i wanted to minimize number of components. so it is not good idea in this case, is it?
[07:36:32] <jadew> hey guys, can someone with a buspirate try to paste this in the console, several times and see if it all gets trough?
[07:36:34] <jadew> aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
[11:58:24] <OndraSterver> poor chip
[11:58:27] <OndraSterver> I reflowed it 3 times
[11:58:33] <OndraSterver> to try fix one pin not liting up the LED
[11:58:44] <OndraSterver> later I found that the LED's pin was bent and wasn't connected to the breadboard :(
[11:58:47] <OndraSterver> (LED bargraph)
[12:01:40] <CapnKernel> I can hear your little chip
[12:01:54] <CapnKernel> It's squeaking "I think you owe me an apology!" :-)
[12:12:03] <OndraSterver> nope, PD4 is not connected... on another board it is PC0 :/
[12:17:10] <OndraSterver> third board is finally all great and working
[12:31:48] <Essobi> Yay
[12:36:36] <RikusW> megal0maniac: any luck yet ?
[12:40:03] <Tom_itx> OndraSterver hand rework them
[12:40:42] <OndraSterver> what else would i do.. :P
[12:40:55] <Tom_itx> I reflowed it 3 times
[12:41:00] <Tom_itx> shame on you
[12:41:13] <megal0maniac> RikusW: It arrived in Edgemead today. Unfortunately, due to work, I'll only be able to get my hands on it on Thursday evening :(
[12:41:15] <Tom_itx> how's the oven working btw?
[12:41:19] <OndraSterver> I took it down and cleared all the pads
[12:41:25] <OndraSterver> Tom_itx, I was busy with other stuff
[12:45:08] <RikusW> megal0maniac: good to know
[12:46:12] <megal0maniac> Hmph.
[12:46:21] <RikusW> pity that you'll only be able to get it on Thursday...
[12:46:24] <megal0maniac> Poor timing :)
[12:50:18] <megal0maniac_> Why did I quit? :/
[12:51:10] <RikusW> clicked the wrong place ? :-P
[12:55:20] <specing_> megal0maniac_: the Peer guy killed ya
[13:22:36] <megal0maniac_> Router's uptime is 3 days, so I didn't knock it out... Oh well.
[13:22:52] <megal0maniac_> Does anyone here use more than one computer in the same workspace?
[13:24:15] <OndraSterver> I use my PC (win8 atm) + tablet PC (Windows 7) + laptop sometimes (Windows 8) + few systems in VM :)
[13:24:24] <RikusW> does AVR's count as computers ? :-P
[13:24:36] <OndraSterver> do you have serial console connected to them?
[13:24:52] <OndraSterver> and I mean those retro ones
[13:24:55] <RikusW> no
[13:24:58] <OndraSterver> I want to get one someday
[13:25:05] <OndraSterver> well, you replied to your own question then :P
[13:25:21] <megal0maniac> To be specific, a computer running Windows or OSX or Linux of some flavour
[13:25:39] <megal0maniac> Which would mean you win, OndraSterver. Yay!
[13:25:46] <megal0maniac> Do you know about Synergy?
[13:25:51] <OndraSterver> yes
[13:26:07] <OndraSterver> there is also Microsoft-own application
[13:26:14] <OndraSterver> but I don't remember its name
[13:26:25] <megal0maniac> I like it so much that I have to randomly tell people about it every now and then.
[13:26:32] <OndraSterver> :)
[13:26:44] <OndraSterver> I can't fit laptop on my table anymore, so it would be useless
[13:26:55] <OndraSterver> (I could probably if I cleaned it all up)
[13:27:07] <OndraSterver> but 24" + 22" on the PC are enough for one keyboard + mouse
[13:27:20] * megal0maniac just cleaned up his desk :P
[13:28:45] <megal0maniac> RikusW: It's this amazing cross-platform app which allows you to share your keyboard and mouse and clipboard between multiple machines. Feels the same as having two displays on one machine in extended desktop mode.
[13:29:12] <RikusW> sounds cools
[13:29:13] <megal0maniac> OndraSterver: What do you mean by "serial console"?
[13:29:15] <RikusW> -s
[13:29:28] <RikusW> http://ed-thelen.org/comp-hist/vs-mit-apollo-guidance.html
[13:29:32] <megal0maniac> It's really useful
[13:29:37] <RikusW> An AVR can easily replace that....
[13:30:00] <OndraSterver> RikusW, video terminal
[13:30:01] <OndraSterver> http://en.wikipedia.org/wiki/VT100
[13:30:03] <RikusW> megal0maniac: Hyperterminal or a real HW terminal
[13:30:35] <OndraSterver> I am sorry but they are just <3 :D
[13:31:06] <RikusW> I actually have some 8088 based terminals that was thrown out...
[13:31:42] <OndraSterver> :o
[13:31:43] <OndraSterver> o:
[13:31:48] <OndraSterver> how much shipped to czech republic? :D
[13:32:31] <RikusW> no idea
[13:32:47] <megal0maniac> How much shipping to CPT? :D
[13:33:09] <RikusW> will have to weigh it
[13:34:00] <megal0maniac> I'm just kidding.
[13:34:02] <megal0maniac> I think...
[13:34:21] <RikusW> you can easily enough build a terminal with an AVR
[13:34:35] <OndraSterver> I know, with some TV to act as the screen :)
[13:34:44] <megal0maniac> Tellyduino
[13:34:44] <OndraSterver> or LCD screen
[13:34:50] <RikusW> uhm well, you'll have to get an ISA VGA card too....
[13:34:54] <OndraSterver> so, I need to clean up my room. There is TOO MUCH stuff. Any tips? :D
[13:35:04] <OndraSterver> vga generator,,,
[13:35:20] <megal0maniac> I recently threw away some ISA cards.
[13:35:28] <megal0maniac> Thought "I'll never need these"
[13:35:29] <OndraSterver> I still have load of ISA cards :D
[13:35:46] <OndraSterver> some old drive controllers... VGAs, SCSI controllers
[13:35:53] <OndraSterver> old drive = IDE + MFM
[13:36:12] * megal0maniac is AFK in favour of food
[13:36:23] <OndraSterver> why do I need to clean up the room?... a) I need to move in one shelf + b) I just got 0.5m*100m of bubblewrap and I have nowhere to put it
[13:36:29] <OndraSterver> I just finished dinner
[13:36:34] <OndraSterver> bon apetit? :D
[13:37:52] <RikusW> megal0maniac: ISA cards can be interfaced to AVR fairly easily
[13:38:07] <OndraSterver> yep
[13:43:18] <TechIsCool> Does anyone know where the avr dragon inf file for windows is stored in the AVR Studio 6 folder?
[13:43:42] <OndraSterver> what OS, TechIsCool ?
[13:43:55] <TechIsCool> haha windows 7 x64
[13:44:10] <OndraSterver> hmm k
[13:44:23] <RikusW> "The most reliable components are the ones you leave out."
[13:44:37] <TechIsCool> OndraSterver: I did an inplace upgrade and its missing the drivers. I tried reisntalling it but had no effect
[13:44:54] <OndraSterver> yeah, x64 systems have trouble finding the driver - no idea why :)
[13:45:12] <TechIsCool> because people forget to write the drivers first
[13:46:46] <OndraSterver> still better than me - appearantly avr debug client has issues on Win8 x64 :)
[13:46:46] <OndraSterver> the AS6 is not able to connect to it
[13:47:15] <TechIsCool> what do you mean does not work in windows 8?
[13:47:29] <OndraSterver> give me a second and I'll give you a screenshot
[13:49:30] <OndraSterver> http://img.ondraster.cz/up/as643ec5.png
[13:50:09] <TechIsCool> give me a minute I think I already fixed that
[13:50:35] <TechIsCool> I just have not gotten the drivers for avr installed and yes I am running 8 but most are not so I ask for win7 x64
[13:50:46] <OndraSterver> plus it can't find drivers for Dragon as well :D
[13:51:09] <TechIsCool> its more we need to know where the drivers for the dragon are installed. I guess its time to extract the installer and dig
[13:51:51] <OndraSterver> well, Program Files (x86)\Atmel\Atmel USB is only for JLink and Segger
[13:52:34] <TechIsCool> yah I think it stores it in win32 but only during install so we have to find it in the installer package
[13:54:01] <OndraSterver> in the installer there is giant [0] section
[13:54:08] <OndraSterver> and it can't be opened by 7zip :(
[13:54:09] <TechIsCool> nope install switches
[13:58:00] <megal0maniac> What are we trying to extract here?
[13:58:09] <OndraSterver> Dragon's drivers
[13:58:13] <TechIsCool> ^This
[13:58:15] <OndraSterver> TechIsCool, I have simple solution
[13:58:16] <OndraSterver> :)
[13:58:24] <OndraSterver> no, I don't
[13:58:25] <megal0maniac> I'm good at extracting
[13:58:35] <OndraSterver> because I don't have second 64bit Win7 PC with Dragon installed
[13:58:38] <OndraSterver> only 32bit
[13:58:39] <TechIsCool> I have it extracted now looking for it
[13:58:57] <TechIsCool> OndraSterver: http://www.compdigitec.com/labs/files/isxunpack.exe
[13:59:01] <TechIsCool> Usage: isxunpack.exe yourinstallshield.exe
[14:01:43] <OndraSterver> hmm
[14:01:55] <OndraSterver> on my tablet (w7 x32) the driver is avr jungo
[14:02:03] <TechIsCool> OndraSterver: I know
[14:02:08] <TechIsCool> but I have yet to find the install for it
[14:04:14] <OndraSterver> wdreg install windrv6.inf says
[14:04:16] <megal0maniac> RikusW: I didn't know about AVR when I threw them out :/
[14:04:21] <OndraSterver> C:\Program Files (x86)\Atmel\Atmel USB\usb64>wdreg install windrvr6.inf
[14:04:21] <OndraSterver> WDREG utility v10.21. Build Aug 31 2010 14:21:54
[14:04:21] <OndraSterver> Nothing to stop: service windrvr6 is not active
[14:04:21] <OndraSterver> Error: Error starting the service windrvr6: The system cannot find the file spec
[14:04:21] <OndraSterver> ified.
[14:04:21] <OndraSterver> Error: Failed trying to install the driver
[14:04:38] <TechIsCool> is that on win 8
[14:04:43] <OndraSterver> yes
[14:04:59] <TechIsCool> but the atmel USB drivers are win drv not Dragon correct
[14:05:10] <OndraSterver> no idea
[14:05:24] <OndraSterver> but the dragon driver uses the windrv6.sys
[14:06:12] <TechIsCool> it does not use an inf?
[14:06:33] <OndraSterver> it seems it uses avrdragon.inf file but I can not find it anywhere
[14:06:40] <TechIsCool> I know
[14:06:58] <TechIsCool> abc_miniuser when you need him :)
[14:08:30] <OndraSterver> avrdragon.inf beginning: "Generated by DriverWizard v7.01 - http://www.jungo.com. blabla
[14:08:40] <OndraSterver> it is generated when new hardware is connected it seems
[14:08:43] <OndraSterver> from the jungo service
[14:09:09] <TechIsCool> I might have to go install on win 7 x64 and extract them hmm
[14:27:17] <OndraSterver> http://www.youtube.com/watch?v=Fv53K9MnDuM&feature=related
[14:27:20] <OndraSterver> troll lvl: over 9000
[14:31:21] <asteve> OndraSterver: i know their are laws that say this is impossible but i'm finding it hard to disprove what's shown
[14:31:23] <asteve> there*
[14:31:43] <OndraSterver> it is impossible
[14:32:03] <OndraSterver> in order to run fully loaded 3kW (output) motor you need more than 3kW of power
[14:32:08] <OndraSterver> this would slowly degenerate and stop
[14:32:22] <OndraSterver> and if you'd have connected and powered on BOTH mains AND the generator
[14:32:24] <OndraSterver> it would blow up something
[14:32:33] <OndraSterver> unless the phases would be perfectly matched
[14:32:48] <OndraSterver> aka the coils on the gen and motor were exactly on the same places
[14:33:02] <OndraSterver> (I think so, I sucked at motors and this stuff at school very badly)
[14:39:11] <megal0maniac> All I know is that it looks like perpetual motion, and perpetual motion with things that look like that is a lie.
[14:59:19] <TechIsCool> OndraSterver: Drivers function C:\Program Files (x86)\Atmel\Atmel USB\usb64 found inf file
[14:59:26] <Jordan_U> OndraSterver: That looks like an outright scam (like they're looking to steal gullible people's money). Much worse than trolling IMHO.
[14:59:43] <OndraSterver> Jordan_U, you are right, trolling is not illegal... yet :D
[14:59:56] <OndraSterver> TechIsCool, I checked those, I don't remember seeing any VID/PID in there
[15:00:24] <TechIsCool> well it installed for me
[15:00:27] <TechIsCool> check it agin
[15:00:53] <OndraSterver> hmm
[15:01:42] <OndraSterver> interesting
[15:01:46] <OndraSterver> automatic installation wouldn't pick it up
[15:01:49] <OndraSterver> but manual works fine
[15:01:50] <OndraSterver> thanks
[15:02:09] <OndraSterver> but I have meanwhile uninstalled the avr jungo itself... lol
[15:02:46] <OndraSterver> and I think I am going back to 7 anyway - there is nasty bug that drives me nuts in 8
[15:03:08] <OndraSterver> upon resuming from sleep VHD is unmounted and I can not remound it by doubleclicking on it.. have to open manager => attach VHD
[15:05:30] <TechIsCool> why do you have a vhd mounted?
[15:05:35] <OndraSterver> my old system backup :)
[15:05:37] <OndraSterver> disk2vhd
[15:05:43] <OndraSterver> I had to repartition whole drive since I was switching to EFI
[15:05:54] <OndraSterver> plus my current system drive is actually VHD
[15:06:16] <OndraSterver> the issue might be that the "backup" vhd is on network rather on local drive
[15:06:25] <OndraSterver> but that doesn't explain the message "sorry, can not mount virtual disk"
[15:06:33] <OndraSterver> (almost literally)
[15:06:56] <TechIsCool> OndraSterver: drivers work http://imgur.com/hFTZd
[15:07:05] <OndraSterver> nice :)
[15:07:09] <OndraSterver> thanks for all the info
[15:07:12] <OndraSterver> I am off to install Win7 :D
[15:07:22] <TechIsCool> lol alright have fun
[15:07:33] <OndraSterver> won't take long
[15:07:36] <TechIsCool> I am going to continue on
[15:23:41] <TechIsCool> OndraSterver: you still around
[15:25:45] <OndraSterver> I know
[15:25:51] <OndraSterver> you see, I am not OndraSter but OndraSterver
[15:25:57] <OndraSterver> OndraSter is running home server :P
[15:25:57] <TechIsCool> 1. Launch avrdbg from command prompt.
[15:25:59] <TechIsCool> 2. Start AVR studio. Go to Tools | Options | Debugger | AVR debugger , and set "AVR debugger port" to 4711.
[15:26:00] <TechIsCool> 3. Wait for avrdbg to come up.
[15:26:02] <TechIsCool> 4. Restart AVR studio.
[15:26:30] <OndraSterver> and I forgot that Win8 checks UEFI version when you boot via EFI... thus when you update EFI it fails to start :P
[15:26:37] <OndraSterver> safety ftw
[15:26:52] <OndraSterver> and I had probably partially missing EFI boot on the Win7 install
[15:27:15] <OndraSterver> and I couldn't boot into Windows 8 anymore... till I realized that it can be the EFI update
[15:27:29] <TechIsCool> ah
[15:28:06] <OndraSterver> meh I will reinstall it tomorrow
[15:28:22] <OndraSterver> or I could report bug to Win8 dev team!
[15:30:58] <xaxes> hey all.. I've a question about jtag and atmega16 .. Ive just build a jtag programmer/debugger as shown here : http://www.avrportal.com/?page=jtag .. I finished the tutorial and Im trying to flash another atmega16 (basic with crystal and jtag connector) using my own programmer.. but avrdude tells me: The selected device does not support jtag programming .. the hfuse is set to 99 (standard) so jtag should be neabled.. is there something else I should set?
[15:31:29] <OndraSterver> is the "master" mega actually programmed with the JTAGICE firmware? :D
[15:31:51] <xaxes> OndraSterver: yeah, I hope so.. as described in the tutorial I flashed the firmware
[15:31:58] <OndraSterver> hmm
[15:32:04] <OndraSterver> does mega16 support JTAG? :P
[15:32:14] <OndraSterver> do you have connected all wires properly?
[15:32:32] <OndraSterver> do you know that fuses are "active low"? (not sure how does avrdude work)
[15:32:59] <xaxes> OndraSterver: mega16 should support jtag if it has a enable jtag fuse bit, or is this sometimes available without the actual jtag capabilities
[15:33:12] <xaxes> OndraSterver: I set fuses using avrdude
[15:33:14] <xaxes> should be ok
[15:33:22] <xaxes> wires: I hope everything is ok ;)
[15:33:43] <OndraSterver> wait, you set fuses via avrdude through jtag but you can not programm it via jtag?
[15:34:11] <xaxes> no, I have a ponyser compatible programmer to set fuses and flash firmware and stuff ;)
[15:34:33] <OndraSterver> hmm no idea at all mate
[15:34:50] <xaxes> But now I try to use the jtag-programmer :) (avrdude only with ponyser until I get the jtagprogrammer working with avrstudio (wine))
[15:36:02] <xaxes> maybe there is a problem using wine, but I don't think so.. Have to check the wires again.. otherwise I have no idea..
[15:36:04] <OndraSterver> TechIsCool, the error is literally "Sorry, there was a problem mounting the file."
[15:36:08] <OndraSterver> that is now even after clean boot
[15:36:13] <xaxes> OndraSterver: thank you for your effort :)
[15:36:24] <TechIsCool> is the vhd mounted during boot or after boot?
[15:36:32] <OndraSterver> there is no automount as far as I know
[15:37:23] <OndraSterver> thus they are manually mounted after logging in
[15:38:55] <TechIsCool> weird I can't even mount vhd files haha
[15:48:01] <OndraSterver> TechIsCool, I have manually pointed it to the avrdbg.exe file and set the port to 4711 and it seems to be working now
[15:48:02] <OndraSterver> thanks!
[15:48:24] <TechIsCool> no problem just remember to launch the command line before starting the studio
[15:48:43] <OndraSterver> hmmm it doesn't autolaunch appearantly even when I put there the path to it
[15:48:44] <OndraSterver> okay
[15:49:50] <OndraSterver> I do wonder why it is broken on W8
[15:51:38] <OndraSterver> nope
[15:51:42] <OndraSterver> avr firmware upgrade crashes
[15:51:43] <OndraSterver> (wtf?)
[15:52:49] <TechIsCool> OndraSterver: its trying to elevate the debugger without perms to do so. It also does not ask for it.
[15:53:15] <OndraSterver> in the log of the avrdbg it shows "USB driver initialization failed with error 0x20000007."
[15:53:21] <OndraSterver> I have disabled UAC
[15:53:28] <OndraSterver> but the new smartscreen might be blocking it or whatever
[15:54:37] <OndraSterver> hmm the Atmel Jungo driver is missing
[15:54:42] <OndraSterver> I have only Dragon's driver installed
[15:54:43] <OndraSterver> damn
[15:56:42] <OndraSterver> there we go
[15:56:46] <OndraSterver> had ot reinstall Atmel USB driver
[15:56:55] <OndraSterver> I broke it before that
[16:01:58] <RikusW> xaxes: try connecting a terminal program to the jtag clone
[16:02:16] <RikusW> xaxes: typing ' ' (space) should return a A
[16:02:31] <RikusW> usual baud ia 19200N8
[16:03:01] <RikusW> xaxes: also connect TDI -> TDI and TDO -> TDO
[16:04:16] <RikusW> and TCK, VCC, GND, TRST is optional (usually unless fw on the target sets JTD)
[16:04:48] <RikusW> also HFuse = 0x99 seems ok
[16:05:11] <RikusW> but you do need a clock source on the AVRs
[16:05:27] <RikusW> iirc the jtag one must be 7.372MHz
[16:07:20] <OndraSterver> TechIsCool, I am fu.ked
[16:07:27] <TechIsCool> ?
[16:07:29] <OndraSterver> I am using Microsoft account to log in
[16:07:36] <OndraSterver> and it contains czech (middle european) character
[16:07:37] <TechIsCool> yah
[16:07:48] <TechIsCool> so enable the keyboard
[16:07:59] <OndraSterver> no
[16:07:59] <OndraSterver> sec
[16:08:16] <OndraSterver> http://img.ondraster.cz/up/as62250cf.png
[16:08:18] <OndraSterver> this :(
[16:08:20] <RikusW> don't user weird chars in the username ;)
[16:08:27] <OndraSterver> RikusW, it is based on my name
[16:08:41] <OndraSterver> TechIsCool, because of the ř in my name it fu.ks up
[16:08:43] <OndraSterver> :(
[16:08:51] <OndraSterver> I need to move project folder somewhere else
[16:08:59] <OndraSterver> probably a good idea either way
[16:09:19] <RikusW> move it to C:\projects\
[16:09:28] <OndraSterver> E:\Projects I'd rather use
[16:10:09] <RikusW> not that sounds like yoda :-P
[16:10:46] <OndraSterver> also I have found bug in AS6 :)
[16:10:52] <OndraSterver> it does not allow you to write PORTA.OUT
[16:11:01] <OndraSterver> it knows only .OUTSET, .OUTCLR and .OUTTGL
[16:11:03] <OndraSterver> but not raw .OUT
[16:11:06] <OndraSterver> well, it does know it
[16:11:10] <OndraSterver> but not the visual assist
[16:11:15] <OndraSterver> (or whatever it is called the hinting)
[16:17:00] <RikusW> so whats the difference between OndraSterver and OndraSter ?
[16:17:06] <xaxes> RikusW: hey! what do you mean ith connect TDI -> TDI? Ive mapped miso to tdi ..
[16:17:10] <OndraSterver> OndraSter is not here
[16:17:17] <OndraSterver> he was tired of launching xchat :)
[16:17:21] <OndraSterver> well, it isn't even installed atm
[16:17:22] <xaxes> I gonna try the terminal stuff tomorrow :)
[16:17:26] <OndraSterver> so I just RDP to my server
[16:17:39] <RikusW> xaxes: that probably won't work
[16:17:44] <xaxes> on the target I have a clocksource (8Mhz)
[16:18:16] <RikusW> the jtag clone will need 7.372MHz
[16:18:18] <tomatto> can avrdude and usbtiny upload firmware to atxmega? or need i some special stuff?
[16:18:20] <RikusW> as a crystal
[16:18:43] <RikusW> tomatto: probably the LUFA AVRISP mkii
[16:18:50] <xaxes> RikusW: there are several software versions for the jtag-clone, and one with 8mhz.. is this only for the bootloader? or maybe for the firmware too?
[16:19:20] <RikusW> the fw, to get the right UART baud
[16:19:56] <xaxes> okay, let me check whether I have a 7,372 crystal available
[16:20:38] <tomatto> can i use obdev usb with 8MHz clock?
[16:21:11] <RikusW> xaxes: http://www.alelec.net/isojtagisp/files/IsoJtagISP-2.1-Schem.gif
[16:22:03] <RikusW> xaxes: here is my jtagice clone, its opensource http://sites.google.com/site/megau2s/home
[16:22:10] <RikusW> click on the jtag tab
[16:22:32] <RikusW> you'll need AVRStudio to compile it
[16:23:30] <xaxes> thank you very much, ill give it a try tomorrow .. :)
[16:24:07] <RikusW> your clone is probably one with the Atmel fw ?
[16:24:41] <xaxes> yes, it is
[16:25:02] <RikusW> then that .gif file will show you how to connect it
[16:25:30] <RikusW> that site also have a bootloader on it
[16:26:03] <RikusW> seems your link use isojtag
[16:27:22] <xaxes> yeah, have a couple of7,372 crystals.. its a pity, but havn't much time tomorrow, but will try your tips .. thank you very much!
[16:27:44] <xaxes> it's late here.. gn8 everybody :)
[16:27:59] <RikusW> seems they have managed to use different frequencies
[16:28:11] <RikusW> however I'll go for 7.3 to be safe
[16:28:47] <jadew> any idea of an easy to emulate programmer?
[16:28:54] <jadew> something that works over serial
[16:30:27] <RikusW> bitbang or actual serial ?
[16:30:58] <jadew> well, a programmer that's used by programming software (read avrdude) by connecting to it over a serial port
[16:31:40] <RikusW> avrdude can use bitbang (slow) or normal serial ones like STK500
[16:32:14] <jadew> I see, thanks, will look into the stk500
[16:32:33] <RikusW> there should be free clones
[16:32:36] <jadew> it's gonna be a virtual com port, so the serial part doesn't really matter
[16:33:06] <jadew> well, I want to add programming functionality to my does-it-all tool
[16:33:36] <RikusW> stk500 is a fairly simple protocol
[16:33:39] <jadew> it shows up on the PC as a serial port, that's why I figured I should emulate one that works over serial
[16:33:45] <jadew> good to know
[16:33:47] <jadew> will check it out
[16:34:23] <jadew> thanks
[16:34:24] <RikusW> see appnote AVR068
[16:34:32] <jadew> found it, already on it
[16:34:56] <RikusW> http://www.atmel.com/Images/AVR068.pdf
[16:35:28] <jadew> I wonder if I can get avrdude to send a few additional commands when connecting to my programmer
[16:35:47] <jadew> otherwise I'd have to connect in advance and switch it into programming mode (not a huge deal breaker)
[16:35:50] <RikusW> patch its source
[16:36:22] <RikusW> which AVR are you using ?
[16:36:23] <jadew> it's not a good solution for the future
[16:36:29] <jadew> for my tool?
[16:36:35] <RikusW> yes
[16:36:41] <jadew> atmega328p
[16:36:48] <RikusW> using V-USB ?
[16:36:57] <jadew> no, MCP2200
[16:37:20] <jadew> v-usb wouldn't have let me do a lot of stuff
[16:39:03] <jadew> the mcp2200 is really nice, it's lacking some features, like locking the baud rate, so when you connect to it you have to specify the baudrate your mcu is using
[16:39:25] <jadew> but you can make your own firmware
[16:39:38] <jadew> which I did and now it does exactly what it's supposed to do
[16:40:52] <Essobi> http://vimeo.com/47875656 <-- lulz
[16:44:38] <RikusW> jadew: what does the MCP2200 cost ?
[16:44:52] <jadew> like $1.20
[16:45:23] <jadew> maybe 1.50, not sure
[16:45:47] <jadew> I only got two, to try them out, but I'm gonna get more, they're way cheapper than ftdi
[16:45:57] <RikusW> how about the mega32u2 / 4 ?
[16:46:43] <OndraSterver> wow, the 2MHz RC oscillator in xmega is so much off!
[16:46:45] <jadew> I didn't like the packaging
[16:47:01] <OndraSterver> I PLLed it to 64MHz and then divided back to 32MHz and compared to 32MHz RC oscillator it is... WAY off!
[16:47:35] <OndraSterver> woot, I CAN MAKE VIDEO ABOUT IT!
[16:47:37] <RikusW> jadew: is the MCP DIP ?
[16:47:52] <jadew> RikusW, no, SOIC, but still easier to solder
[16:48:01] <jadew> and I only had to solder 5 pins
[16:48:08] <RikusW> and whats the problem with TQFP then ? :-P
[16:48:12] <jadew> so easy to replace as well, in case I screw it up
[16:48:45] <jadew> doesn't it have a smaller pitch?TQFP
[16:48:57] <RikusW> jadew: http://sites.google.com/site/megau2s/home I made over 100 of these with a soldering iron
[16:49:05] <RikusW> 0.8mm
[16:49:24] <jadew> not bad
[16:49:32] <RikusW> AVR32 use 0.5mm and m2560 as well
[16:49:44] <jadew> well, the removability thing is big on me, cuz I tend to burn them up
[16:50:00] <jadew> I guess when you're producing something, it makes sense to go for smd
[16:50:03] <RikusW> true...
[16:50:06] <jadew> but when you're playing and testing...
[16:50:51] <jadew> not to mention I started up with atmega8
[16:51:11] <jadew> and just replaced it from the socket when I reached at the flash limit
[16:51:57] <jadew> might go for smd if there's going to be a v2, I missed a lot of stuff when I designed this board
[16:52:24] <jadew> for example, I don't have a reset switch, I figured it would push me to make it stable enough
[16:52:47] <jadew> I didn't consider tho, that I might have modes that I can't exit from with out a hard reset
[16:53:20] <RikusW> I use 2 switches or PC sw to change modes
[16:53:32] <RikusW> though in UART mode I have to reset
[16:53:41] <jadew> yeah, that would be one of them
[16:53:53] <jadew> but it doesn't have UART yet
[16:54:19] <RikusW> m328 only have 1 UART, unless you plan to do a soft UART
[16:54:45] <jadew> from what I've been reading it also has SPI driven uart, but it's syncronous only
[16:55:12] <jadew> I started writting a soft uart lib a while ago, I might finish that
[16:56:04] <jadew> however, uart is not that importat since I have other adaptors that can do uart just fine
[16:56:11] <jadew> it was the other protocols I was interrested in
[16:58:32] <RikusW> like ISP ?
[16:59:05] <jadew> i2c, spi and 1 wire
[16:59:30] <jadew> I had some chips around I wanted to play with and badly needed something that can talk / sniff the traffic
[17:00:07] * RikusW haven't used i2c or 1wire yet
[17:00:22] <jadew> I'm using 1-wire to talk to some temperature chips
[17:00:26] <RikusW> SPI and UART is much simpler
[17:00:37] <jadew> DS18S20+
[17:00:46] <jadew> and i2c for some memory chips
[17:01:43] <RikusW> I've read a bit about i2c, never needed to use it
[17:01:59] <jadew> it's nice, but I prefer 1-wire
[17:02:07] <RikusW> guess I'll learn it when I need to :-P
[17:02:25] <jadew> yeah, not that big of a deal
[17:19:49] <OndraSterver> I am probably dumb
[17:20:03] <OndraSterver> but 2MHz RC * 16 by PLL vs 32MHz RC
[17:20:04] <OndraSterver> VS
[17:20:07] <OndraSterver> the same but both with DFLL
[17:20:13] <OndraSterver> is zero difference?!
[17:20:22] <OndraSterver> the DFLLs have source as internal 32k calibrated RC
[17:20:26] <OndraSterver> they are enabled
[17:20:33] <OndraSterver> and the compare value is set to the proper value
[17:20:34] <OndraSterver> wtf
[17:22:16] <OndraSterver> omg I am dumb
[17:22:27] <OndraSterver> the whole time the PLL was set to different clock source.
[17:22:29] <OndraSterver> lol
[17:26:35] <Tom_itx> OndraSterver what chip?
[17:26:37] <Tom_itx> xmega?
[17:30:36] <OndraSterver> yes
[17:30:46] <OndraSterver> anyway, it seems to work just fine on 64MHz
[17:30:49] <OndraSterver> or at least blinkie does :D
[17:33:17] <OndraSterver> the 32MHz RC has /4 prescaler for PLL... probably... it seems like that. When I set PLL factor 4 and source for 32MHz RC and then compare it to regular 32MHz RC the LED blinks the same speed in both
[17:35:21] <OndraSterver> now even DFLL works as expected
[17:35:22] <OndraSterver> finally :)
[17:44:51] <OndraSterver> USB ground is earhed, thus I can connect it to scope's ground, right?
[17:45:34] <OndraSterver> yep
[17:45:48] <OndraSterver> vmeter shows 0VAC between earth on wall and gnd on usb
[17:46:00] <OndraSterver> and 3.3VDC between 3.3V from USB+vreg and earth on wall
[17:46:18] <OndraSterver> yes, I geniunienly do enjoy shoving stuff into wall socket
[17:46:20] <OndraSterver> it is dangerous fun
[17:46:27] <Tom_itx> glad you can answer your own questions
[17:47:03] <OndraSterver> well I figure out the solution the second I ask about it on IRC like.. 99% of the times
[17:47:07] * Tom_itx gives OndraSterver a tesla coil to play with
[17:47:11] <OndraSterver> I should set up my own IRC channel... "Ondra's questions"
[17:47:11] <OndraSterver> lol
[17:51:30] <tlvb> Sometimes one only needs a wall to bounce the problem agains.
[17:51:44] <tlvb> s/\./t./
[18:12:28] <OndraSterver> tlvb, regular expressions = meh
[18:12:29] <OndraSterver> :D
[18:12:50] <OndraSterver> hmm I do wonder, can I set DFLL2M to 32MHz? :P
[18:12:56] <OndraSterver> I suppose I can
[18:12:59] <OndraSterver> there is no reason not to
[18:27:45] <tlvb> OndraSterver: regular expressions matches "fun fun fun"
[18:29:26] <tmpvar> OndraSterver, hey if you have a second could you sanity check me on my first schematic? http://i.imgur.com/nylme.png
[18:30:07] <OndraSterver> a) pullup on reset
[18:30:17] <OndraSterver> b) decouple every Vcc/Vbus/.. pin with 100nF
[18:30:21] <OndraSterver> and then add global 10 - 100uF
[18:30:42] <OndraSterver> I don't know how about the UCAP pin, it is not on xmegas anymore
[18:30:59] <tmpvar> nice, thanks :)
[18:31:04] <OndraSterver> also check out /HWB pin - you can force USB bootloader with that
[18:33:41] <Jordan_U> I'm trying to figure out how much current would be needed to run an ATMEGA16-M1-15ADCT-ND, assuming worst case (fastest clock cycle, all ADs, anything else on the chip itself which draws current). I've been looking through the data sheets @ http://www.atmel.com/devices/ATMEGA16M1AUTOMOTIVE.aspx?tab=documents but I haven't been able to find this information.
[18:34:14] <OndraSterver> electric specs
[18:34:21] <OndraSterver> there are (all) peripherals how much they draw
[18:40:16] <Jordan_U> OndraSterver: I may be misunderstanding your statement, but at the moment I'm only concerned with the microcontroller itself. It's someone else's job to find out how much the other peripherals on the board need.
[18:40:31] <OndraSterver> the peripherals ON the microcontroller
[18:42:54] <Jordan_U> Where would I find these electrical specs, and would I need to just look at each peripheral individually and add their required amperage together to get a final value?
[18:43:20] <OndraSterver> near the end of DETAILED datasheet (not summary one!) is electrical specs
[18:43:26] <OndraSterver> and there are many tables
[18:43:40] <OndraSterver> and there are "hidden" current consumption for (all) peripherals
[18:47:16] <Jordan_U> So right now I'm getting an idea that this is a much more complicated question than I first thought :)
[18:47:28] <Jordan_U> I already had the idea that I was over my head.
[18:48:19] <OndraSterver> no it is not
[18:48:30] <OndraSterver> just grab calculator (or notepad as well) and go through the electric specs :)
[18:48:47] <Jordan_U> OK. That's good to hear then. Thanks.
[18:48:48] <OndraSterver> but it won't be above 10mA IMHO
[18:48:56] <OndraSterver> (that is without any sinking/sourcing to IO ports)
[18:51:54] <tmpvar> OndraSterver, I think the atmega32u4 has an internal pullup resistor on the reset pin? http://i.imgur.com/IYUTE.png
[18:52:01] <OndraSterver> all of them do
[18:52:07] <OndraSterver> but it is suggested to use external one :)
[18:52:13] <tmpvar> ah
[18:52:14] <OndraSterver> I am using 4k7 everywhere, people use 10k as well
[18:52:26] <OndraSterver> I am using 4k7 because I got reel of 4k7 resistors in 0603 package :D
[18:52:30] <OndraSterver> for 10 bucks or so
[18:52:36] <tmpvar> ah, ok. i have 10k on hand .. do you mean 47k?
[18:52:48] <OndraSterver> no
[18:52:50] <Amadiro> OndraSterver, only on the reset pin, or literally on every pin?
[18:52:50] <OndraSterver> 4k7
[18:52:55] <OndraSterver> Amadiro, ?
[18:53:13] <Amadiro> OndraSterver, do you supply your own pull-ups for every pin (you want to use to read a digital signal)?
[18:53:15] <tmpvar> OndraSterver, I'm not sure what that means, but i think thats ok for now
[18:53:27] <OndraSterver> Amadiro, no, just for reset
[18:53:33] <Amadiro> OndraSterver, right.
[18:53:35] <OndraSterver> because if reset goes crazy from junk around the IC - you are screwed
[18:53:40] <OndraSterver> if it goes around any other pin - meh
[18:53:47] <OndraSterver> but if you want to be sure - use external pullups :)
[18:53:54] <OndraSterver> for sensitive lines etc
[18:54:01] <OndraSterver> tmpvar, 4k7 = 4.7k
[18:56:54] <tmpvar> aha
[18:57:50] <OndraSterver> also ESD protection diodes
[18:57:53] <OndraSterver> on USB lines at least
[18:57:58] <OndraSterver> I put them against ground
[20:10:06] <tmpvar> OndraSterver, ok, I have applied the majority of changes you mentioned http://i.imgur.com/ADzLw.png - is 10ohms (R3) an acceptable value for a low pass filter?
[20:39:18] <Casper> tmpvar: do you use the ADC?
[21:04:26] <jadew> any idea what a syncronization loop is when it comes to avrisp?
[21:55:03] <skorket> I have what's probably a very noobish question. I'm thinking of making a programmer that will program attiny45 and attyin2313 chips. The only difference, from an ISP perspective, is that pins 2 and 3 are are used for the crystal, should there be one, for the attiny45 and they're pin 4 and 5 in the attiny2313 and ground is pin 4 for the attiny45 and ground is pin 10 for the attiny2313. If I'm in the 'program attiny2313' mode, what shou
[21:55:03] <skorket> ld set pins 2 and 3 to? High, low?
[21:56:25] <skorket> Or does it matter at all?
[21:56:38] <Tom_itx> you need GND, +v, MOSI, MISO and RST to program a chip
[21:56:52] <Tom_itx> the rest isn't relative
[21:57:01] <Tom_itx> all GND and pwr need connected though
[21:57:20] <qartis> and sck, eh?
[21:58:12] <Tom_itx> oh yeah SCK
[21:58:13] <Tom_itx> sry
[21:58:31] <skorket> so it really doesn't matter? Meaning I could drive them high or low, and it's completely irrelevant?
[21:58:39] <Tom_itx> pretty much
[21:58:52] <skorket> Also, the chrystal lines need to be hooked up if the chip has been programmed for it...
[21:58:57] <skorket> *crystal
[21:59:09] <Tom_itx> yes
[21:59:13] <Tom_itx> default is internal osc though
[21:59:17] <skorket> sure..
[21:59:56] <Tom_itx> http://tom-itx.dyndns.org:81/~webpage/attiny2313/attiny9.jpg
[21:59:58] <Tom_itx> http://tom-itx.dyndns.org:81/~webpage/attiny2313/attiny8.jpg
[22:00:07] <Tom_itx> was one holder i made for smt 2313
[22:00:14] <Tom_itx> held on with my thumb
[22:02:17] <Tom_itx> the crystal was just for emergency recovery
[22:02:28] <skorket> nice
[22:27:35] <CapnKernel> Tom_itx: That's a fairly brave design! :-)
[22:30:32] <learningc> Hi CapnKernel. :)
[22:32:19] <CapnKernel> learningc: Hi!
[22:34:02] <CapnKernel> How's Toronto this time of year?
[22:34:08] <Tom_itx> worked rather well
[22:37:00] <CapnKernel> I'll have to remember it.
[22:43:59] <annath> Where could one find the mappings of assembler mnemonics to actual hex? For instance, I am looking at an LSS file that actually shows the instructions in hex and I am wondering if there is a reference doc with those mappings somewhere.
[22:44:37] <tmpvar> Casper, yes
[22:46:42] <annath> (specifically for an attiny2313, if that helps)
[23:32:42] <Xark_> annath: I believe you want http://www.atmel.com/images/doc0856.pdf for the AVR8 instruction set ("hex' is the same for all flavors), however a few instructions are "optional" etc., so double check the ATTiny2313 docs for the specifics for that chip with http://www.atmel.com/Images/doc8246.pdf
[23:33:32] <annath> Awesome, thanks a lot!
[23:33:59] <Xark_> annath: No problem.
[23:35:10] <Xark_> annath: The 2nd PDF has a list of implemented ops for ATTiny2313 and their timings (but the first PDF will describe the instructions in detail).