#avr Logs

Jun 13 2017

#avr Calendar

05:13 AM noHitW_work: g'day
05:23 AM skz81: <polprog> left handed screwdrivers >> Ermm altogether... I should not have searched http://www.urbandictionary.com/define.php?term=left%20handed%20screwdriver
05:49 AM Emil: skz81: one could actually make left and right handed screwdrivers by modifying the ergononomics
06:24 AM cehteh: and screwdrivers for screwing in and out each :D
06:45 AM Lambda_Aurigae: I've seen screws that can only be turned one way.
06:45 AM Lambda_Aurigae: the other way is a slope so the screwdriver slips on it...
06:45 AM Lambda_Aurigae: you can tighten but not loosen.
06:45 AM Lambda_Aurigae: and I have a left handed pen.
06:47 AM cehteh: i know
06:52 AM Emil: Lambda_Aurigae: that's diabolical
06:53 AM cehteh: tamper proof etc
06:53 AM Lambda_Aurigae: yeah.
06:53 AM cehteh: http://www.nuttybolts.com/fasteners/images/one%20way%20oval%20head%20machine%20screws%20zinc.JPG
06:54 AM Lambda_Aurigae: https://www.partitionsandstalls.com/ss-s-nut-3-4-7-8-grip.html?gclid=CKDigNTautQCFZA0aQodOFAKZw
06:55 AM * cehteh just uses hex screws (hex hole) .. and fills the hole with epoxy after finishing :D
06:55 AM Lambda_Aurigae: I use rivets.
06:55 AM cehteh: and loctite metal glue for the thread
06:55 AM Lambda_Aurigae: pop rivets even.
06:55 AM Lambda_Aurigae: loctite...bah....j-b weld!
06:56 AM cehteh: in this case it was a big shackle to secure bikes on the wall
06:56 AM cehteh: if someone can unscrew it, it defeats the purpose
06:56 AM Lambda_Aurigae: hence, j-b weld.
06:56 AM Lambda_Aurigae: 2 part epoxy that, once set, is generally stronger than the material it attaches to.
06:57 AM cehteh: depends on the epoxy
06:57 AM Lambda_Aurigae: I made bolt insets that lasted until the concrete fell apart 15 years later.
06:57 AM cehteh: but the loctite i used is very strong, not the thread lock
06:57 AM Emil: cehteh: Lambda_Aurigae I bet I could screw those the other way, too
06:57 AM Emil: That angle is way too deep
06:58 AM cehteh: the one which you use when you want to glue sprockets on a shaft
06:58 AM Lambda_Aurigae: drilled the bolt holes, then drilled angled holes across them in a smaller diameter
06:58 AM Lambda_Aurigae: then...drilled a couple of holes through the bolts...these were 1 inch diameter.
06:58 AM cehteh: too much
06:58 AM cehteh: and i used harder steel, not easy to drill
06:59 AM Lambda_Aurigae: filled holes with j-b weld...put bolts into said holes...so j-b weld was surrounding and through the cross hole and through the holes in the bolts.
06:59 AM Lambda_Aurigae: the kids NEVER pulled those out again.
06:59 AM Lambda_Aurigae: they were anchor bolts for the ropes in a pool.
07:00 AM Lambda_Aurigae: they stayed for about 15 years until the pool was bulldozed.
07:00 AM cehteh: :D
07:01 AM Lambda_Aurigae: someone recently did a hackaday thingie where they cast a gas engine cylinder head out of j-b weld...and it ran..for a while anyhow.
07:02 AM cehteh: haha .. i seen lost such vids, with pistons made from wood etc
07:02 AM cehteh: it works .. for some time
07:05 AM Lambda_Aurigae: I've used j-b weld to repair cracked water jackets in car motors on two occasions now.
07:06 AM Lambda_Aurigae: one ran for at least 2 years until we sold it and the other ran for 1 year before I sold it.
07:41 AM cehteh: i think j-b weld isnt available in germany, at least i never seen it
07:41 AM cehteh: but i have some industrial pmma glue too which has awesome properties
07:42 AM cehteh: bit expensive .. 20Eur for a 60gramms tube
07:59 AM daey: cehteh: ordering chemicals is a pita. everything is flagged as "cant be shipped" on digikey etc.
11:06 AM remkooo1 is now known as remkooo
11:34 AM day__ is now known as daey
12:48 PM JanC_ is now known as JanC
01:19 PM polprog: hmm, so wi written out the hex table for the font for my 7 seg
01:20 PM polprog: i written*
01:20 PM theBear: font ? you mean full 7seg-munged alphybet or just a few and digits ?
01:21 PM polprog: not that horrible alphabet
01:21 PM polprog: just digits 0-9 for now
01:21 PM polprog: im thinking about A-F
01:21 PM polprog: but i ran out of space on the paper scrap :P
01:23 PM theBear: the umm, you mean for driving it without a bcd chip kinda style ? like the translation stuff from value to useful display ?
01:24 PM DKordic: rue gave You the solution for it 48hrs ago :) .
01:26 PM polprog: yeah. but i was bored
01:26 PM polprog: and his was in c
01:27 PM polprog: and i wanted to do something on maths today
01:29 PM DKordic: Why haven't You programmed calculator functions in AVR asm then :) ?
01:34 PM polprog: i left my programmable casio at home
01:34 PM polprog: and it's only programmable in casio basic xD
01:35 PM polprog: i think the ti89 could be programmed in C
01:35 PM polprog: ergo it could be programmed in assembly (?) , not sure if any assembler existed
01:38 PM polprog: rues solution is very elegant
01:39 PM polprog: i like the idea of first associating bits with segments via defines, and then defining digits via segments, not via bits.
01:41 PM polprog: huh, neat: http://www.ticalc.org/basics/calculators/ti-89.html#9
01:46 PM theBear: woop sorry wandered off, and i pretty sure i wasn't here to ask 48hrs ago, oh, not me, but either way, thanks fer bothering to tell me, err, assuming that was a yes on the last question
02:00 PM Emil: https://youtu.be/KGJtfOHAT0g
02:00 PM Emil: I have never enjoyed listening to roleplay this much before
02:02 PM theBear: heh i like it
02:02 PM polprog: flight simulator multiplayer
02:02 PM polprog: wow
02:04 PM theBear: polprog, and the image looks even more boring than old singleplayer non-talking ones :)
02:05 PM polprog: ah, its only a recording :/
02:05 PM polprog: i thought its a vid
02:05 PM Emil: polprog: flight sim multiplayer is one of the oldest
02:05 PM polprog: but hey, last time i started flightgear it took me 20 mins to start the cessna engine
02:05 PM polprog: im not this much into flight sim
02:05 PM Emil: stems from all the sims nasa/usaf had to develop
02:05 PM Emil: neither am I
02:06 PM polprog: i guess so :P
02:06 PM Emil: polprog: it is live video
02:06 PM Emil: not just a recording
02:06 PM polprog: so will that cabin image change at some point?
02:07 PM Emil: theBear: watch the whole thing :D
02:07 PM theBear: gettin there
02:07 PM polprog: finally 3:40
02:13 PM polprog: i like that vid, it's the "the website is down" type,
02:23 PM Emil: hehe
02:23 PM Emil: I should watch those again
02:23 PM polprog: :')
02:32 PM aczid: Emil: that's a good one, thx
02:38 PM Emil: aczid: that channel has a lot more funny content, also
02:45 PM Emil: oh man
02:46 PM Emil: This is worse now that I actually know what's happeninh
02:46 PM Emil: holy shit
02:46 PM polprog: what
02:46 PM Emil: I would have committed sudoku loong ago
02:46 PM Emil: l
02:46 PM Emil: Watching the "Website is down"
02:46 PM polprog: lol
02:46 PM polprog: it's classic
02:46 PM Emil: I didnt remember it was this bad
02:46 PM Emil: https://youtu.be/uRGljemfwUE
02:47 PM polprog: ah, this is the best one :P
02:47 PM Emil: It is the original creator
02:47 PM polprog: i found out about Halo CE from it
02:47 PM Emil: lol
02:56 PM xentrac: cehteh: can you get other heat-resistant two-part epoxy in germany? you could probably make j-b weld by mixing steel poder with the epoxy
02:57 PM cehteh: the epoxy i used for that was mould making epoxy with contains aluminium powder
02:57 PM cehteh: i have a lot types of epoxy here anyway
02:58 PM xentrac: I wouldn't expect it to last on a cylinder head though, since it's exposed to burning gasoline, which I think is going to be hot enough to break down the epoxy
02:59 PM xentrac: (steel powder, I mean, although I think you understood me anyway)
03:08 PM cehteh: this application here was only to make hex bolts tamper proof
03:08 PM cehteh: epoxy generally isnt that good with heat
03:08 PM cehteh: some loose strength as early as 60°C
03:09 PM cehteh: there are high temperature epoxies but iirc around 180°C its over too
03:12 PM NoHitWonder^: what was that digitally controlled rgb led?
03:13 PM NoHitWonder^: nvm found it
03:15 PM polprog: hey that ws2812b is peanuts
03:15 PM polprog: nice, didnt bother checking the price before
03:18 PM NoHitWonder^: polprog these micros that end with "PB" , is there something special about them
03:19 PM polprog: NoHitWonder^: i havent got all the endings yet, what i know is that L is lov voltage and A is wide voltage range
03:19 PM NoHitWonder^: ok
03:19 PM polprog: http://www.atmel.com/Images/Atmel-42559-Differences-between-ATmega328P-and-ATmega328PB_ApplicationNote_AT15007.pdf
03:19 PM NoHitWonder^: i remember someone here had problems with PB
03:20 PM polprog: yeah
03:20 PM polprog: i think one of those is used in the arduino uno
03:20 PM NoHitWonder^: thanks mate
03:20 PM polprog: looks like 328pb has VCC and GND in a totally different place?
03:21 PM polprog: s/place/pin/
03:21 PM NoHitWonder^: seems like this atmega324PB is a chip for me
03:21 PM polprog: im looking through that pdf, it looks sensible
03:21 PM NoHitWonder^: *the
03:22 PM polprog: oh it has rtc and 3 uarts, wow
03:23 PM polprog: its only in SMD
03:23 PM NoHitWonder^: TQFP is fine
03:23 PM polprog: yeah, i like it too
03:24 PM NoHitWonder^: my need is 4 timers and 1 uart and low memory and cheap as possible
03:25 PM polprog: i could use that builtin rtc for a clock project
03:25 PM polprog: something for my desk :)
03:25 PM NoHitWonder^: yep
03:26 PM NoHitWonder^: http://www.mouser.fi/Search/Refine.aspx?Keyword=324PB do you know the diffrence between "-AU" and "-AN"
03:26 PM NoHitWonder^: +
03:26 PM NoHitWonder^: ?
03:28 PM polprog: my google fu is failing me
03:28 PM polprog: a would definitely stand for wide voltage range...
03:29 PM polprog: theres some forum thread here that suggests to look at the "ordering information" part of the datasheet
03:30 PM polprog: looks like it's about the package type
03:30 PM NoHitWonder^: ok
03:33 PM NoHitWonder^: this would be even better than 324PB http://www.atmel.com/Images/Atmel-2513-8-bit-AVR-Microntroller-ATmega162_Datasheet-Summary.pdf
03:34 PM NoHitWonder^: well its not actually
03:34 PM NoHitWonder^: it more exspensive
03:35 PM NoHitWonder^: but features would suit better
03:35 PM polprog: > Up to 64K Bytes Optional External Me
03:35 PM polprog: mory Space
03:35 PM polprog: interesting
03:35 PM polprog: cartridges? :P
03:38 PM polprog: i wonder if all that branch instructions are really necesary
03:38 PM polprog: like brie, branch if interrupt enabled
03:39 PM polprog: for a couple cycle overhead you could replace all that bit-test branches with a general branch-if-bit-set/cleared one
03:39 PM NoHitWonder^: external ram
03:39 PM NoHitWonder^: why would you need it, i dont know
03:40 PM NoHitWonder^: just get a bigger chip at that point
03:41 PM polprog: and then the decoder could be simpler :P
03:42 PM polprog: NoHitWonder^: it could be used for image processing... but yeah, better to get some beefier chip
03:45 PM NoHitWonder^: yeh
03:45 PM NoHitWonder^: 328PB is cheaper than 324PB
03:46 PM polprog: what are you gonna do with those chips?
03:49 PM learath: (I read that as petabytes)
03:49 PM NoHitWonder^: i dont see any diffrence with them
03:50 PM NoHitWonder^: polprog midi splitter
03:50 PM NoHitWonder^: inteligent midi splitter
03:53 PM NoHitWonder^: i thougth 328PB is more exsppensive and with more memory
03:53 PM NoHitWonder^: but its cheaper and same amount of memory
03:56 PM polprog: cool :P
03:56 PM polprog: ill have to get into the world of DMX512
03:56 PM polprog: stage lightning protocol
03:56 PM LeoNerd: DMX is simple enough
03:56 PM polprog: yeah it's jsut serial
03:56 PM polprog: we have one generic dmx-controllable rgb led light
03:56 PM LeoNerd: It's quite fast, but not too difficult
03:56 PM polprog: 20W
03:57 PM NoHitWonder^: i have had plans mixing DMX with MIDI
03:57 PM polprog: my initial guess is that an uart transceiver (like cp2102) and some level shifter (i dont remember the voltages there, i suppose its regular rs232 level) would do
03:58 PM NoHitWonder^: but LeoNerd told me its common
03:58 PM NoHitWonder^: not a new idea
03:58 PM polprog: literally every stage light that has some cpu should have dmx
03:58 PM LeoNerd: polprog: CP2102 is no good for DMX annoyingly
03:59 PM polprog: huh, it's rs485 not 232
03:59 PM polprog: LeoNerd: why?
03:59 PM LeoNerd: DMX uses serial break conditions to signal start-of-frame; many of the USB serial bridges don't really cope with break
03:59 PM NoHitWonder^: http://www.mouser.fi/ProductDetail/Microchip-Technology-Atmel/ATMEGA328PB-ANR/?qs=sGAEpiMZZMvc81WFyF5EdmqlNfokdSRryL5MOcjm5aQ%3d this has wrong datasheet, right?
03:59 PM LeoNerd: A *real* FT232x chip will be fine, but most of the non-FTDI ones don't really support break at all
03:59 PM NoHitWonder^: it should be this http://www.atmel.com/Images/Atmel-42397-8-bit-AVR-Microcontroller-ATmega328PB_Summary.pdf
03:59 PM LeoNerd: But honestly, if you want to send DMX I'd really do that from an MCU of some sort
03:59 PM LeoNerd: Timing is too tight
04:00 PM polprog: LeoNerd: the cp something usb converter has some kind of extra pins...
04:00 PM LeoNerd: E.g. 32U4 makes a good PC->DMX bridge
04:00 PM polprog: but yeah, i have max485 and some mega16 in the shop
04:00 PM polprog: :)
04:00 PM LeoNerd: That should be sufficient
04:00 PM LeoNerd: If you want one isolated, I have.... things for that ;)
04:00 PM polprog: why so mysterious?
04:00 PM LeoNerd: https://www.tindie.com/products/leonerd/rs-485-isolator/
04:01 PM polprog: cool
04:01 PM LeoNerd: The fancier version with the ATtiny makes a good DMX receiver, but there isn't enough RAM on a tiny841 to be a DMX master transmitter
04:01 PM NoHitWonder^: i need to go, thanks for help polprog
04:01 PM NoHitWonder^: ->
04:02 PM polprog: np, o/
04:03 PM polprog: that looks very simple
04:03 PM polprog: found some presentation in polish (!)
04:04 PM LeoNerd: Yah there's not a lot to basic DMX
04:04 PM LeoNerd: If you want to do RDM that's much more work, but a basic DMX receiver for a few channels is quite simple
04:05 PM polprog: i guess getting that single light to work would already be an overkill for the school's auditorium sys
04:05 PM polprog: i guess i would make a dmx-neopixel bridge :P
04:05 PM polprog: for starters
04:05 PM LeoNerd: Ah.. DMX to WS2812 is Awkward
04:05 PM LeoNerd: WS2812 requires *very* exact timing
04:05 PM polprog: not like transparent
04:06 PM LeoNerd: It's very hard to make one MCU core both receive DMX while transmitting WS2812 at the same time
04:06 PM polprog: an mcu that receives some dmx and controls a chain of ws2812
04:06 PM polprog: not really at the same time,
04:06 PM polprog: load dmx - process - send ws2812
04:06 PM LeoNerd: Infact the entire reason I made the ATtiny version of my RS485 isolator board, was to offload DMX receiving onto a separate chip
04:07 PM LeoNerd: DMX into ATtiny chip, acting as an SPI slave, then a separate MCU acting as master from that to write into 2812s
04:07 PM polprog: hmm
04:07 PM polprog: nah
04:08 PM LeoNerd: Alternatively, use an ATtiny as a 2812 offload chip
04:08 PM polprog: im not in th mood to think about it now
04:08 PM polprog: i should sleep :P
04:08 PM polprog: goodnight
04:08 PM LeoNerd: Night :)
04:08 PM polprog: one day ill put some cool board for sale...
04:08 PM LeoNerd: It's fun. Definitely an addictive drug though ;)
05:56 PM NoHitWonder^: why atmega162 is more expensive than atmega324PB/atmega328PB
05:56 PM NoHitWonder^: it has half the memory
05:59 PM tpw_rules: cause they probably sell way more of the others
06:00 PM NoHitWonder^: it must be that external memory interface
06:09 PM NoHitWonder^: do you guys know any good breakout boards for TQFP-32 chips?
06:14 PM LeoNerd: I usually get that sort of thing cheap off eBay
06:15 PM Lambda_Aurigae: atmega162 is old.
06:23 PM NoHitWonder^: that 328PB has Peripheral Touch Controller
06:23 PM NoHitWonder^: i have used similar thing with msp430
06:26 PM NoHitWonder^: that might be useful, i could drop the buttons from the design
06:26 PM NoHitWonder^: and it would actually make it cooler
06:26 PM NoHitWonder^: (project is midi splitter)
06:33 PM Tom_L: where are you?
06:33 PM Tom_L: oshpark used to send me some with an order
06:33 PM Tom_L: dunno if they still do that sort of thing
06:36 PM NoHitWonder^: finland
06:38 PM Tom_L: https://www.digikey.com/product-detail/en/1163/1528-1065-ND/5022794?WT.mc_id=IQ_7595_G_pla5022794&wt.srch=1&wt.medium=cpc&WT.srch=1&gclid=CIau-Ir4u9QCFRCewAod1acLYw
06:39 PM Tom_L: never thought i'd see the day digikey sold adafruit junk
06:39 PM jaakkos: lol @ that price though :(
06:39 PM Lambda_Aurigae: digikey will sell anything.
06:39 PM hetii: 6$ :)
06:40 PM hetii: its more then ESP32 with board :)
06:40 PM Lambda_Aurigae: more than
06:40 PM Tom_L: https://www.adafruit.com/product/1163
06:40 PM jaakkos: obviously, china is the place to buy that sort of stuff if you can wait a while
06:40 PM Lambda_Aurigae: they must buy in quantity.
06:41 PM jaakkos: but yeah, good thing about digi-key is that you reliably get ~anything in guaranteed 2-3 days to any continent
06:41 PM hetii: jaakkos, if I order something from outside from my country it make no difference if its from china or whatever :)
06:42 PM hetii: jaakkos, but how much you pay for transport ?
06:42 PM Tom_L: http://www.ebay.com/sch/i.html?_from=R40&_trksid=p2380057.m570.l1313.TR0.TRC0.H0.Xtqfp+32+breakout.TRS0&_nkw=tqfp+32+breakout&_sacat=0
06:42 PM jaakkos: hetii: virtually always 0
06:42 PM jaakkos: hetii: digi-key has free shipping for $50+ orders
06:42 PM Tom_L: http://www.ebay.com/itm/5pcs-QFP-TQFP-LQFP-FQFP-32-44-64-80-100-to-DIP-Adapter-PCB-Board-Converter-/400985211000?hash=item5d5c94c078:g:KEIAAOxyPKNTmAlU
06:42 PM jaakkos: and China has always free shipping because China
06:43 PM Lambda_Aurigae: http://www.ebay.com/itm/QFP32-TQFP32-FQFP32-PQFP32-TO-DIP32-DIP28-IC-test-socket-programmer-/281803147211?hash=item419cc6c7cb:g:bpwAAOSwymxVNJa~
06:43 PM Tom_L: that one charges $2
06:43 PM Lambda_Aurigae: now that's tempting.
06:43 PM Lambda_Aurigae: if it were only 64pin
06:43 PM Lambda_Aurigae: or better, 144
06:43 PM hetii: ok see you tommorow, time to rest a bit:)
06:48 PM NoHitWonder^: i wonder if i can get that from finland
06:48 PM NoHitWonder^: that adafruit thing looks good
06:54 PM jaakkos: NoHitWonder^: http://www.ebay.com/itm/925A-2-a-10pcs-carte-adaptatrice-QFP-FQFP-TQFP32-a-100-tadapter-board-SMD-/141929873275?var=&hash=item210badff7b:m:mqMAT090p3IavbiI3rQjUNw
06:55 PM jaakkos: there's also http://www.ebay.com/itm/2x-QFN32-VQFN32-QFP32-LQFP32-TQFP32-VQFP32-HQFP32-MQFP32-zu-DIP32-DIL32-Adapter-/221733840021?hash=item33a05de495:g:fCIAAOSwZQxW5TcA
06:56 PM NoHitWonder^: <NoHitWonder^>i wonder if i can get that from finland
06:56 PM NoHitWonder^: i found this http://www.partco.fi/fi/elektroniikan-komponentit/aktiivit/piirikannat/16047-umsmd509.html
06:56 PM jaakkos: I'm surprised it's that "cheap" considering it's Partco :)
06:58 PM NoHitWonder^: yeah
06:58 PM jaakkos: I rarely buy parts in Finland because everything is just so expensive and lot of stuff is unavailable :I we have a shared employee basket for Digi-Key @ work that ships every time it exceeds $50, when we get free shipping
06:59 PM NoHitWonder^: yeah
06:59 PM NoHitWonder^: i use mouser usually
06:59 PM NoHitWonder^: but i cant wait long for that breakout board
06:59 PM jaakkos: yeah, I find Digi-Key has less errors in items and better search, though I sometimes use Mouser too
07:00 PM jaakkos: RS delivers to private citizens (also outside UK) nowadays in case you didn't know
07:00 PM NoHitWonder^: okay
07:00 PM jaakkos: so you won't be paying import taxes for those
07:00 PM NoHitWonder^: yep
07:03 PM NoHitWonder^: this http://fi.rsdelivers.com/?
07:03 PM jaakkos: yeah
07:04 PM jaakkos: didn't find tqfp-32 adapters there :I
07:04 PM NoHitWonder^: cant find atmega324PB
07:05 PM NoHitWonder^: mouser has them tho
07:07 PM NoHitWonder^: that rs seems to have limited range of parts
07:07 PM NoHitWonder^: mouser has pretty much everything
07:07 PM NoHitWonder^: except tqfp breakout board
07:08 PM NoHitWonder^: even digikey is missing that atmega324PB
07:08 PM NoHitWonder^: 0 in stock
07:09 PM NoHitWonder^: hmm
07:09 PM NoHitWonder^: i wonder what is the status of this part
07:10 PM NoHitWonder^: is it being replaced
07:31 PM NoHitWonder^: jaakkos does farnell ship to private citizens
07:31 PM NoHitWonder^: ?
07:33 PM jaakkos: NoHitWonder^: no, they don't
07:34 PM jaakkos: it is stated very clearly when you go to fi.farnell.com -> Register
07:38 PM jaakkos: NoHitWonder^: http://www.spelektroniikka.fi/p17782-pintaliitosadapteri-tqfp32-tqfp64-tqfp100-ym--en.html
07:38 PM jaakkos: no idea about availability
07:38 PM NoHitWonder^: nice
07:40 PM NoHitWonder^: but i think im gonna get this
07:40 PM NoHitWonder^: http://fi.farnell.com/atmel/atmega328pb-xmini/evaluation-board-microcontroller/dp/2522816?MER=sy-me-pd-mi-acce
07:43 PM NoHitWonder^: it even has QTouch area for protyping cap touch
07:43 PM NoHitWonder^: this is perfect for me
07:44 PM Thrashbarg_ is now known as Thrashbarg
07:53 PM NoHitWonder^: <NoHitWonder^>cant find atmega324PB <<<< i meant 328PB ofcourse
07:58 PM JanC_ is now known as JanC
08:20 PM mark4: is there any real reason to set the stack to RAMEND on reset? Isnt that its reset conditon anway?
08:21 PM mark4: i see a lot of projects do that first thing (ish)
08:21 PM mark4: why?
08:22 PM NoHitWonder^: you have to set stack pointer at start up
08:22 PM NoHitWonder^: and you set it to RAMEND
08:23 PM mark4: not according to the datasheet i just read, it saus the reset condition of the stack pointer is RAMEND
08:23 PM mark4: well you can set it to anywhere you want. RAMEND is just an unwritten rule of thumb
08:24 PM NoHitWonder^: where it says that? link and page
08:24 PM mark4: The SPH and SPL stack pointer pair represent the 16-bit SP value. The SP holds the stack pointer that points to the top of the stack. After reset, the stack pointer points to the highest internal SRAM address.
08:25 PM mark4: Atmel-8331-8-and-16-bit-AVR-Microcontroller-XMEGA-AU_Manual.pdf
08:25 PM mark4: maybe thats an xmega thing
08:26 PM NoHitWonder^: yes
08:26 PM NoHitWonder^: afaik you have to do it with atmega
08:27 PM mark4: ok
08:27 PM mark4: that splanes it. im seeing a lot of xmega code that also does it thoug.
08:27 PM mark4: i.e. "i spent years coding for atmega and its automatic for me to do it now" coding
08:28 PM mark4: or possibly for code that can run on both arch's
08:28 PM NoHitWonder^: yeah
08:28 PM mark4: nope. just randomly looked up the ATMega328 and its initial condition is RAMEND too
08:29 PM NoHitWonder^: that's pretty new chip
08:29 PM mark4: aha
08:30 PM NoHitWonder^: anyways we were taught to do that at school
08:30 PM mark4: the 164a seems to need programming on boot
08:30 PM NoHitWonder^: we used atmega32 and atmega16
08:30 PM mark4: i didnt go to school :P
08:31 PM mark4: i guess for certain cores you have to do it. for othes not so much
08:31 PM NoHitWonder^: yeah
08:32 PM mark4: i was hoping to find a USART driver for my 256a3bu written in assemnbler so i wouldnt have to write one myself
08:32 PM mark4: newp. gotta go write it lol
08:32 PM mark4: was being lazy not "noob"
08:33 PM NoHitWonder^: havent done it but it should be quite trivial
08:33 PM mark4: yea its not a big deal, was hoping to not have to reinvent :P
08:36 PM mark4: did not sleep last night, stayed up all day to get sleep schedule back on track
08:36 PM mark4: no coding for this zombie today :P
08:39 PM NoHitWonder^: do you have a day job?
08:40 PM NoHitWonder^: or self-employed?
08:40 PM mark4: none of the above. im entering into a small project with a friend to do some firmware on an avr device. i just need to send him the NDA and he can send me the schematics
08:41 PM mark4: ive not actually worked as a coder in about 7 years. didnt stop coding, just stopped being paid
08:49 PM NoHitWonder^: is it hard to find programming jobs around there?
08:50 PM mark4: no. 7 years ago a truck driver tried to murder me (literally) and i defended my life without causing him any harm. i went to jail for disorderly conduct and that fucked up my career
08:50 PM mark4: BIG TIME
08:51 PM NoHitWonder^: :(
08:51 PM mark4: ancient history i hope now
08:52 PM mark4: difficulty in getting work right now is length of time been out of work
08:52 PM mark4: do this job. put on resume. get back in the game... maybe
08:52 PM mark4: as long as I dont have to use ASF this should be a cake walk :P
11:44 PM evil_dan2wik is now known as dan2wik
11:46 PM day is now known as daey
11:48 PM wirts-leg: hey
11:50 PM noHitW_work: morning