#avr | Logs for 2014-07-19

Back
[01:43:02] <rue_house> whats the advantage to using studio?
[01:44:46] <twnqx> you finally have an excuse to kick linux
[02:07:17] <Evidlo> I'm looking for a ~20 pin QFN atmel. Any suggestions?
[02:41:00] <Tachyon`> the 328 comes in that package if needed, although I'm assuming ~20 can include 32, lol
[02:46:12] <twnqx> aren't there some usb megas as well
[04:21:13] <sabesto> i dont think you can find any QFN AVR's with less then 32 pins
[04:21:50] <sabesto> you can get tinys in tsop 16 or maybe less
[04:25:13] <twnqx> soic8? :>
[04:28:14] <sabesto> freescale MKL02Z32CAF4R, 1.99x1.94mm 20 pin bga-ish
[04:28:34] <sabesto> basicly just the die, try that :P
[04:52:23] <_abc_> Does the Linux driver id fake FT232RLs now?
[04:52:32] <_abc_> I might have a set of bad FT232RLs not from ebay
[04:56:05] <_abc_> Owait I have ti ones which do not have the 400k pullups inside as the max ones should
[04:56:09] <_abc_> bummer
[05:05:10] <inflex> *yawn*
[10:27:21] <Tom_itx> sabesto, tiny's also come in sot23-6
[12:44:43] <Evidlo> The attiny85 comes in a 20pin QFN
[13:12:36] <ivanshmakov> As it seems, the TWI interface requires a screenful or two of code to drive it properly. Curiously, are there any free (as in freedom) examples for that?
[13:13:24] <Lambda_Aurigae> probably.
[13:13:51] <Lambda_Aurigae> master or slave?
[13:13:57] <Lambda_Aurigae> http://homepage.hispeed.ch/peterfleury/avr-software.html
[13:14:04] <Lambda_Aurigae> fleury's libs are nice.
[13:14:12] <Lambda_Aurigae> he has an i2c(twi) master lib there.
[13:15:30] <ivanshmakov> Lambda_Aurigae: Preferrably, – both. But a master will suffice right now.
[13:16:00] <Lambda_Aurigae> I have been partial to procyon avrlib in the past but it hasn't been updated in a long time...still functional though.
[13:16:36] <Lambda_Aurigae> http://www.procyonengineering.com/embedded/avr/avrlib/
[13:16:41] <Lambda_Aurigae> he has a lot of good stuff in there.
[13:17:31] <Lambda_Aurigae> for i2c(twi) he has master and slave in both interrupt and non-interrupt versions.
[13:17:37] <ivanshmakov> (Wonderful, that Fleury’s library even comes with a “purely software” counterpart!)
[13:18:24] <Lambda_Aurigae> fleury's libs are part of the basic gotta have for beginners in my opinion.
[13:18:59] <ivanshmakov> Lambda_Aurigae: It’s more for a task for my AVR introduction at Wikiversity than for real use, so simplicity and readability are of utmost importance.
[13:19:23] <Lambda_Aurigae> I use it for teaching microcontrollers to kids,,ages around 10 to 16.
[13:23:43] <ivanshmakov> Lambda_Aurigae: An acquaintance of mine was interested in an introduction for a daughter of that age, which was one of the reasons I started https://ru.wikiversity.org/wiki/Архитектура_AVR_в_примерах. Could you please take a glance at the two tasks I’ve already translated to English to see if there’s anything to improve given the age?
[13:24:41] <ivanshmakov> (My prior students – and “students” – were generally in the 20+ range.)
[13:47:19] <Lambda_Aurigae> I teach on the fly according to the students' ability and desire to learn.
[13:47:34] <Lambda_Aurigae> and find that 12 year olds are often easier to teach complex things than 20 year olds.
[13:47:56] <Lambda_Aurigae> aand, i don't see anything in english.
[13:50:01] <ivanshmakov> Lambda_Aurigae: Unless something has gone wrong, there should be an “English” link on the sidebar?
[13:50:32] <Lambda_Aurigae> it must be in russian.
[13:50:37] <ivanshmakov> Lambda_Aurigae: Personally, I’ve found that 50 years old are sometimes easier to teach than 20 years old, either.
[13:50:38] <Lambda_Aurigae> which I never learned to read.
[13:53:24] <ivanshmakov> Lambda_Aurigae: Well, sorry, I was thinking about doing some tweaks to the page /and/ adding the link to the English version, but I see now that I haven’t actually had that done. The English version is at https://en.wikiversity.org/wiki/AVR_programming_introduction. (Naturally, it has a “Русский” link right from the start.)
[13:53:57] <Lambda_Aurigae> No learning resource is available by this exact name yet.
[13:54:34] <ivanshmakov> Lambda_Aurigae: Is it possible that you’ve copied the URI with the trailing period (‘.’)?
[13:54:45] <Lambda_Aurigae> yup
[13:54:49] <Lambda_Aurigae> there it is.
[13:55:53] <ivanshmakov> Lambda_Aurigae: I’ve got only a couple of tasks translated into English so far, and there’re actually a couple of tasks listed which weren’t actually written at all.
[15:10:56] <Tom_itx> ivanshmakov, TWI example: http://tom-itx.ddns01.com:81/~webpage/avr/i2c/
[15:10:59] <Tom_itx> dallas RTC
[15:14:05] <ivanshmakov> Tom_itx: ACK, thanks.
[18:49:04] <balrog-k1n> do all jump instructions take 2 cycles? is there any trick to do a 1-cycle jump?
[21:57:15] <Evidlo> Would it be ok to connect VCC to an NC pin on at attiny? It would make my routing much easier
[22:00:09] <kastein> check the datasheet
[22:00:36] <kastein> nc sometimes must be left nc, sometimes it means not connected internally and you can do whatever you want with it
[22:00:50] <Evidlo> It can differ for each pin?
[22:07:56] <Casper> better left unconnected
[22:08:02] <Casper> if you are in doubt
[22:08:26] <Casper> but I beleive they mean no internal connection on atmel
[22:08:47] <Evidlo> The datasheet calls them Do Not Connects, if that matters
[22:08:51] <Evidlo> doesn't give any info beyond that
[22:16:56] <Casper> DNC.... most likelly mean it have internal connection
[22:17:25] <Evidlo> Well balls
[22:17:31] <Casper> ... man my wall unit A/C is so quiet... that I can actually hear the water dripping from the cooling fins to the collection bin bellow
[22:17:42] <Casper> wait no
[22:17:55] <Casper> there is a not well closed faucet upstair...
[22:18:00] <Casper> it's the water in the pipe...
[22:36:19] <Evidlo> Do you think my Attiny would complain if I reduced my my grounding pad by ~30%?
[22:38:46] <Tom_itx> it might only give you 70% ground
[22:39:17] <Tom_itx> are you that squeezed for space?
[22:45:11] <Evidlo> Tom_itx: http://imgur.com/9jjSLr8
[22:45:29] <Evidlo> All my attiny is doing is generating a PWM signal and sending some data over uart
[22:57:51] <Tom_itx> PS1?
[22:58:41] <Tom_itx> i'm not sure i'd put that thru hole next to the GND pad as it is a blind spot and if you got a bridge you'd have no way to fix it
[23:06:04] <Evidlo> Tom_itx: Wouldn't the soldermask prevent that?
[23:06:19] <Tom_itx> depends on how well it's done
[23:06:28] <Tom_itx> i wouldn't rely on it personally
[23:06:41] <Evidlo> Maybe I can just use a jumper wire
[23:07:00] <Tom_itx> i can see where you can move it outside the chip pretty easy
[23:07:03] <Tom_itx> to the right
[23:07:27] <Evidlo> Tom_itx: I didn't want to bisect my ground plane though
[23:07:28] <Tom_itx> drop the 2nd bottom trace to the right down a bit and it will fit outside it
[23:08:27] <Tom_itx> run it from the left pin on the bottom until you get to the 4 traces to the right of the chip
[23:08:41] <Tom_itx> it would mean a couple extra vias
[23:09:01] <Evidlo> I see it
[23:09:02] <Tom_itx> move the 2nd blue trace down a bit
[23:09:10] <Evidlo> Let me try
[23:09:12] <Tom_itx> so it's under the 3 top ones
[23:09:22] <Tom_itx> and put the via inside it
[23:09:27] <Tom_itx> on the outside of the chip
[23:11:31] <Tom_itx> that must be the ISP plug
[23:12:09] <Evidlo> Yea this is the MOSI line
[23:13:33] <Tom_itx> what's that 28 pin chip above it?
[23:13:42] <Evidlo> Hbridge controller
[23:13:49] <Evidlo> allegro a3921
[23:14:44] <Tom_itx> http://tom-itx.ddns01.com:81/~webpage/temp/A3995_hbridge.png
[23:16:17] <Evidlo> Yeah, I don't know why this one is so big
[23:16:40] <Tom_itx> is that pad under it what they call for?
[23:17:01] <Evidlo> Yes
[23:17:11] <Evidlo> It has a build in LDO
[23:17:57] <Tom_itx> is that the crystal and caps under it?
[23:18:33] <Tom_itx> err on top of..
[23:18:44] <Evidlo> Yea its a murata something 8mhz
[23:19:04] <Tom_itx> what about an oscillator?
[23:19:19] <Evidlo> For what?
[23:19:29] <Tom_itx> the avr
[23:19:33] <Tom_itx> instead of the crystal
[23:19:49] <Tom_itx> these are pretty tiny: http://tom-itx.ddns01.com:81/~webpage/boards/USBTiny_Mkii/USBTiny_Mkii_index.php
[23:19:54] <Tom_itx> Q1
[23:20:27] <Evidlo> Looks like the same package as my crystal
[23:20:31] <Evidlo> Without the caps
[23:20:39] <Tom_itx> maybe it is
[23:20:55] <Tom_itx> that one doesn't require caps
[23:22:08] <Evidlo> What device is it?
[23:22:24] <Evidlo> Whats the name of oscillator?
[23:22:50] <Tom_itx> that one is 16Mhz
[23:23:09] <Tom_itx> http://www.digikey.com/product-detail/en/CSTCE16M0V53-R0/490-1198-1-ND/584635
[23:23:23] <Tom_itx> you can check that series and find an 8Mhz probably
[23:23:52] <Evidlo> That's exactly what I have...
[23:24:06] <Tom_itx> you don't need caps if it is
[23:24:50] <Tom_itx> Features Built in Capacitor
[23:25:03] <Evidlo> Needs to be grounded though?
[23:25:06] <Evidlo> Center pin?
[23:25:08] <Tom_itx> yes
[23:25:20] <Tom_itx> dump those caps under the hbridge
[23:25:27] <Tom_itx> you don't need em
[23:25:29] <Evidlo> above
[23:25:33] <Tom_itx> yeah
[23:25:47] <Tom_itx> double check your data sheet though
[23:25:50] <Tom_itx> i bet you don't
[23:26:00] <Evidlo> It's the exact same model
[23:26:15] <Tom_itx> i've used hundreds of those with no caps
[23:26:41] <Evidlo> I need to edit my symbol and add a 3rd pin
[23:26:56] <Tom_itx> i could give you the eagle part
[23:27:20] <Tom_itx> looks like you've already got it though
[23:27:26] <Tom_itx> just add the 3rd gnd pin
[23:28:20] <Tom_itx> just for appearance i'd center it on the 2 pins
[23:28:24] <Tom_itx> but that's just me
[23:29:39] <Tom_itx> are you using a keyed header like i did on my boards?
[23:29:43] <Tom_itx> for the ISP
[23:29:59] <Tom_itx> at least make pin 1 a square pad or something
[23:30:17] <Tom_itx> or mark it in the silk
[23:31:39] <Evidlo> I haven't added the silkscreen stuff yet
[23:31:43] <Evidlo> I started this this morning
[23:31:57] <Tom_itx> looks pretty good overall
[23:33:21] <Tom_itx> you better test the GND pour to make sure it covers those open pads on the caps
[23:33:54] <Tom_itx> anyway.. i'm off to sleep
[23:35:18] <Evidlo> Yea, thanks for the help