#avr | Logs for 2014-06-20

Back
[05:14:42] <Jartza> yah
[05:15:06] <Jartza> next I guess I try the modem with attiny84 and atmega328 (as I have those)
[05:57:19] <malinus> Jartza, imho the attiny84 is the one greatest attiny :)
[05:57:50] <malinus> because of specs+price+availability+specs
[05:57:57] <malinus> specs twice ;)
[05:58:13] <Jartza> :)
[05:58:24] <Jartza> I haven't checked, but I have like 50 of them
[05:58:36] <Jartza> I've just played with tn85
[06:24:25] <Lambda_Aurigae> attiny84 is like an attiny85 with more pins and a 16 bit timer.
[06:25:48] <Jartza> yeah
[06:26:04] <Jartza> but if one can live with 8 pins, why switch to more? ;)
[06:26:07] <Lambda_Aurigae> those two tinys and the atmega1284p are my three favorite AVRs
[06:26:16] <Lambda_Aurigae> hehe.
[06:26:19] <Lambda_Aurigae> yeah.
[06:27:01] <Jartza> now I'm trying to find out how to "self program" tiny85
[06:27:03] <Lambda_Aurigae> behind those three chips comes the ds89c450 and the pic32mx250f128b.
[06:27:20] <Jartza> not sure, but looks like I really need asm for that?
[06:27:27] <Lambda_Aurigae> probably.
[06:27:42] <Jartza> luckily avr asm doesn't look too complicated
[06:27:49] <Lambda_Aurigae> it's not.
[06:28:00] <Lambda_Aurigae> first time I looked at it, it reminded me of 6502 assembly.
[06:28:09] <Lambda_Aurigae> it's much simpler than pic assembly.
[06:28:22] <Jartza> yeah, some similarities to 6502
[06:28:31] <Jartza> that's actually the first assembler I ever learned
[06:28:40] <Jartza> with vic20
[06:29:23] <malinus> Jartza, GOT IT :D
[06:29:26] <malinus> time to scope
[06:29:30] <Lambda_Aurigae> same here.
[06:29:33] <Jartza> rock!
[06:29:39] <Lambda_Aurigae> still have my first,,well, second vic20
[06:29:41] <Lambda_Aurigae> and it still works
[06:29:48] <Jartza> I have mine too
[06:29:49] <Lambda_Aurigae> also have a c-128 and several c-64 units here.
[06:30:01] <Jartza> I also have my original c64
[06:30:20] <Jartza> it works, except the sid has some trouble, it doesn't play all the voices
[06:30:27] <Lambda_Aurigae> have considered taking the dead vic-20 and ripping the vic and sid chips out to use with an avr.
[06:30:30] <Jartza> it has the serial number 1394 :)
[06:31:44] <Jartza> I also have some old computers that weren't known that much outside scandinavia
[06:31:48] <Jartza> like salora manager
[06:32:32] <Jartza> I actually guess that salora wasn't known outside finland
[06:32:53] <Lambda_Aurigae> it's a Laser 2001 clone.
[06:32:57] <Lambda_Aurigae> which we had here.
[06:33:18] <Jartza> Salora actually became part of Nokia
[06:33:50] <Lambda_Aurigae> it was a clone of the colecovision unit.
[06:35:10] <Jartza> they formed Mobira together to make "walkietalkies", then from that became Nokia-Mobira, which later became Nokia Mobile Phones
[06:35:15] <Lambda_Aurigae> hard to believe that the attiny85 has more processing power than the vic-20.
[06:35:29] <Jartza> so that computer is sort of like "pre-Nokia" ;)
[06:36:28] <Lambda_Aurigae> if I ever get the time to sit down and actually do some massive porting, I want to port the vic-20, c-64, and/or c-128 roms to AVR.
[06:36:41] <Jartza> I guess the manager wasn't exactly Laser 2001 clone, as it wasn't actually quite compatible
[06:36:46] <Lambda_Aurigae> although, I did once see a 6502 emulator for the AVR.
[06:37:18] <Jartza> but they were sold cheap in finland, after a relatively low success
[06:37:38] <Jartza> so I bought one. used it like 3 days and hid the machine into storage :)
[06:39:25] <Lambda_Aurigae> http://sbc.rictor.org/avr65c02.html
[06:39:29] <Lambda_Aurigae> there it is.
[06:40:43] <Jartza> oh yeah :)
[06:40:58] <Jartza> I also saw someone did make and arm-emulator for atmega and did run linux on it :)
[06:41:31] <Lambda_Aurigae> yeah.
[06:41:39] <Lambda_Aurigae> it only takes 4 hours to boot to a command prompt.
[06:41:41] <Lambda_Aurigae> I built one here.
[06:42:20] <Jartza> :D
[06:42:29] <Jartza> that's amazing, even quite useless
[06:42:36] <Jartza> but still amazing
[06:43:15] <Lambda_Aurigae> one hell of a feat though...just the arm emulator.
[06:43:31] <Jartza> yeah
[06:49:33] <Lambda_Aurigae> well, now that I know the microchip serial srams can be overclocked to 40MHz, I might just have a major reboot of my mostly solderless video generator.
[06:50:34] <Jartza> :)
[06:50:48] <Jartza> I'll try looking for tn85 self programming
[06:50:56] <Lambda_Aurigae> it's in the datasheet.
[06:51:00] <Lambda_Aurigae> looks fairly simple.
[06:51:28] <Lambda_Aurigae> load the buffer, erase the block, set the block address, tell it to program.
[06:51:56] <Lambda_Aurigae> block/page
[06:52:15] <Lambda_Aurigae> althernately, erase page, fill buffer, set address, tell it to program..
[06:52:31] <Jartza> yeah
[06:52:35] <Jartza> I have to check it
[06:52:46] <Lambda_Aurigae> section 19 of the datasheet.
[06:52:50] <Jartza> although I was more or less looking for real life example code, but couldn't find any :)
[06:52:59] <Jartza> ...except some asm.
[06:53:05] <Jartza> but I guess that's the way it is then
[06:54:32] <Lambda_Aurigae> each page is 32 words or 64 bytes on the attiny85.
[06:55:14] <Jartza> yup
[06:58:07] <Lambda_Aurigae> http://jtxp.org/tech/tinysafeboot_en.htm
[06:58:25] <Jartza> yeah, that I was already looking at
[06:58:34] <Lambda_Aurigae> http://www.embedded-creations.com/projects/attiny85-usb-bootloader-overview/
[06:58:40] <Lambda_Aurigae> that uses vUSB I think.
[06:58:54] <Lambda_Aurigae> yup..it does.
[06:59:24] <Jartza> yeah
[07:00:00] <Lambda_Aurigae> you could rip the vusb section out and put your modem in there.
[07:00:49] <Lambda_Aurigae> ok..off to worky.
[07:03:06] <Jartza> Lambda_Aurigae: sort of thinking to make my own modem-bootloader :)
[07:03:26] <Lambda_Aurigae> that's what I thought...
[07:03:39] <Lambda_Aurigae> that vusb based one looks like it would be a good base.
[07:09:05] <malinus> Jartza, is yours also doing those relay-clicks all the time :D?
[07:09:30] <Jartza> uhh
[07:09:31] <Jartza> http://www.nongnu.org/avr-libc/user-manual/group__avr__boot.html
[07:09:48] <Jartza> malinus: yes, when changing the volts/div :)
[07:10:01] <malinus> ah
[07:10:08] <Jartza> those avr/boot.h includes seem to work also on attiny85
[07:11:01] <Tom_itx> does it take 10 min for the tubes to warm up?
[07:19:27] <malinus> Jartza, am I being stupid, or shouldn't I be able to get down to 2mV divisions? it seems I can only get down to 20mV
[07:19:51] <Tom_itx> do you have a 10x probe?
[07:20:46] <malinus> ahh
[07:20:47] <malinus> :D
[07:33:35] <Thrashbarg> Does anyone recommend an SPI bus DIP packaged ADC? I'm looking at the MCP3202. I'd like to make a tape delay emulator for a synth project, using an old stick of 30 pin DRAM
[07:34:28] <Thrashbarg> while I've got a tape recorder here with separate playback and record heads, it's heavy and clunky :P
[07:35:20] <Thrashbarg> >30kg heavy :/
[07:35:46] <Tom_itx> i've used some 12bit spi i got samples from maxim
[07:36:00] <Thrashbarg> ok. This is from Microchip, 12-bit again
[07:36:29] <Thrashbarg> 12 bit will just cut it I reckon. Are there 16-bit ones in DIP?
[07:36:45] <Tom_itx> max1202 was one
[07:37:04] <Tom_itx> 1271 was another
[07:37:24] <Thrashbarg> yup
[07:37:31] <Thrashbarg> cool, +/- 5V operation
[07:37:53] <Thrashbarg> the MCP3202 is single rail only
[07:42:28] <Thrashbarg> I made one in the past using a 41256 1-bit DRAM, a Delta-Sigma ADC and an ATtiny2313
[07:45:57] <Jartza> the probe is switchable between 1x and 10x
[07:46:14] <Thrashbarg> that'd be better actually, if I can find a D/S ADC which outputs the raw bitstream
[08:23:59] <Jartza> malinus: also remember to set the probe compensation right away :)
[08:24:07] <Jartza> on my both probes the compensation was way off
[08:24:18] <Jartza> and it was totally overcompensating
[08:38:23] <Jartza> https://www.dropbox.com/s/rvrymrtb4xelj15/pic_7_3.bmp
[08:38:55] <Jartza> that's the modem signal with "simple schema", consisting of 2 resistors, 2 diodes and 2 capacitors
[08:39:13] <Jartza> https://www.dropbox.com/s/vldvrje4zf4jogw/pic_7_1.bmp
[08:39:22] <Jartza> and that's with more complicated circuit
[08:39:33] <Jartza> opamp + 8 resistors + diode
[08:40:11] <Jartza> but both work :)
[09:12:56] <Jartza> d'oh. yeah. #include <avr/boot.h> and everything is easy
[09:13:55] <Thrashbarg> heh
[09:27:24] * Casper beats up Jartza
[09:27:34] <Casper> bmp is bad m'key? use png next time :D
[09:28:07] <Jartza> sorry, hantek makes .bmp files :(
[09:28:21] <Jartza> oh... and .gif :P
[09:28:36] <Casper> gif is less evil than bmp for sure
[09:28:48] <aandrew> Casper: ONLY because you can do animations. :-)
[09:29:03] <Casper> aandrew: that and because it,s compressed
[09:29:07] <Jartza> why didn't I notice the .gif before
[09:29:50] <Jartza> maybe there's an option to only save .gif
[09:30:55] <Jartza> hmmh. saves both formats automatically
[09:31:38] <Jartza> .bmp is like 1.2M and .gif is 27k :D
[09:31:50] <Jartza> maybe next time I share .gif, yes
[09:32:23] <Jartza> or maybe there's a custom fw for the scope that has more conf :)
[09:32:31] <Jartza> I haven't tried fw customization yet
[09:55:30] <malinus> Jartza, when I connect usb and try to save it. it says "no printer detected". :V
[10:01:48] <malinus> Jartza, formatted to fat32 16gb. what do you use?
[10:09:39] <malinus> Jartza, haha. it seems I need to reset it with the usb storage connected.
[10:09:45] <malinus> otherwise it doesn't detect it
[11:07:12] <Jartza> vfat
[11:07:34] <Jartza> but I only have 8G stick
[11:09:00] <Jartza> hmmh
[11:09:05] <Jartza> saleae also shipped
[11:09:43] <Jartza> although they made some mistake with my order... paypal showed that the order was correct and money was reserved from my card, but I didn't get any confirmation in one week
[11:09:53] <Jartza> although webshop said it will ship within 24 hours
[11:10:21] <Jartza> sent email to support, they replied within 15 minutes, said it's their mistake, gave 50€ discount and sent the device right away
[11:10:27] <Jartza> so at least the customer support was spot on
[11:11:33] <Tom_itx> half price saleae?
[11:12:35] <Jartza> not half price
[11:12:41] <Jartza> it was 16 Logic
[11:13:29] <Jartza> around 300€ with taxes & shipping
[11:15:49] <Jartza> I sometimes need to see what's going on in 16 bit parallel connection (proprietary), so I got that
[11:16:05] <Jartza> for my own use even 4 inputs wouldn've been great
[11:31:34] <Jartza> tried now "real" transfer speed with the modem
[11:32:00] <Jartza> sent 1.7MB book over modem and the speed was 1374 B/s
[11:32:40] <Jartza> but now it had extra data, sequence number, crc and two sync pulses after each 10 byte block
[11:33:07] <Jartza> still quite ok
[11:33:17] <Jartza> of course if resending the data, speed will be half
[11:58:54] <Jartza> whoa
[12:00:52] <Jartza> https://www.dropbox.com/s/cwhe2tng1wpcbo1/pic_18_1.gif
[12:01:04] <Jartza> looking quite neat
[12:01:06] <Jartza> no op-amp
[12:01:17] <Jartza> https://www.dropbox.com/s/lvydzqc5jtsaits/simple_modem.png
[12:01:19] <Jartza> just that
[12:17:00] <Jartza> I guess I ditch the op-amp as this looks good enough
[12:21:24] <Jartza> https://www.dropbox.com/s/6q4o6k9i6q4ew7g/pic_18_2.gif
[12:21:29] <Jartza> good enough even from cellphone
[12:21:32] <Jartza> (nexus 4)
[14:15:16] <vyorkin> hi everyone! i have a problem using AVRISP mkII with avrdude. I am also a super newbie (: I'm using mac os x 10.9.3, avrdude version 6.1.
[14:15:28] <vyorkin> http://pastie.org/9309322
[14:16:00] <vyorkin> i'm just trying to read an MCU signature
[14:16:19] <vyorkin> i've read this post http://wiki.dataflow.ws/Electronix/AvrIsp2OnOSX
[14:17:32] <bitd> Is it a chinese rip-off AVRISP?
[14:17:56] <megal0maniac> Who here uses Ubuntu as their primary dev environment?
[14:18:10] <bitd> Lubuntu megal0maniac
[14:18:15] <vyorkin> and patched avrdude on line 743 http://pastie.org/9309327
[14:18:40] <vyorkin> also i've tried with out that patch
[14:19:29] <bitd> Sorry vyorkin, no experience with osx, but I've had similar problems once. Which was caused by using a Chinese rip-off.
[14:19:32] <vyorkin> its a hand-made version (:
[14:19:57] <vyorkin> its just a clone of stk500v2 as far as i know
[14:20:21] <vyorkin> ok! i can try with ubuntu
[14:21:21] <vyorkin> just give me an hour (: i'll be back
[14:21:35] <vyorkin> gonna try on ubuntu
[14:27:11] <Jartza> vyorkin: try avrdude 5.x
[14:28:04] <Jartza> I had similar problems with olimex avrisp mk2
[14:28:11] <Jartza> fixed by downgrading the avrdude
[14:28:28] <vyorkin> what about libusb?
[14:28:37] <vyorkin> should i also downgrade it?
[14:28:43] <Jartza> don't know
[14:28:49] <Jartza> I installed crosspack
[14:29:00] <Jartza> I just downgraded the whole thingie
[14:29:13] <vyorkin> oh, ok, i'll try crosspack
[14:29:20] <vyorkin> thx
[14:29:33] <Tom_itx> crosspack should work
[14:29:42] <Jartza> Version 2013-02-12
[14:29:50] <Jartza> that's the latest with avrdude 5.x
[14:30:56] <Tom_itx> http://www.obdev.at/products/crosspack/download.html
[14:31:39] <Jartza> https://www.olimex.com/forum/index.php?topic=3208.0
[14:31:56] <Tom_itx> had a bit of 2nd hand experience with that and my programmer
[14:37:27] <vyorkin> omg, still have a problem with subdev_send(), even with 5.11.1 http://pastie.org/
[14:38:05] <vyorkin> may thats cuz i've forgot to remove an old libusb from my bins
[14:38:44] <vyorkin> ok, thank you, at least now i have smth to try
[14:43:33] <Jartza> hopefully they fix that to avrdude at some point
[14:43:52] <Jartza> although I use 5.x successfully still
[16:49:46] <vyorkin1> can't get avrdude & avrispmkII working together even on ubuntu 14.04 :(
[16:49:50] <vyorkin1> http://pastie.org/9309663
[16:51:25] <vyorkin1> fuck it, gonna order arduino right now
[16:53:08] <vyorkin> i just need smth to get started as quick as possible
[17:06:56] <RikusW> try avrstudio on windows
[17:08:34] <LoRez> you're virtualizing linux?
[17:09:53] <RikusW> I have XP in a vritualbox, though my dragon won't work (probably due to using the same endpoint for in and out)
[17:10:07] <RikusW> my other CDC programmer works fine
[17:11:04] <LoRez> cdc is easy to virtualize.
[17:11:37] <Jartza> make a programmer out of usb-serial :)
[17:11:56] <RikusW> avrispmkii jtagicemkii and the dragon use the same usb chip with endpoint 02 and 82 this seems to break virtualbox usb
[17:15:58] <vyorkin> LoRez: i'm running ubuntu 14.04 on vmware fusion 6.0.0
[17:16:28] <vyorkin> RikusW: avrstudio works just fine
[17:16:41] <vyorkin> i've tried it today morning
[17:17:02] <RikusW> try a native Linux install
[17:17:49] <Jartza> vyorkin: oh.... which avrispmkII you have?
[17:18:54] <Jartza> if it's olimex, you need to do a firmware-switch in order to use it with avrdude
[17:21:27] <RikusW> or patch avrdude
[17:24:11] <vyorkin> Jartza: its handmade, a long story (: looks like this http://goo.gl/QacwSI
[17:24:39] <Jartza> oh... ok
[17:24:46] <vyorkin> ok, maybe i should buy the original http://goo.gl/Lrcf2o
[17:31:21] <Jartza> so if you have usb-ttl-rs232 -adapter
[17:31:27] <Jartza> build a programmer out of that :)
[17:37:48] <Tachyon`> is there anything like the PCF8574 (I2C shift register) that sources rather than sinks current on the outputs?