#avr | Logs for 2015-06-09

Back
[01:05:10] <rue_house> IN THE SILENCE I HEAR MUSIC. ITS FROM CHINA. I HAVE TO STOP DIGGING HOLES IN THAT YARD THAT ARE SO DEEP.
[01:10:36] <Valen> yeah its pissn off the gnomes
[03:52:13] <Tom_itx> hackvana, ok. the name is nothing what it indicates it is though. it started out from something he showed me that was called that
[04:38:14] <hackvana> I see.
[08:56:03] <stanreg> Would someone know what the resistors on D- and D+ are needed for, on this picture[1] (attiny2313 reading usb signals)? Is it for impedence matching? Which ends up with a cleaner signal? Thus, better reads? [1] https://www.obdev.at/Images/vusb/circuit-zoomed.gif
[08:56:34] <LeoNerd> R1 and R2 ?
[08:57:40] <stanreg> LeoNerd, yes.
[08:57:56] <LeoNerd> Most likely just overcurrent protection in case of a fault
[08:58:13] <stanreg> Oh. So nothing to do with signal shape.
[08:58:25] <LeoNerd> If you have GPIO pins driving other GPIO pins on circuits and either end *can* act as a driver, it's useful to put some amount of resistance there just in case they both try to output at the same time
[08:58:42] <LeoNerd> If the bus forces low while the chip forces high, say, that's a lot of current that's now being shorted. That resistor limits the current
[08:59:54] <stanreg> LeoNerd, gotcha. Well explained. Thanks!
[09:00:03] <LeoNerd> In the "normal" fault-free case of one end being a high-impedance input, these extra little resistors will have no significant effect on behaviour. There's no capacitance around other than stray line cap, so they're unlikely ot change the signal shape much
[09:22:18] <stanreg> Thanks, LeoNerd.
[11:29:31] <guestgavr> How do I read a byte from the flash?
[11:30:58] <guestgavr> I need to read a byte at a random location in th eflash
[11:31:51] <LeoNerd> LPM surely
[11:32:30] <guestgavr> LMP?
[11:32:42] <guestgavr> LPM
[11:35:47] <guestgavr> I see. That's an assembly instruction. Is there a way to read the flash using C code?
[11:37:22] <LeoNerd> Probably. Your compiler or C library may well provide something
[11:38:30] <guestgavr> Is the flash accessible through pointers?
[16:02:58] <hetii> Hi
[16:03:36] <hetii> Q: I play a bit with v-usb and a python libusb wrapper: http://pastebin.com/NWts73Fe
[16:04:03] <hetii> what I should send to get ReadIrmpVersion ?
[16:26:32] <LeoNerd> Ooh :) A parcel from Adafruit arrives at my door
[16:32:10] <Lambda_Aurigae> well, I guess guestgavr never heard of avr/pgmspace.h
[16:32:13] <Lambda_Aurigae> http://www.nongnu.org/avr-libc/user-manual/group__avr__pgmspace.html
[16:32:20] <Tom_itx> wrong address?
[16:37:31] <hypermagic> LeoNerd, and was is still fresh ?
[16:37:44] <hypermagic> do they contain preservatives ?
[16:38:09] <LeoNerd> I don't think Adafruit products are made from *real* fruit
[16:38:13] <LeoNerd> I think that's just a trade name
[16:38:14] <Lambda_Aurigae> ADA was moldy when it was new.
[16:38:17] <hypermagic> :(