#avr | Logs for 2016-07-30

Back
[06:50:32] <kre10s> register summary has 0x23 (PINB) as the first register. 0x00 to 0x22 are not used?
[06:52:28] <kre10s> ah... they are r0...r31 etc
[07:39:46] <theBear> wait, you getting asm and config memspace mixed up ?
[07:40:21] <theBear> course you probly wouldn't know if you were :)
[08:08:40] <kre10s> he. no I was just wondering what the memory addresses bellow 0x22 where used for.
[08:10:13] <theBear> hmm, am i confused about some details i haven't used for years, maybe
[08:11:08] <theBear> gar balls, need to emergency deal with some cripple AAAH no more cahir
[08:11:48] <theBear> farrrrk i was enjoying that cartoon
[08:46:53] <LeoNerd> kre10s: registers 0x20-0x22 would relate to a PORTA, if one existed
[08:47:05] <LeoNerd> E.g. compare to the register map on a tiny84
[16:58:59] <carabia> wazaa
[17:04:46] <inkjetunito> :o
[17:05:04] <carabia> mm mm. so far only worked with cm3s and tiny bit with 0+'s. next week gonna start digging into an m7. thatll be fun, and extensive
[17:06:16] <carabia> all of them been stm. i wish the stm32 channel in freenode wouldnt be so full of clueless retards and trolls.
[17:07:17] <inkjetunito> you could always found a new one
[17:08:54] <carabia> i think the problem is freenode in itself. eventually people are more interested in talking about either cellphones or their favorite choice of linux window manager
[17:09:08] <carabia> this channels a pleasant surprise.
[17:09:20] <carabia> that said, ... keep on truckin.
[17:10:47] <carabia> i really do wish avrs would come down in price after this mcp acquisition
[17:11:44] <inkjetunito> quite often, a fusion has quite the opposite effect
[17:13:46] <inkjetunito> currently wondering about doing a project with through-hole components and usb :(
[17:14:50] <carabia> well, go pic. you can get that.
[17:15:07] <carabia> or nxp cm0
[17:15:47] <carabia> its quite sad to see cm0s being half the price of certain avrs :)
[17:16:16] <carabia> and roundabout 5-6 times cheaper than the top of the line avr8s
[17:17:00] <inkjetunito> is there a good gnu/linux toolchain for those?
[17:17:39] <carabia> well... gnu arm
[17:18:11] <carabia> the other choices are costly or codesize limited.
[17:18:56] <carabia> then gdb and openocd for debugging, and as the ide you pretty much use eclipse. works pretty damn well to be honest.
[17:20:26] <carabia> or alternatively torrent keil mdk =D
[17:22:27] <carabia> for the nxp thing what i meant was they had a cm0 core in DIP
[17:29:06] <Lambda_Aurigae> so, is there an nxp 32bit chip in dip with usb?
[17:30:29] <carabia> yeah now that i checked im not sure if the dip ones do usb even though they run up to 50mhz
[17:30:51] <Lambda_Aurigae> one in the usb range that's dip and it doesn't actually have usb..
[17:30:55] <Lambda_Aurigae> in the lpc1100 series.
[17:31:10] <carabia> theres one that does 30, one that does 50. my googling is a bit hampered as im on a phone
[17:31:18] <carabia> yeah.
[17:31:32] <Lambda_Aurigae> lpc800 series does not have usb
[17:31:37] <Lambda_Aurigae> only the lpc1100
[17:31:44] <carabia> i naturally assumed but you gotta double check
[17:31:50] <carabia> yes
[17:32:10] <Lambda_Aurigae> and the lpc1114fn28 is the only dip in that series.
[17:32:11] <Lambda_Aurigae> and
[17:32:12] <Lambda_Aurigae> no usb
[17:32:23] <carabia> im quite sure mcp carries pics in dip with usb
[17:32:55] <carabia> dont they?
[17:33:06] <Lambda_Aurigae> so I'll stick with pic32mx270f256b that is available in dip, with usb, and 256K flash and 64K sram running at 50MHz/83DMIPS on a MIPS 32 core.
[17:33:12] <Lambda_Aurigae> yup.
[17:33:41] <Lambda_Aurigae> in 8bit, 24bit, and 32bit models actually.
[17:33:49] <Lambda_Aurigae> but I like the pic32 as it's not a pic core but mips.
[17:34:00] <carabia> yeah
[17:34:15] <Lambda_Aurigae> can be programmed with XC32 or SDCC
[17:34:19] <carabia> isnt it "mips4000"?
[17:34:59] <Lambda_Aurigae> M4K, so, yeah
[17:36:38] <carabia> yea. quite disappointed in that nxp not having usb.
[17:37:08] <Lambda_Aurigae> in fact, microchip is the only manufacturer I've found with a usable usb device in dip package.
[17:37:15] <carabia> that pic is a god damn beast. $?
[17:37:17] <Lambda_Aurigae> cypress used to have a couple.
[17:37:46] <Lambda_Aurigae> 4.32 USD at digikey.
[17:37:59] <carabia> hahah.
[17:38:01] <Lambda_Aurigae> free from microchip samples
[17:38:28] <Lambda_Aurigae> it has a nifty feature that I just love too....running code from sram.
[17:38:32] <carabia> well yea. i know pics are cheaper but even considering avrs vs that.
[17:39:08] <Lambda_Aurigae> yeah...I use a lot of atmega1284p for the massive sram on it compared to other AVRs
[17:39:23] <carabia> even then its only 16k
[17:39:46] <Lambda_Aurigae> and those are 8 to 9 USD each.
[17:39:50] <Lambda_Aurigae> and only 8bit to boot!
[17:39:57] <carabia> and 1284 is like close to $10 in small volumes or so...?
[17:40:03] <carabia> yeah.
[17:40:11] <Lambda_Aurigae> digikey has them for 8.51 or 7.96
[17:40:19] <Lambda_Aurigae> not sure what the difference between the two entries is.
[17:40:27] <carabia> i like them for having 2x uarts too.
[17:40:35] <Lambda_Aurigae> yup.
[17:40:41] <carabia> could be p or no p.
[17:40:47] <carabia> picopower...
[17:40:49] <Lambda_Aurigae> yeah.
[17:40:51] <Lambda_Aurigae> that's it.
[17:40:55] <Lambda_Aurigae> P is more expensive.
[17:41:01] <carabia> yeah.
[17:41:38] <Lambda_Aurigae> only drawback on the pic32mx270f256b is that it doesn't have an external ram interface like some of its brothers.
[17:41:47] <carabia> but still dropping $8+ on a 128/16k 8b 20mhz mcu is just plain wrong in 2k16.
[17:41:49] <Lambda_Aurigae> would be awesome if they put an SQI external ram interface on it.
[17:42:20] <carabia> how many pins does it have overall?
[17:42:24] <Lambda_Aurigae> I got a shitton of the atmega1284p chips some years back.
[17:42:27] <Lambda_Aurigae> 28pin dip.
[17:42:45] <carabia> 28... external ram would eat up a lot
[17:42:54] <Lambda_Aurigae> sqi uses 4 to 7 lines.
[17:43:08] <carabia> you got them as free samples?
[17:43:18] <Lambda_Aurigae> it's basically an SPI ram interface that gives you the ability to run 1, 2, or 4 data lines.
[17:43:24] <Lambda_Aurigae> yeah..microchip is good for samples.
[17:43:32] <carabia> oh sqi. alright. whats the latencies on that then
[17:43:33] <Lambda_Aurigae> at least, to the USA.
[17:43:41] <Lambda_Aurigae> oh, it would be horribly slow I'm sure.
[17:43:45] <carabia> i mean the 1284s
[17:43:47] <Lambda_Aurigae> never gotten a chip with that interface.
[17:43:53] <carabia> yee...
[17:44:01] <Lambda_Aurigae> oh...yeah, I did get some 1284p chips as samples back when.
[17:44:15] <Lambda_Aurigae> then found a wholesaler who had a box of them for 4.50 each.
[17:44:28] <carabia> hahah what
[17:44:44] <Lambda_Aurigae> was looking at a clearance rack at a wholesaler.
[17:44:53] <Lambda_Aurigae> the box was marked atmega16
[17:44:53] <carabia> hot chips im sure
[17:45:02] <carabia> ohhh
[17:45:15] <Lambda_Aurigae> but there were 40 atmega1284p chips in there instead.
[17:45:26] <Lambda_Aurigae> they didn't even look inside when I grabbed the whole box.
[17:45:56] <Lambda_Aurigae> at the time the 1284p was around 12 USD each.
[17:46:07] <carabia> if you ram and dont care too much about the speed you could just get those mcp spi srams
[17:46:08] <Lambda_Aurigae> someone goofied!
[17:46:19] <Lambda_Aurigae> have some.
[17:46:22] <carabia> need ram*
[17:46:24] <Lambda_Aurigae> 1Mbit serial srams.
[17:46:31] <carabia> yes
[17:46:37] <Lambda_Aurigae> both nv and non-nv versions.
[17:47:01] <Lambda_Aurigae> some of the pic32 chips can actually map those to memory.
[17:47:05] <carabia> can be clocked up to 20mhz spi iirc
[17:47:10] <Lambda_Aurigae> through an SQI memory interface.
[17:47:11] <Lambda_Aurigae> yup.
[17:47:21] <Lambda_Aurigae> actually, I've clocked them at 30MHz for short periods.
[17:47:26] <carabia> thats really nice. though you could write routines too
[17:48:01] <Lambda_Aurigae> well, what I'm doing with the pic32 I have now is putting functions/libs in flash and writing programs that can be loaded on the fly into sram that will use those functions/libs.
[17:48:15] <Lambda_Aurigae> putting a full OS on the chip with a C interpreter in it..
[17:48:32] <Lambda_Aurigae> kinda like the old C64 style system but C instead of BASIC
[17:49:03] <Lambda_Aurigae> with a standard jump table that points to the routines in flash
[17:49:15] <carabia> hmm. interesting. your private project?
[17:49:33] <Lambda_Aurigae> so you can compile offchip and load program to run natively from ram or you can load the C code to ram and run it interpreted.
[17:49:36] <Lambda_Aurigae> yeah.
[17:49:42] <Lambda_Aurigae> one I've been hacking on for about 5 years now.
[17:49:57] <Lambda_Aurigae> started with the atmega1284p but it came up short of flash and kinda slow.
[17:50:17] <carabia> well... and ram
[17:50:19] <Lambda_Aurigae> the pic32mx270f256b has much more flash and sram and runs about 4 times the speed.
[17:50:31] <Lambda_Aurigae> twice the flash, 4 times the sram, and 4 times the speed.
[17:50:35] <Lambda_Aurigae> and has hardware USB built in.
[17:50:37] <carabia> yeah
[17:51:16] <carabia> and, half the price roughly \o/
[17:51:18] <Lambda_Aurigae> ok..gotta go help the wifey with canning.
[17:51:20] <Lambda_Aurigae> yeah..that too.
[17:51:44] <carabia> happy trails... good talking to ya.
[17:51:45] <Lambda_Aurigae> my microchip rep sent me 20 of them a while back when I told him about teaching microcontrollers to kids in my spare time.
[17:51:52] <Lambda_Aurigae> hmm...seems we aren't ready.
[17:52:08] <carabia> oh.
[17:52:12] <Lambda_Aurigae> he sent me a whole big box of STUFF.
[17:52:31] <Lambda_Aurigae> port expanders, serial SRAMs, various microcontrollers.
[17:52:38] <carabia> yeah. im sure youve been teaching kids with pic32 all day every day... :)
[17:52:43] <Lambda_Aurigae> nope.
[17:52:47] <Lambda_Aurigae> just started this year.
[17:53:01] <carabia> i kind of figured that much
[17:53:06] <Lambda_Aurigae> the last 10 years has been AVR.
[17:53:10] <carabia> oh really?
[17:53:24] <carabia> oh so it wasnt all smoke and mirrors
[17:53:32] <Lambda_Aurigae> it's a summer free time thing...every other weekend,,,3 to 6 kids a summer usually.
[17:53:49] <carabia> what kind of an age group you got
[17:53:52] <Tom_itx> sounds like what rue does
[17:54:02] <Lambda_Aurigae> 10 to 18...depends on the kid.
[17:54:27] <Lambda_Aurigae> teach them electronics from the ground up with Mimms books.
[17:54:46] <carabia> so for this year schools been out for a while... are the leds blinkin away already??
[17:54:48] <Lambda_Aurigae> and some programming and microcontroller work...lots of digital electronics, not so much analog.
[17:55:03] <Lambda_Aurigae> and we get into some robotics.
[17:55:11] <Lambda_Aurigae> more robotics as the kids get older and learn more.
[17:55:35] <Lambda_Aurigae> this year I currently have 2 beginners and 3 kids who have been here before.
[17:55:54] <Lambda_Aurigae> so the more advanced ones are building survival bots.
[17:56:19] <Lambda_Aurigae> they will have an area of the workshop to explore and survive and possibly fight for resources..
[17:56:33] <carabia> but id imagine you could teach analog stuff too, basics and rough estimations on behaviour not getting into formulae... and illustration is so easy as testgear is cheap
[17:56:50] <Lambda_Aurigae> resources being things like a wireless charger area or two, or batteries they can pick up.
[17:56:56] <Lambda_Aurigae> basics, yes..
[17:57:15] <Lambda_Aurigae> I don't get into RF at all beyond building a simple AM transmitter and receiver.
[17:57:22] <carabia> well that sounds fun though
[17:57:24] <Lambda_Aurigae> a little bit of amplifier stuff.
[17:57:39] <carabia> the bots that is.
[17:57:45] <Lambda_Aurigae> I have this box of several hundred opamps of about 8 different varieties.
[17:57:49] <Lambda_Aurigae> yeah..the bots are fun..
[17:57:56] <carabia> could probably spark interest to study further
[17:57:59] <Lambda_Aurigae> yup.
[17:58:01] <Lambda_Aurigae> that's the idea.
[17:58:04] <Lambda_Aurigae> I don't get paid for it
[17:58:08] <Lambda_Aurigae> don't charge them anything for it.
[17:58:23] <Lambda_Aurigae> only thing they would have to pay for is anything they want to keep when they leave.
[17:58:30] <carabia> and then theyll learn the basics anyway. so yeah i guess your approach is really good
[17:58:46] <Lambda_Aurigae> I provide all the wire and solderless breadboards and bits and pieces.
[17:59:10] <Lambda_Aurigae> I get a lot of robotics gear as old printers and stuff my boss lets me scavenge from the copier/printer bone pile at work.
[17:59:16] <carabia> can you snatch that from work or so?
[17:59:24] <Lambda_Aurigae> I get printers from work, yeah.
[17:59:32] <carabia> yea figures
[17:59:33] <Lambda_Aurigae> and have access to lots of stuff in the junk pile.
[17:59:46] <carabia> im quite slow at typing on this god damn phone
[17:59:57] <Lambda_Aurigae> I currently have 18 identical old okidata impact matrix printers waiting to be torn down.
[18:00:31] <Lambda_Aurigae> those are going to become the slides, positioning systems, and motors for a 3D printer and 3D eraser(milling machine)
[18:00:36] <carabia> good stuff for gearing and motors and drivers
[18:00:38] <Lambda_Aurigae> ok..now I gotta flit and start work on supper.
[18:00:52] <carabia> haha. peace out, nice talking to ya.
[18:46:12] <Lambda_Aurigae> taco-ish egg rolls in the air fryer
[18:46:20] <Lambda_Aurigae> and wifey is canning 20 pounds of MEAT!