#avr Logs

Jan 31 2018

#avr Calendar

12:00 AM nuxil: you should try live here where i am. :p
12:04 AM nuxil: feels like its dark 24/7
12:04 AM nuxil: in winters
12:14 AM polprog: i should visit northern europe
12:15 AM polprog: i was in sweden by boat, in Karlskrona
12:15 AM nuxil: https://gyazo.com/a39a26a386004a923631ffdb5591584f
12:15 AM nuxil: thats outside now
12:15 AM nuxil: my finger included :p
12:15 AM nuxil: pitch blacj
12:16 AM nuxil: *black
12:18 AM day__ is now known as day
12:28 AM rue_: why dosn't the mosfet amp use feedback biasing?
12:46 AM nuxil: mosfet amp? such as?
12:48 AM nuxil: as in transitor amplifier? if so it depends on the design. but many have feedback
12:54 AM nuxil: anywho. im having progress with my project :) got the atiny85 to control all 4 of my chips now. 1x mcp23008, 2x mcp4131 and 1x atmega324 :D
12:54 AM polymorph: hi
12:54 AM nuxil: my breadboard crownest https://gyazo.com/082d35215d81016b0cf18e52837d13bf :)
12:54 AM nuxil: howdy polymorph
12:57 AM polymorph: nuxil: an arm can generate proper midi :)
12:58 AM nuxil: im sure it can.
12:58 AM polymorph: [23:57] <nuxil> people get a little laugh when the press it. it plays a few sec of benny hill yakety sax - also you can try supermario theme and happy birthday tune, and things like that
12:59 AM nuxil: yea. i have midi file for supermario. i actually tried it. but i liked benny hill better :)
01:00 AM polymorph: also did you see this yet? :) floppy drives playing sandstorm https://www.youtube.com/watch?v=ZWOHKBvg9h8
01:01 AM nuxil: not that one, but seen lost of these videos before.
01:02 AM nuxil: *lots
01:03 AM polymorph: [03:00] <nohit> 65536 is overkill - 16 bit delta sigma dac? ;)
01:03 AM nuxil: polymorph, i think this is one of the bese one https://www.youtube.com/watch?v=5M5ao1D4jWo :D
01:03 AM nuxil: not floppy tho
01:04 AM polymorph: [04:09] <nohit> some f3's have 3 dacs so that would be 3 voice polyphony - rather stereo channels + something else if needed it is only 12 bit though ;< not cd quality
01:07 AM nuxil: polymorph, this is also kind of cool. https://www.youtube.com/watch?v=WkkhcwXpYy4 fast forward to 1min.
01:40 AM day__ is now known as day
01:54 AM polprog: 1. make a ramdisk
01:55 AM polprog: 2. format a swap partition there
01:55 AM polprog: 3. ???
01:55 AM polprog: 4. profit
01:55 AM polymorph: been there
01:55 AM polymorph: but i compressed it
01:55 AM polprog: lol
01:55 AM polymorph: zram :)
01:55 AM polprog: sounds intersting
01:56 AM polymorph: wanna try?
01:56 AM polprog: what was the compression ratio :P
01:56 AM polprog: sure why not
01:57 AM polymorph: ftp://ftp.uni-erlangen.de/pub/mirrors/knoppix/KNOPPIX_V7.2.0CD-2013-06-16-EN.iso
01:57 AM polymorph: runs off a pendrive or cd
01:58 AM polymorph: you can give it toram parameter at boot to copy the system to ram and run from there
01:58 AM polymorph: swap is on zram
01:59 AM polymorph: (but if you try using more ram than available in system it dies)
01:59 AM polprog: oh
01:59 AM polprog: knoppix <3
02:00 AM polprog: forgotten distro :p i loved the spinner animations on boot when i was 10
02:00 AM polymorph: basically its roots are MicroKnoppix that was a single floppy linux :)
02:00 AM day__ is now known as day
02:01 AM polymorph: now it is getting bastardized after this cd version, there is dvd version with >10GB crap
02:05 AM polymorph: nah got my parallel port connectors on the worktable, will be a wiggler/xilix programmer or some hybrid thing i would like to use with avrdude to propram atmegas avr, and openocd to program stm32s can't decide wtf is that power supply connected input is good for if i connect my thing to program i either add power to, or it has its own, nobody cares
02:06 AM polymorph: sounds like CS guys tried hard to make an enterprise class parallel port program uploader with functions that has really no practical use but sound good
02:06 AM polymorph: *have
02:38 AM polprog: polymorph: can you share a link to that wiggler?
03:02 AM polymorph: polprog: sure still have it open on browser too http://elm-chan.org/works/avrx/rq/altera.png
03:02 AM polymorph: http://elm-chan.org/works/avrx/rq/lattice.png
03:02 AM polymorph: http://elm-chan.org/works/avrx/rq/xilinx.png
03:03 AM polymorph: https://wiki.openwrt.org/_media/doc/hardware/wiggler_reduced.png?cache=
03:04 AM polymorph: https://wiki.openwrt.org/doc/hardware/port.jtag.cable.buffered
03:04 AM polymorph: (you could do unbuffered too)
03:09 AM polymorph: polprog: this is the xil cable http://dev.ivanov.eu/uploads/images/dlc5/dlc5_schematic3.png
03:12 AM polymorph: check pin14 linefeed, and note that paralle ports can be TTL input...
03:13 AM polymorph: and there is a diode from linefeed that wants to pull linefeed up
03:14 AM polymorph: or if linefeed would be driven low, it would try to pull the vcc down
03:16 AM polymorph: this thing is beyond the point of no return at tho logic part, still thinking about what hybrid i want to make
03:16 AM polymorph: *the
03:56 AM polymorph: http://www.powerguru.org/i%C2%B2t-curves-and-operating-times/ --in case...
04:00 AM polymorph: https://www.elect-spec.com/fuse-parameters/ - how a fuse melts
04:06 AM polymorph: "In higher-voltage circuits, an arc will be struck after the fuse element has melted and a further amount of energy will be passed to the output circuit while this arc is maintained." ---and the solution to this is to fill the glass tube with quartz sand, so it folls in when the wire blows and extinguishes the arc... i wonder why the quartz sand in the sand filled fuses cost 3-6 euros ;)
04:07 AM polymorph: i can get a 30kg bag of quartz sand at local shop for 10 euros
04:09 AM polymorph: btw a non quartz filled 10A F glass fuse blows apart and sprays the shattered glass everywhere in case a short in a computer psu
04:11 AM aivkiv: that's why 3-6 euros :D
04:17 AM polymorph: aivkiv: but i can fill a fuse with sand myself ;>
04:17 AM dgriffi: the particles in the quartz sand for fuse use needs to be of a certain size and purity. if either are wrong, you get a bomb instead of a quenched arc.
04:18 AM polymorph: dgriffi: washed with acid and alcohol ?
04:18 AM dgriffi: yep
04:18 AM dgriffi: moisture in a thing like that can cause things to go boom
04:18 AM polymorph: dgriffi: yeah i know there are a few beaches where there is nice white quartz sand
04:19 AM dgriffi: that's why some semiconductors come packed in moisture-proof packages with instruction for baking before reflow.
04:19 AM polymorph: dgriffi: umm, you don't dry all your components prior soldering?
04:20 AM dgriffi: polymorph: some stuff isn't or can't be hermetically sealed, so moisture can get inside.
04:20 AM dgriffi: just wiping or blowing off water isn't good enough.
04:20 AM dgriffi: water on the inside can and will explode if put throught reflow.
04:20 AM dgriffi: read up on the "popcorn effect"
04:20 AM polymorph: dgriffi: i thhink 80°C for 16-24 hours might be enough
04:21 AM dgriffi: polymorph: that's generally the right idea.
04:35 AM polprog: maths test done
04:49 AM nohitzwork: how did it go?
04:54 AM nohitzwork: im glad i dont need to study math anymore
04:55 AM * Haohmaru fills polymorph's pockets with sand
05:16 AM polymorph: Haohmaru: have SiC sand ? :>
05:28 AM * Haohmaru turns polymorph up-side down
05:53 AM polprog: nohit: it went well, i think
06:08 AM day__ is now known as day
07:24 AM Jartza: pun
07:24 AM Jartza: indented
08:55 AM polprog: https://youtu.be/x7pPajOvQGo
08:56 AM Emil: pizza time
08:58 AM Emil: polprog: that's pretty great though
08:58 AM Emil: I should program something like that
09:10 AM rue_: http://wormfood.net/avrbaudcalc.php
09:12 AM polprog: You can put it in a cronjob
09:12 AM polprog: To fire when the backups fail
09:14 AM polprog: :D
09:17 AM cehteh: put it up in a loop, DoS attack
09:17 AM cehteh: question is to whom, the pizza baker or the one who ordered it :)
09:19 AM polprog: Order a pizza to every apt in your block from every pizzeria in 10 km radius?
09:30 AM learath: hah
09:32 AM polprog: I think i saw a screenshot of a 4chin.edu thread about that
09:59 AM polprog: https://puu.sh/zdFzU/ba6db0a013.jpg
10:01 AM Emil: polprog: check the resistor
10:01 AM Emil: polprog: if you need to change it for usb comms
10:02 AM Emil: then flash a dfu bootloader
10:02 AM Emil: and off you go
10:02 AM polprog: Thanks for remonding me about the resistor. Whats Dfu?
10:03 AM Emil: polprog: device firmware upgrade
10:03 AM Emil: it's just a general name for usb bootloader
10:05 AM polprog: ill flash the blining eld program first
10:05 AM polprog: to test flashing
10:05 AM Emil: Well
10:05 AM Emil: point is
10:05 AM Emil: once you have the usb bootloader
10:06 AM Emil: you only need a usb cable for comms and programming
10:06 AM polprog: yeah i know the drill
10:06 AM Emil: though then you of course need to use usb, which is a pain
10:06 AM polprog: keep in mind that this is just a toolchain/flasher test board
10:06 AM Emil: makes no difference
10:06 AM polprog: soon i plan to just by bare chips and put them on my own board
10:07 AM polprog: i will probabyl flash that bootloader
10:18 AM polyfuse: re
10:23 AM polprog: Emil: soldered the pin headers, its ready to go:
10:23 AM polprog: https://puu.sh/zdGiw/d2d37eb608.jpg
10:23 AM polprog: :^)
10:35 AM Emil: wtf
10:35 AM Emil: what's with the fan
10:38 AM nuxil: anyone else had issues with win10 after the last update ?? im starting to get annoyed.
10:38 AM nuxil: https://i.gyazo.com/a79463112443880debcb5fe8016a6a03.png that thing pops up several times aday
10:38 AM nuxil: problems with MS account blah blah.
10:41 AM polyfuse: polprog: sup dude
10:42 AM polprog: Emil: overclocking
10:42 AM polprog: polyfuse: messing around with blue pills
10:42 AM nuxil: that just sounds bad :p like a junkie :)
10:43 AM nuxil: polprog, how you like it so far ?
10:43 AM polprog: to be honest, some heatsing greases are sold in syringes with names like "arctic freeze" or something
10:43 AM polyfuse: mx-4
10:44 AM polyfuse: (ofc i have it)
10:44 AM polprog: :P
10:45 AM polyfuse: it has 8 year guaranteed operation
10:50 AM polyfuse: polprog: anyway mustard and ketchup works as well short term
10:53 AM polprog: i was talking about overclocking with a schoolmate in the morning
10:53 AM polprog: http://www.hardwaresecrets.com/thermal-compound-roundup-january-2012/5/
10:54 AM polprog: "Toothpaste" "Pink lipstick" "Mayo"
10:54 AM polprog: chocolate made it worse than bare
10:54 AM polyfuse: grab some taco sauce and put it on your cpu
10:55 AM polyfuse: your pc will smell like taco
10:55 AM polprog: *mexican tunes start to play from motherboard beeper*
10:55 AM Emil: polprog: your device is not producing enough heat for it to matter
10:56 AM Emil: Just take away the fan
10:58 AM polyfuse: polprog: yea so mustard competes with many thermal compounds
10:58 AM Emil: https://www.youtube.com/watch?v=SGJ5cZnoodY
10:58 AM Emil: Highly recommended
10:58 AM polprog: Was about to watch that
10:59 AM polprog: Mfw bunnie huang turns out to be a guy
11:06 AM nuxil: a shit pusher.
11:06 AM nuxil: lol though you said gay :p
11:08 AM polyfuse: polprog: now you want to heatsink an lqfp? ;>>
11:09 AM polyfuse: polprog: you need to sand down the encapsulation to access the chip
11:12 AM polyfuse: i guess that it could be cooled from bottom, the top layer is probably the wire bond side
11:13 AM polyfuse: those packages are not designed for heatsinking
11:13 AM Emil: polyfuse: not to mention that they don't need it either :D
11:15 AM polyfuse: polprog: i would recommend reading absolute maximum ratings in the ds before you start playing, or you have to order another one if you exceed some limits
11:17 AM polyfuse: for example all ports combined cannot draw >80mA in total from power pin in the f373
11:17 AM polyfuse: but individually they may 20mA
11:18 AM polprog: polyfuse: that was a joke :P
11:18 AM polprog: that was a joke....
11:19 AM polprog: ofc i will read the datasheet, and i know micros usually output logic signals ;)
11:20 AM polyfuse: polprog: they can drive leds
11:21 AM polprog: i know
11:21 AM polyfuse: but 20mA / led would be only 4 pin ;/
11:22 AM polyfuse: better to connect them to 595s then in a string
11:22 AM polprog: im not a newb ;)
11:22 AM polyfuse: k
11:22 AM polprog: 595, mosfets, or even a bjt would do
11:22 AM polprog: i have some smd bjts and mosfets
11:23 AM polyfuse: less is more, at least they say
11:38 AM polyfuse: polprog: making a wiggler ?
11:38 AM polprog: using raspi to program with SWD
11:39 AM polprog: openocd, raspi, smt32f103. could not initialize debug port, waht am i looking for?
11:51 AM polprog: seems like openocd doesnt even bring the reset down
11:52 AM polprog: doesnt wiggle anything
11:52 AM polyfuse: kek
11:52 AM polyfuse: make it wiggle
12:08 PM Emil: >< polprog> im not a newb ;)
12:08 PM Emil: classic final words :D
12:09 PM Emil: polyfuse: access rights
12:09 PM Emil: polprog: *
12:09 PM polprog: its ran as root
12:09 PM Emil: pls no
12:09 PM polprog: as soon as i sort current problems out i will set up access rights
12:14 PM polprog: hmm, no errors reported
12:14 PM polprog: could that mean....
12:14 PM polprog: its working?
12:16 PM polyfuse: polprog: what are you wiggling with ? gpio?
12:18 PM polprog: yeah
12:21 PM Emil: uh mama
12:21 PM Emil: entering the world of distributed computing is fun fun fun
12:21 PM Emil: parallel is an awesome tool
12:22 PM polyfuse: american gmo grass stores its water for dry season https://www.youtube.com/watch?v=ZUX8MXUF4W0
12:29 PM polprog: hmm. no i get a different error
12:32 PM polyfuse: ;/
12:33 PM polyfuse: btw you can buy an old p3 laptop with parallel port for the price of your rpi
12:34 PM Emil: polyfuse: staph
12:34 PM polyfuse: thay has battery, charger, tft
12:34 PM polprog: polyfuse: i have a parport PC
12:34 PM Emil: :D
12:39 PM polprog: okay so it has flasher program uploaded by default
12:39 PM polprog: which is good because i can see that openocd is working
12:39 PM polprog: yes
12:39 PM polprog: finally
12:40 PM polprog: "reset halt" -> stops blinking -> "reset run" -> starts blinking
12:40 PM polprog: time to back the config file
12:40 PM polprog: and take notes
12:42 PM polprog: time for supper
01:35 PM LeoNerd: Hrm.. seems I can't use PSTR() at static initialiser time
01:35 PM LeoNerd: src/ui.c:257:13: error: braced-group within expression allowed only inside a function
01:46 PM LeoNerd: Anyone any suggestions?
01:47 PM polprog: i usually put my PSTRs as defines
01:48 PM polyfuse: LeoNerd: you can make an initializer yourself
01:48 PM polprog: looks like there is no easy way to allow gpio access to non root users apart from adding user to kmem group (lolno) or chmoding several dev files (no)
01:48 PM polprog: so ill just run openocd as root
01:49 PM polprog: maybe there is on debian but this pi is running arch arm
01:49 PM polyfuse: avrdude needs that too.
01:50 PM polyfuse: polprog: yeah linux is like that, you dont even have right to use your parallel port, but anybody remotely can log in your kernel
01:50 PM polprog: possible that things have changed on debian since i played with it, but all my python gpio scripts had to run as root as well
01:50 PM LeoNerd: polyfuse: suggestion?
01:50 PM LeoNerd: polprog: how?
01:50 PM polprog: polyfuse: the second part of your sentence, is that an exploit or actual feature
01:51 PM polyfuse: polprog: feature
01:51 PM polprog: LeoNerd: #define MSG_OK PSTR("%s: Command OK\r\n") .... uart_printfP(MSG_OK, cmd)
01:51 PM polprog: i use it like that
01:51 PM polyfuse: LeoNerd: well selinux and driverspace, random drivers
01:51 PM LeoNerd: polprog: that's not what I'm doing though
01:52 PM polprog: oh,
01:52 PM LeoNerd: https://paste.debian.net/1008225/ <== doesn't work
01:53 PM LeoNerd: (admittedly ignoring for now that the 'menu' variable itself isn't in progmem, that should still be fine)
01:53 PM polprog: i havent seen nor used that c[++] construct so ill happily listen to what others here say
01:53 PM polyfuse: LeoNerd: but even if there weren't any backdoors, the software on it can, systemd for example, and the minix3 trojan that is running in ring -3 mode on your motherboard
01:53 PM polprog: ring -3, RIP
01:54 PM polyfuse: ya lel
01:54 PM LeoNerd: polyfuse: Hrm? I think we're talking different subjects. I'm responding to 19:47 <polyfuse> LeoNerd: you can make an initializer yourself
01:54 PM polprog: it just hit me that minix trojan is AMT
01:54 PM polprog: lol
01:54 PM polyfuse: trojan minix3 is god
01:54 PM polyfuse: [20:33] <LeoNerd> Hrm.. seems I can't use PSTR() at static initialiser time
01:55 PM polprog: you werent reffering to intel AMT?
01:55 PM LeoNerd: Indeed. That's the problem.
01:55 PM polyfuse: polprog: it doesn't even lie ;} it allowy your (motherboard) management
01:56 PM polprog: i know what amt can do ;) sounds both horribly wrong and pretty neat
02:00 PM polprog: in other news i havent had the windows hosted samba share not shit the bed ever since it was set up
02:00 PM polprog: now it just wont connect, a w e s o m e
02:02 PM * LeoNerd emails avr-libc list
02:02 PM LeoNerd: Nothing relevant on google or stack-overflow as far as I can tell
02:05 PM Emil: LeoNerd: what's the iossue
02:06 PM Emil: LeoNerd: what's your PSTR defined as?
02:12 PM LeoNerd: It's the standard one from avr-libc, so same as usal
02:12 PM LeoNerd: *usual
02:12 PM LeoNerd: You can look it up in your file :)
02:12 PM LeoNerd: # define PSTR(s) (__extension__({static const char __c[] PROGMEM = (s); &__c[0];}))
02:14 PM polyfuse: that is a simple macro
02:14 PM polyfuse: what is with it?
02:14 PM polyfuse: i used progmem and it worked
02:15 PM LeoNerd: Hrm?
02:15 PM LeoNerd: Youknow I'm currently borderline-ignoring you because you sound like you don't know what you're talking about
02:16 PM LeoNerd: avr-libc list suggests you basically can't; just have to define a separate var then pull it in by name :/
02:17 PM LeoNerd: Which sucks but eh.. it's what I'm doing with functions anyway
02:17 PM LeoNerd: So it's not /much/ worse
02:19 PM polyfuse: [21:13] <LeoNerd> Youknow I'm currently borderline-ignoring you because you sound like you don't know what you're talking about - i dont know what to say about this, you are an egoist faggot dumbass
02:19 PM polyfuse: basically wasting my time
02:19 PM LeoNerd: Possibly
02:20 PM LeoNerd: But a more reasonable response would be to generally only get involved in discussions where you know what you're doing
02:22 PM LeoNerd: OK onto next question: I have a cheap usbasp-type device, that seems to work for only about the first minute that I plug it into USB. After that, avrdude would complain of bad signature trying to read the part, and stop. I have to replug the device to make it work again
02:22 PM LeoNerd: It's getting annoying. Does that sound like a bad device? Should I get another one - would that help?
02:22 PM polprog: well, given the price of those, im surprised somebody like you doesnt have several
02:22 PM polprog: id go for it
02:23 PM LeoNerd: I've got two. Both eBay ones, turns out they're different designs
02:23 PM polprog: or try to program via raspi for example to rule out bad chip
02:23 PM polprog: just in case
02:23 PM LeoNerd: One of them was quite reliable, this newer one isn't
02:23 PM LeoNerd: It's not the chip - it behaves like this on many boards; other programmers are nicely reliable
02:23 PM polprog: i have one but i need to reflash the firmware on it to a newer version
02:23 PM LeoNerd: Oh that's a thought, might need an update
02:24 PM polprog: mine just doesnt work with avrdude (failed to set sck period yadda yadda)
02:24 PM LeoNerd: Hmm
02:25 PM polprog: thats why i got a dragon in the first place. i have other problems with it tho - if i happen to ^C avrdude i need to replug the dragon cos it just sits there. i think you or someone else here said dragons are fragile ;)
02:25 PM LeoNerd: Don't think it was me; I don't have nor have ever used a dragon
02:25 PM polprog: allright, installing libopencm3, i'll try rues makefile or try to write my own simple one
02:26 PM polprog: by the way how old are you? more like 20, or more like 30?
02:26 PM LeoNerd: Me? 35
02:28 PM LeoNerd: Ugh.. if I want an array of strings in flash, I have to name each individual string with its own individual variable
02:29 PM LeoNerd: This is going to get /really/ tedious
02:29 PM polprog: that sucks, yeah
02:30 PM polprog: i cant believe there isnt a better way to do that
02:30 PM polprog: what if you actually wrote an assembly file with .data and .global labels, and used extern in C?
02:31 PM LeoNerd: That sounds even more tedious so I won't bother
02:31 PM polprog: because, honestly, that sounds _easier_ to me (compared to doing a string array like in the example)
02:39 PM nuxil: LeoNerd, https://paste.debian.net/1008225/ makeing display menu stuff ?
02:40 PM LeoNerd: yes
02:47 PM nuxil: oki.. i wrote some messy menu code myself, tedius and boring, but i took a look at this to get some ideas for my project. https://github.com/aeguana/LCDMultiLevelMenu
03:07 PM polyfuse: polprog: dafuq man http://elm-chan.org/works/avrx/rq/xilinx.png TDI and TDO both leads data out
03:08 PM polyfuse: im out for today b
03:10 PM polprog: hmm. so i typed up a simple blinky program basing on several different files scattered around the net (thanks rue) and im trying to compile it (as example makefile is way over my head)
03:11 PM polprog: arm-none-eabi-gcc -L ../libopencm3/lib/ -I ../libopencm3/include/ -DSTM32F1 --static hello.c -o hello.elf
03:11 PM polprog: im getting a single linker error though, that +
03:12 PM polprog: undefined reference to _exit
03:12 PM polyfuse: interesting question, mcus never exit
03:13 PM polprog: you dont say. even when there is an infinite loop at the end of main gcc will compile in exit func
03:13 PM polyfuse: :)
03:13 PM polyfuse: that is awesome no?
03:13 PM polprog: ...
03:13 PM polyfuse: it actually expects the infinite loop to break
03:23 PM polyfuse: govsat probably have a good eye ;) it will peek in your window https://www.youtube.com/watch?v=ScYUA51-POQ
03:24 PM polyfuse: launch in 2 minutes
03:33 PM nuxil: thx
04:02 PM polyfuse: more security = more supervision in your jail
04:06 PM polprog: it must be the linker. compiler happily makes the code but linker cant find the lib to link against
04:06 PM polprog: ill have to read on that later
04:06 PM nuxil: see
04:07 PM nuxil: blue pills only caused problems :p
04:07 PM polprog: blue pills help in problems if you are 45 and horny
04:09 PM nuxil: heard on radio the otherday that there is a explotion in use of "blue pills" among ung people. so its not only for old people :p
04:10 PM polprog: Lol
04:11 PM polprog: Any idea what i should be looking for to please that linker?
04:11 PM nuxil: are you using a makefile ?
04:15 PM polprog: Not yet, im at the point of trying to find a working arm-none-eabi-gcc invocation
04:16 PM polprog: Which then can be made a (very simple) makefile
04:20 PM nuxil: So yea. im kind of glad i havent messed around with stm. seem like the 1st thing you encountered was problems when trying to compile :p
04:21 PM polprog: Well, i think it was definitely easier with avrs
04:25 PM nuxil: avr ftw :D
04:26 PM polprog: Yeah
04:26 PM polprog: Im thinking about those nuclear micro current backup batteries
04:26 PM polprog: For RTCs
04:27 PM polprog: I dont know if you can get them anywhere.
04:27 PM polprog: But having a battery that lasts 100 years, even only as rtc backup would be awesome
04:29 PM nuxil: make one yourself :)
04:30 PM nuxil: https://www.extremetech.com/extreme/190555-this-nuclear-battery-could-power-your-smartphone-forever-as-long-as-you-dont-value-your-life-or-sperm-count-too-highly
04:31 PM nuxil: and this https://hackaday.com/2016/12/01/make-your-own-nuclear-battery/
04:32 PM nuxil: hmm what if you get a old firedetector and put a solar cell in the radioactice part.
04:32 PM LeoNerd: Surely technically if it's just one, it's only a nuclear cell?
04:33 PM nuxil: will the paricles gen any current.. hmm.
04:33 PM LeoNerd: It only become a nuclear battery if you combine multiple
04:35 PM polprog: Yeah that what i was thinking about. The glowstick and some panel
04:35 PM polprog: LeoNerd: you are right
04:36 PM polprog: Hmm i have some tiny (like 0.5" x 0.25x
04:36 PM nuxil: LeoNerd, do you call a an AAA battery a cell ? or battery?
04:36 PM polprog: 1/2 by 1/4 inch solar panels
04:36 PM LeoNerd: I think I just call it a "triple-A"
04:36 PM nuxil: or in general a battery a cell ? like http://www.upsbatterycenter.com/blog/carbon-batteries/
04:37 PM nuxil: LeoNerd, you where just nitpicking :p
04:37 PM LeoNerd: I often am
04:38 PM nuxil: :)
04:38 PM nuxil: so that firedetecor idea. does it generate alpha or beta radiatorn. and will it be picked up by a small "calulator" solar cell
04:39 PM nuxil: hmm
04:42 PM polprog: Im not sure about the detection part but smoke detectors often use alpha/beta rad sources
04:47 PM nuxil: i want to test that.
04:47 PM nuxil: i have several old firedetectors.
04:47 PM nuxil: but no solar cell tho.
04:48 PM nuxil: *err. smoke detector
04:48 PM polprog: Found https://github.com/satoshinm/pill_blink/blob/master/opencm/Makefile , this looks simple enough to try
04:49 PM polprog: I havent actually called the makefile of libopencm3 on particular (line 21)
04:49 PM polprog: (I just cloned libopencm3 and ran make)
04:50 PM polprog: In particular*
04:52 PM nuxil: https://gyazo.com/87aa9773c5588b9b652794092ce25ccd i'll get a solar cell tomorrow and see this it will gen any current :p
04:53 PM polprog: Hehe cool
04:53 PM polprog: I got myself a soic clip today
04:53 PM polprog: For bus pirate
04:53 PM polprog: Mostly
04:53 PM LeoNerd: The SOIC8 test clip for flash chips? I thought about one of those for my laptop
04:54 PM LeoNerd: To reflash it around the annoying Lenovo wifi card whitelist thing
04:57 PM polprog: I think its soic 14 even
04:57 PM polprog: I had in system flashing/reading in mind
05:50 PM ac_slater: I know this is strange, but I need a small board designed that has a simple TTL-to-RS422 transceiver on it. Is there someone here interested in talking about a small paid contract?
05:50 PM ac_slater: (the reason I ask here is it'll be used specifically with an AVR device)
05:50 PM ac_slater: sorry if this breaks any rules
05:51 PM Tom_L: you can't find one?
05:53 PM ac_slater: Tom_L: I found a chip, I just don't know what support electronics it needs, etc
05:53 PM Tom_L: https://www.digikey.com/product-detail/en/sparkfun-electronics/BOB-11189/1568-1193-ND/5673779?WT.srch=1&gclid=EAIaIQobChMI9c-22LKD2QIVxY5-Ch2MBQOMEAQYASABEgLO3vD_BwE
05:53 PM polprog: ac_slater: off my head, max 488. Literally connect it to power and uart, voila
05:53 PM LeoNerd: Prettymuch nothing else shoudl be required
05:53 PM ac_slater: really?
05:53 PM LeoNerd: It's just a chip and hook logic/power up to it
05:53 PM ac_slater: LeoNerd: hi again
05:53 PM ac_slater: https://www.mouser.com/ProductDetail/926-DS89C21TMX-NOPB
05:53 PM LeoNerd: Me again
05:53 PM Tom_L: https://www.amazon.com/dp/B06XBXYC6L/ref=asc_df_B06XBXYC6L5355325/?tag=hyprod-20&creative=395033&creativeASIN=B06XBXYC6L&linkCode=df0&hvadid=167141218295&hvpos=1o4&hvnetw=g&hvrand=14562427436122768021&hvpone=&hvptwo=&hvqmt=&hvdev=c&hvdvcmdl=&hvlocint=&hvlocphy=9024248&hvtargid=pla-310031474868
05:53 PM ac_slater: this is the one I *think* will work
05:53 PM Tom_L: there try that one
05:54 PM polprog: Yeah. Mate it with max232 for PC rs232
05:54 PM ac_slater: I need TTL to RS422, just so it's clear
05:54 PM Tom_L: that last link i posted should do it
05:54 PM ac_slater: neither of the endpoints are a PC, just AVR and some specific device
05:54 PM ac_slater: ie - just not a PC
05:55 PM ac_slater: wow
05:55 PM ac_slater: I never saw that one on amazon, holy crap
05:55 PM ac_slater: that's super easy
05:55 PM Tom_L: now pay me :D
05:55 PM ac_slater: Tom_L: pm me a paypal link
05:56 PM ac_slater: or username or whatever
05:56 PM Tom_L: no
05:56 PM ac_slater: same with LeoNerd
05:56 PM Tom_L: just go get one
05:56 PM ac_slater: thanks guys
06:29 PM day__ is now known as day
06:30 PM polprog: Night
06:42 PM ac_slater: Tom_L: I'll report back if it worked. If it didn't, I'll contact you for a custom board
06:42 PM ac_slater: if you're up for it
07:15 PM McDonaldsWiFi: Hey guys I'm having trouble getting my PORTD to return to a low state after setting a pin high. Anyone care to look and see what I'm doing or not doing? https://pastebin.com/QAXbMZS8
07:15 PM McDonaldsWiFi: Opps, line 49 was supposed to commented out
07:15 PM McDonaldsWiFi: it is in my running code
07:16 PM McDonaldsWiFi: I've tried toing it all different kind of ways, and in this example I just set the whole damnm port as 0
07:17 PM McDonaldsWiFi: but when the pin goes high, it doesn't clear the data already on the pins, so it just freezes the pins
07:20 PM Casper: PORTD = 0; that do not set it low?
07:21 PM rue_: 49?
07:21 PM nuxil: stop writing stuff like this . DDRB = DDRB | 0b00000011;
07:21 PM nuxil: is looks awefull :p
07:21 PM rue_: its must be an arduino board
07:21 PM nuxil: DDR |= foo
07:22 PM rue_: you have to mash togethor B and D to get a proper 8 bit port
07:22 PM McDonaldsWiFi: nope its just my shit C
07:22 PM rue_: the shifts are wrong
07:22 PM McDonaldsWiFi: just learn learning how to do this in C lol
07:22 PM rue_: but whats the main issue your having wit it?
07:22 PM McDonaldsWiFi: so the extreme verbose is for me to keep it all straight in my hea dlol
07:23 PM rue_: writes to PORTx will latch
07:23 PM McDonaldsWiFi: ^
07:23 PM McDonaldsWiFi: that's whats my issue! nailed it
07:23 PM rue_: you want t just pulse the issue?
07:23 PM rue_: or the shift error
07:24 PM McDonaldsWiFi: I thouht writing 0 back to PORTD would cause it to go blank
07:24 PM rue_: one should be shifted the other should just be masked
07:24 PM McDonaldsWiFi: which one?
07:24 PM rue_: it will latch 0 into it
07:24 PM rue_: I need to know more :)
07:24 PM rue_: you want to just pulse the code on the outputs?
07:24 PM McDonaldsWiFi: sorry
07:24 PM McDonaldsWiFi: tv was interesting a second LOL lemme explain better :D
07:25 PM McDonaldsWiFi: so the main goal is to be able to read from the ADC, and output 8 bti data to the pins selected
07:25 PM rue_: ok, I'm gonna go hammer in a ground steak
07:25 PM McDonaldsWiFi: pins 2-7 and 8-9 are my output in LED form
07:25 PM cehteh: you can use the 'toggle' trick with PINx registers when you know/keep track of the state
07:25 PM McDonaldsWiFi: for now.
07:25 PM McDonaldsWiFi: long term, i'm integrating this to my z80 build and I need the pins to go back to 0 then toggle high impedance
07:26 PM McDonaldsWiFi: so this is just a proof of concept
07:26 PM McDonaldsWiFi: so when the Status0 pin goes high, its supposed to write 0 to PORTD and then turn the port to input
07:26 PM McDonaldsWiFi: but when it goes high now, the pins just latch
07:26 PM McDonaldsWiFi: so whatever the output was at the time stays, it never writes it all to 0
07:29 PM McDonaldsWiFi: is there a better way to write all of the pins low?
07:30 PM McDonaldsWiFi: DDRB = DDRB | 0b00000011 could also be DDRB =| 0x03, right?
07:31 PM nuxil: yes
07:31 PM McDonaldsWiFi: okay ^^
07:32 PM nuxil: no
07:32 PM nuxil: its the other way
07:32 PM McDonaldsWiFi: |=
07:32 PM nuxil: |=
07:32 PM McDonaldsWiFi: ahh oaky ^^
07:32 PM McDonaldsWiFi: ty
07:33 PM nuxil: np
07:33 PM McDonaldsWiFi: never had a reason to learn bit manipulation
07:34 PM nuxil: also look into, DDR &= ~foo and DDR ^=foo
07:35 PM McDonaldsWiFi: I think I'm going to google some crash courses since I feel like I will need to really leanr this stuff
07:36 PM nuxil: bitwise operation is kind of a must to know the basics of when working with mcu's
07:38 PM nuxil: McDonaldsWiFi, look at the topic in this channel. 2 simple macros .
07:38 PM nuxil: setbit and clearbit
07:39 PM nuxil: altho i prefere Jartza's version in the avr_common_macros
07:39 PM nuxil: since it can set/clear multiple bits at once
07:42 PM McDonaldsWiFi: now I'm feel bad, I didn't even notice the topic
07:43 PM nuxil: here is the file i use https://gist.github.com/Jartza/56d006504316ef5fe5a3db1b3e438ca9
07:43 PM McDonaldsWiFi: ty!
07:43 PM nuxil: examples at the top in the file
07:44 PM McDonaldsWiFi: got it!
07:45 PM rue_: McDonaldsWiFi, ah, you want a parallel slave
07:46 PM McDonaldsWiFi: I'm glad you guys know the terminology
07:46 PM rue_: I hav an intel bus library, but for master
07:46 PM rue_: some of the avrs ahve a parallel save port thats set up for it
07:47 PM rue_: 4Mhz z80?
07:47 PM McDonaldsWiFi: 10MHz
07:47 PM rue_: 8-|
07:47 PM McDonaldsWiFi: which means itll still be waiting
07:47 PM McDonaldsWiFi: but not as bad as if i used arduino IDE
07:47 PM rue_: not by much
07:48 PM rue_: where did you find a 10Mhz z80?
07:48 PM McDonaldsWiFi: they make 20mhz models now!
07:48 PM rue_: gameboy?
07:48 PM McDonaldsWiFi: nope, digkey haha
07:48 PM rue_: huh
07:48 PM McDonaldsWiFi: I regret not buying the 20mhz
07:48 PM McDonaldsWiFi: oh well
07:49 PM rue_: how much did you pay?
07:50 PM McDonaldsWiFi: $5 or so
07:50 PM rue_: you might be better off with a serial interface
07:50 PM rue_: I do hate to say that tho
07:50 PM McDonaldsWiFi: What do you mean?
07:50 PM McDonaldsWiFi: that also sounds sad, there's a charm with using 8 bit parallel :(
07:50 PM rue_: unless you have dedicated hardware for the bus wirte, its evil to time
07:50 PM rue_: unless you use HOLD
07:51 PM rue_: ofcourse
07:51 PM McDonaldsWiFi: oh for the wait time?
07:51 PM rue_: yea
07:51 PM McDonaldsWiFi: z80 has a WAIT pin actually
07:51 PM rue_: erp, heh
07:51 PM McDonaldsWiFi: xD
07:51 PM rue_: yea HOLD is for taking over the ... no thats BUSREQ
07:51 PM McDonaldsWiFi: Yeah but using that is also terri bad
07:51 PM rue_: using WAIT dosn't neccissarily mean the z80 waits
07:51 PM McDonaldsWiFi: I'm thinking about putting a buffer.. or 2 in front of the 328p to keep me from having to ever access the 328 its self
07:52 PM rue_: 74ls573
07:52 PM McDonaldsWiFi: I think with the Z80 it doesn't even refresh the internal registers so excessive waiting does bad things
07:52 PM rue_: no, the z80 is all static
07:52 PM rue_: you can run it to 0Mhz
07:53 PM McDonaldsWiFi: OH you're right
07:53 PM * rue_ puts an LM555 and a z80 infront of McDonaldsWiFi
07:53 PM McDonaldsWiFi: if I had dynamic RAM it might do bad things
07:53 PM rue_: and you dont, cause static ram rocks
07:53 PM McDonaldsWiFi: yeah I had it running at a few hz once for troubleshooting, I had a brain fart
07:53 PM rue_: esp when its an old 640k 386 cache chip
07:53 PM McDonaldsWiFi: right, static ram is best ram :P
07:53 PM McDonaldsWiFi: I had to get newer stuff but I'd like to find z80 era ram and rom
07:53 PM rue_: no
07:53 PM rue_: you dont
07:54 PM rue_: I have some 2708
07:54 PM rue_: you dont want to have to mess with all those voltages
07:54 PM rue_: otherwise you would have an 8080 not a z80
07:54 PM McDonaldsWiFi: LOL!
07:54 PM rue_: iirc its min. 4 support chips
07:54 PM McDonaldsWiFi: yeah you win.
07:55 PM McDonaldsWiFi: I'm pretty ignorant at this level, its a very new hobby
07:55 PM McDonaldsWiFi: I just started learning z80 asm in OCT
07:55 PM rue_: ok
07:55 PM McDonaldsWiFi: :D
07:55 PM rue_: so, I can help you make a 74ls574 buffer with handshaking
07:55 PM McDonaldsWiFi: yeah my mock ups still had me worried
07:55 PM rue_: 573...
07:55 PM rue_: hmm
07:56 PM rue_: I'm getting rusty
07:56 PM McDonaldsWiFi: what if at the same moment the 328p writes to the buffer... it may get an incomplete reading
07:56 PM McDonaldsWiFi: not a big deal in my use case, but id like to learn the best way
07:56 PM rue_: no, you can write just after the read
07:56 PM McDonaldsWiFi: Ill only be polling on demand for now, and if its auto-polling itll still be every few seconds
07:56 PM rue_: cause the cpu is gonna be busy a few cycles anyhow
07:56 PM McDonaldsWiFi: rue_: such a simple answer
07:56 PM McDonaldsWiFi: man good idea
07:57 PM rue_: you can use pin change interrupt on the avr
07:57 PM McDonaldsWiFi: okay okay this is good
07:57 PM rue_: buuut, the sample will be just after the last read
07:57 PM McDonaldsWiFi: BUT I still have to solve my issue of my data output latching
07:57 PM McDonaldsWiFi: :o
07:58 PM rue_: 74ls573
07:58 PM McDonaldsWiFi: googling datasheet!
07:58 PM rue_: it should be an 8 bit latch
07:58 PM McDonaldsWiFi: oh a 8 bit latch
07:58 PM McDonaldsWiFi: an* :P
07:58 PM rue_: with 3 state outputs
07:58 PM McDonaldsWiFi: but
07:58 PM rue_: so, you can use that with the CS signal
07:59 PM McDonaldsWiFi: lets say I write 11111111, and then the next time I write itll be 00001111... the original FF will still be ther
07:59 PM McDonaldsWiFi: from the 328 I mean
07:59 PM rue_: ok, rewind
07:59 PM rue_: braaaakes
07:59 PM McDonaldsWiFi: LOL
07:59 PM McDonaldsWiFi: yeah sorry
07:59 PM McDonaldsWiFi: wait
07:59 PM McDonaldsWiFi: nevermind
07:59 PM rue_: back in 1989, this would be done differently
07:59 PM McDonaldsWiFi: I'm stupid, this is fine, the buffer means I don't have to worry about this
07:59 PM rue_: you would use an 8255
07:59 PM McDonaldsWiFi: because when not active itll reset to the correct value
08:00 PM rue_: the adc could output a sample_ready flag, and you would read it thru the 8255,
08:00 PM rue_: the adc would have a latched output
08:00 PM rue_: then you would reset and wait for another conversion complete flag
08:01 PM rue_: again, if you find an avr with a parallel slave interface, its all a non-issue
08:02 PM McDonaldsWiFi: okay!
08:02 PM McDonaldsWiFi: afk 1 moment!
08:02 PM rue_: that said I can see how to do it with a 74ls244 too
08:02 PM rue_: or 544
08:02 PM rue_: I doubt an 8255 is gonna work at 20 or 10 Mhz
08:05 PM McDonaldsWiFi: Alright
08:06 PM McDonaldsWiFi: I think I'll go the 74ls573 route
08:06 PM rue_: kinda youonly need the 3 state buffer, which is a 74ls544
08:07 PM rue_: digging for soemthing else too ;)
08:10 PM rue_: cant find one, huh
08:11 PM rue_: McDonaldsWiFi, I dont know what preferences you have for the project as far as complexity goes
08:13 PM rue_: nothing to read cause at some point my eyes closed
09:03 PM McDonaldsWiFi: rue_: sorry, had to afk :(
09:03 PM McDonaldsWiFi: Didn't mean to disappear all of a sudden!
09:05 PM McDonaldsWiFi: I'm going to order a few of those, some more shift registers (parallel and serial)
09:08 PM _ami_: McDonaldsWiFi, its always good to have few shift regs. always handy!
09:08 PM _ami_: you never know when you need them.
09:10 PM McDonaldsWiFi: I found this really neat project where a guy made a composite video out with a 328p
09:11 PM Thrashbarg: what, mine? :P
09:11 PM McDonaldsWiFi: lol I wouldn't even be surprised anymore:P
09:11 PM Thrashbarg: looping the clock output back to the SCK input of the SPI interface?
09:12 PM Thrashbarg: it eliminates the dead 9th bit on the interface
09:13 PM _ami_: McDonaldsWiFi, i think someone did that using attiny13 here
09:14 PM Thrashbarg: http://kaput.hopto.org/spivideo/
09:15 PM McDonaldsWiFi: http://searle.hostei.com/grant/MonitorKeyboard/index.html is the one I'm referencing but his site dead a week or 2 ago and you have to look at cached on google
09:15 PM McDonaldsWiFi: oh thats insae
09:15 PM McDonaldsWiFi: insane
09:15 PM Thrashbarg: ah right
09:15 PM McDonaldsWiFi: since its 8 bit parallel its perfect for my z80 build
09:16 PM Thrashbarg: yeah I used it as a terminal for my Z80 SBC
09:16 PM McDonaldsWiFi: I was going to try and learn how to do this form scratch but I don't think its within the scope of my abilites for quite some time
09:16 PM McDonaldsWiFi: so.. Ill use his code :P
09:16 PM Thrashbarg: yeah
09:17 PM Thrashbarg: ah he's using an external shift register
09:17 PM McDonaldsWiFi: yeah to shift it out as serial
09:17 PM Thrashbarg: without the dead 9th bit like you get on SPI
09:17 PM McDonaldsWiFi: I looked up the composite standard to try and see what he's doing but it was bad
09:17 PM McDonaldsWiFi: i mean, bad on me lol
09:18 PM McDonaldsWiFi: Hmm I can't seem to even find the download link
09:18 PM McDonaldsWiFi: probably down too anyways
09:18 PM Thrashbarg: mine has a problem where it needs to run the ATMega at 27MHz however
09:19 PM Thrashbarg: should be doable at 13.5MHz but the main output loop will need to be tightened
09:19 PM McDonaldsWiFi: :/
09:19 PM Thrashbarg: and run the SCK input directly off the crystal or clock input
09:19 PM McDonaldsWiFi: do you think my Z80 will have to wait a whole bunch to output this so it doens't even up outputting garbage?
09:20 PM Thrashbarg: what do you mean?
09:21 PM McDonaldsWiFi: I dunno, I figured the 328p would be a lot slower than my z80
09:21 PM McDonaldsWiFi: when it comes to data transfer and whatnot
09:21 PM McDonaldsWiFi: putting the text on screen in time
09:21 PM Thrashbarg: nope lol
09:21 PM Thrashbarg: though it'll be spending most of its time drawing the screen
09:21 PM McDonaldsWiFi: the z80?
09:21 PM Thrashbarg: the code for my terminal reads the parallel input every scan line so it's the same as 8 * 15625Hz bits per second
09:22 PM McDonaldsWiFi: wow
09:22 PM Thrashbarg: there's a handshake to tell the Z80 if the terminal's ready to receive another character too
09:23 PM McDonaldsWiFi: yeah that's what I was wondering about
09:23 PM McDonaldsWiFi: oif the z80 will end up waiting a bunch on each handshake
09:23 PM Thrashbarg: for slow serial connections it usually does
09:23 PM Thrashbarg: not that it matters, because they're generally not running a multitasking OS
11:17 PM rue_bed: the avr can do serial as fast as the z80 can shift it
11:17 PM rue_bed: spi
11:18 PM day__ is now known as day
11:33 PM rue_bed: the avr can catch data written to it...
11:33 PM rue_bed: hmmm
11:33 PM rue_bed: the problem is that Im up into about 3 or 4 chips to do it
11:33 PM nuxil: why so many
11:34 PM Casper: because it's rue, he like complicated stuff
11:34 PM rue_bed: one for a write register, one for a read buffer, and 1 or 2 for sorting out read/write pulses with chip select
11:35 PM rue_bed: the avr isn't really fast enough to be software controlling the tristateness of the ports
11:35 PM rue_bed: so all the reads have to be hardware buffered
11:36 PM nuxil: well. use the hw implementation instead.
11:36 PM rue_bed: and that means a chip select, read logic block
11:36 PM rue_bed: nuxil, thas the 3 or 4 chips
11:36 PM rue_bed: its not elegant
11:37 PM rue_bed: if you use spi, you can bring the size of the chips down
11:37 PM nuxil: get a mcp23008 for the avr :p
11:37 PM rue_bed: might even be able to pull off several spi ports with the same few chips
11:38 PM rue_bed: 23008?
11:38 PM rue_bed: is it dual port ram?
11:38 PM nuxil: i2c io expander with intertupts and all that shit.
11:38 PM rue_bed: no, you dont get it
11:38 PM rue_bed: the z80 is a parallel cpu
11:39 PM rue_bed: to interface with it you need fast tristate gates
11:39 PM nuxil: mcp23008 has 8 io outputs that is bidirectional and it also can be configured so it triggers on changes on any pin .
11:40 PM rue_bed: McDonaldsWiFi, do you have the chip select signals already decoded or does the perphial exist on a card that has to decode its own address range?
11:40 PM nuxil: its 8 io port on the chip
11:40 PM rue_bed: no
11:40 PM rue_bed: your not getting it
11:41 PM rue_bed: that would still require the same interface chips, but then you would just have another chip in there
11:41 PM nuxil: oki.
11:42 PM rue_bed: with a 74ls138, a 74ls544 and a 74ls574, you would have enough io for 7 spi channels
11:43 PM rue_bed: I think, with a '138, '125, and '74 you could do 1 spi channel
11:44 PM rue_bed: if it was a '138, '125, '174 enough for 3
11:44 PM rue_bed: same board space
11:44 PM rue_bed: McDonaldsWiFi, you still alive?
11:44 PM rue_bed: can I draw you a schematic now?
11:45 PM nuxil: btw rue_bed. do you got any examples code for spi "on the receiver end" doing the transmission is much easyer.
11:45 PM nuxil: bitbaning code
11:45 PM rue_bed: yea, I had to cheat tho
11:45 PM rue_bed: cause its a tiny26 and its hardware sucks
11:45 PM rue_bed: want?
11:46 PM nuxil: yes
11:46 PM nuxil: pls
11:46 PM rue_bed: ok
11:46 PM rue_bed: github, pastebin, or ruemohr.org?
11:46 PM nuxil: whatever sutes you
11:46 PM rue_bed: I need to have supper
11:46 PM rue_bed: what do I want for supper?
11:47 PM rue_bed: I want to be a robot that dosn't need to eat
11:47 PM nuxil: you want a omelett
11:47 PM rue_: nu
11:48 PM rue_: nuxil, this code is part of the code for my mecha, which I will use to take over the world, so, dont share it with anyone in the military ok?
11:48 PM nuxil: rgr that
11:49 PM rue_: }:-/ ARE YOU WITHT EH MILITARY????
11:49 PM nuxil: nah.
11:49 PM rue_: 8-|
11:49 PM rue_: ok..
11:49 PM nuxil: i was in the navy
11:49 PM rue_: was is close tenough
11:50 PM nuxil: but i was forced to do service. you know 1 year service
11:51 PM nuxil: it was either 12 months in navy or 18 months of civil service. wiping old peoples asses an such.
11:51 PM rue_: this is pretty senf-contained
11:51 PM nuxil: so choice was simple for me :p
11:51 PM rue_: http://paste.debian.net/1008278/
11:52 PM rue_: so, the protocol is 2 byte
11:52 PM rue_: in order to keep it all timed properly for me, I have a sync line
11:52 PM rue_: fromt eh master
11:53 PM rue_: when the sync line goes low, the new byte is transfered to the output register
11:53 PM rue_: sot eh master puleses the sync line, and then reads a byte
11:53 PM nuxil: sync line. as in chip select.
11:54 PM nuxil: ?
11:54 PM rue_: sorta kinda not really
11:54 PM rue_: sync going low means "give me next byte"
11:54 PM rue_: it keeps the bits aligned properly
11:54 PM rue_: due to there being no framing
11:55 PM nuxil: i see.
11:55 PM rue_: but as you can see, its prettymuch completely hardware operated
11:56 PM rue_: not sure why I didn't use a int line or a pin change interrupt
11:56 PM rue_: ah
11:57 PM rue_: because it dosn't have pin change interrupt, and int line is ON one of the adc channels I needed