#avr Logs

Sep 23 2017

#avr Calendar

12:22 AM day__ is now known as daey
12:59 AM Cracki_: pwm is a mindfuck. OCRA et al is buffered, so only updated if TCNT = TOP and the timer is running
01:15 AM Jartza: morning
01:24 AM Cracki_: evening
01:54 AM dgriffi: Cracki_: what are you trying to accomplish with pwm?
01:54 AM Cracki_: stepdir generation (stepper motors)
01:55 AM Cracki_: it's been working for a year, but not precisely as I intend
01:55 AM dgriffi: would code for playing sine audio be helpful?
02:00 AM Cracki_: nope
02:01 AM Cracki_: the trouble is I sometimes will have to trigger an overflow/clear
02:01 AM Cracki_: and I need to be precise in when OCR1B = OCR1A (my top value), so that for the considered interval, no pulse is generated
02:01 AM Cracki_: I use OC1B for the pulse. falling edge is setup, rising is step
02:02 AM Cracki_: and rising is on overflow/clear
09:24 AM polprog: i managed to hook up avr dragon via jtag and debug a program on the avr
09:24 AM polprog: no more stupid uart pritnfs :PP
09:25 AM polprog: GDB with DDD gives me live varaible and memory content readings
09:59 AM tpw_rules: aren't real debuggers great
09:59 AM tpw_rules: fuck the haters
10:01 AM polprog: i knew dragon was worth the money i spent
10:01 AM polprog: back then
11:14 AM Casper: yet, on this one I'm very slowly working on... there is no jtag port
11:15 AM Casper: I'm actually surprised that I didn't really had to do much debugging
11:15 AM Casper: now my issue is: how to make the board...
11:15 AM polprog: yeah, the mcu i design with for work doesnt have jtag as well, bugger
11:15 AM Casper: I'm out of space for the traces
11:15 AM polprog: at least m16 does adn i could learn jtag
11:16 AM polprog: what board are you making?
11:16 AM Casper: still for the fridge thermostat
11:17 AM Casper: I will have to use a bigger box
11:17 AM Casper: https://i.imgur.com/0oc4Jlh.png <=== see
11:18 AM polprog: what do you need to cram in there?
11:18 AM Tom_itx: lotsa room there
11:19 AM Tom_itx: 1 airwire too
11:19 AM polprog: yeah, iirc the iphone motherboard is similar size :P
11:19 AM Casper: need to lay the airwire and make the others neater...
11:19 AM Casper: I may be slightly oversize for the board too
11:23 AM polprog: https://www.rapidrepair.com/guides/iphone-4/images/iphone-4-mainboard-chips-full.jpg look how croded it is
11:23 AM polprog: crowded*
11:25 AM Casper: yeah machine assembled, with multi-layers board, with machine made board
12:41 PM rue_house: polprog, are the sqares where you have to fire to kill it?
12:42 PM polprog: most likely... i'd aim the biggest one though
12:43 PM polprog: "Firefox has found a backdoor in windows" https://i1.jbzdy.pl/contents/2017/09/4f55ee9790e78ea9cba05ba0baa00343.jpg
12:46 PM Emil: https://technicshistory.wordpress.com/2017/09/20/the-electronic-computers-part-2-colossus/
12:46 PM Emil: polprog: lol
12:48 PM polprog: so the machine was a big xor
12:48 PM polprog: interesting
09:24 PM enh: https://filebin.ca/3bRPtIg0jOuf/YawFromAccelAndMag.pdf
09:24 PM enh: Good paper
09:50 PM enh: cehteh?
09:50 PM enh: This paper shows how to implement the necessary trigonometric functionsusing only integers
09:52 PM tpw_rules: like cordic?
09:52 PM tpw_rules: also i get a 502
11:09 PM enh: https://cache.freescale.com/files/sensors/doc/app_note/AN4248.pdf