#avr Logs

Feb 24 2021

#avr Calendar

01:23 AM ajcc: well, it seems the only way to get back into debugWire is to power cycle the µC :/ after avrdube have sent the leave debugwire command to reenable the reset line for ISP programming, there doesn't seem to be a way to return to debugWire mode
01:40 AM rue_bed: hmm
04:46 AM Miyu is now known as hackkitten
09:28 AM rue_mohr: there are much better ways to debug
09:29 AM rue_mohr: those on chip debugging systems never really work out
09:30 AM rue_mohr: been watching people fight with them for 20 years now...
10:17 AM vgtw_ is now known as vgtw
10:22 AM nohit: they work absolutely fine
10:23 AM nohit: gdb+openocd
01:57 PM [1]MrMobius is now known as MrMobius
06:39 PM rue_mohr: nohit, haha, no
06:42 PM skz81: rue_mohr, hoho, why ?
07:02 PM rue_mohr: skz81, have you not been paying attention to people having all sorts of problems over the last 20 years?
07:39 PM vgtw_ is now known as vgtw
07:58 PM rue_mohr: https://maxpromer.github.io/LCD-Character-Creator/
09:30 PM PublicWiFi: so lets say I have 8 inputs.. on different ports
09:30 PM PublicWiFi: I want to grab their states, and bitshift those states into a byte...
09:31 PM PublicWiFi: would it easier to just OR them all?
09:31 PM PublicWiFi: bitshift each one depending on their significance and then OR them?
09:33 PM rue_mohr: I have an inefficient way thats easy if you want
09:34 PM PublicWiFi: sure
09:34 PM PublicWiFi: no need for efficency here
09:35 PM rue_mohr: hmm I didn't do an example if use give me a min...
09:35 PM PublicWiFi: no worries man
09:35 PM PublicWiFi: its late and I'm about to call it quits tonight anyways xD
09:35 PM rue_mohr: how many different ports?
09:35 PM PublicWiFi: 2
09:35 PM rue_mohr: k
09:36 PM rue_mohr: I'm half asleep
09:36 PM PublicWiFi: xD
09:36 PM PublicWiFi: same
09:36 PM rue_mohr: just a sec I'll paste the functions
09:36 PM PublicWiFi: alright!
09:37 PM rue_mohr: they are for translation of a random bit field to a value, and vise versa
09:37 PM rue_mohr: http://paste.debian.net/1186848/
09:37 PM rue_mohr: I USUALLY put an example main() in my libraries, this one I didn't
09:38 PM rue_mohr: oh wait, va_start prolly isn't gonna agree with an avr
09:38 PM rue_mohr: oh drat
09:38 PM rue_mohr: I mean, maybe it will, I'v never tried it
09:41 PM PublicWiFi: ill make it work!
09:41 PM PublicWiFi: thanks for the help!
09:41 PM rue_mohr: I cant find my code that uses it...
09:43 PM rue_mohr: oh cause I renamed it
09:43 PM rue_mohr: ok
09:44 PM rue_mohr: spliceValueFromField( &ARG_AI, A, 8, 0,1,2,3,4,5,6,7);
09:44 PM rue_mohr: the value ARG_AI is made from 8 bits of A. Reverse order, bits 0,1,2,3,4,5,6,7
09:45 PM rue_mohr: spliceFieldFromValue( &out, resultO, 8, 0,1,2,3,4,5,6,7);
09:45 PM rue_mohr: out is made of 8 bits of resultO, in reverse order, bits 0,1,2,3,4,5,6,7
09:46 PM PublicWiFi: ahh okay
09:46 PM rue_mohr: you see how it lets you "compose" one value from another?
09:46 PM rue_mohr: I honestly cant tell you what the difference between the functions is right now tho..
09:46 PM rue_mohr: I wish I were awake
09:47 PM rue_mohr: one of them stacks...
09:48 PM rue_mohr: field from value stacks the bits up, two consecutive calls could be used
09:48 PM rue_mohr: no
09:48 PM rue_mohr: oooh
09:48 PM rue_mohr: was it 2am when I wrote this!?!