#avr Logs

Jul 07 2020

#avr Calendar

12:11 AM rue_mohr: must be
12:17 AM [1]MrMobius is now known as MrMobius
12:33 AM rue_mohr: yea, I think I can do this..
12:34 AM rue_bed: my plan is to clock an avr from itself
12:34 AM rue_bed: I'm gonna loop the timer compare output to the clock input
12:35 AM rue_bed: ooo, I was going to use a resistor for the default startup clock, but I wonder if I can just use the internal clock and switch it over when I'm ready
12:39 AM Strogg: welll.. wtf. tried another usb serial with 5V TTL, got it working.. tried cutting from tracks, switched back to the TTL3.3, still works, reconnected everything, still works.
12:39 AM rue_bed: hmm, wait tho, the prescaler does have the value I need, maybe this isn't even fancy
12:39 AM Strogg: so.. in short, I fixed the problem, but I don't know why it wasn't working. Heh.
12:40 AM rue_bed: for your programming?
12:40 AM Strogg: yeah
12:40 AM Strogg: or atleast, I can query my tiny414 now.. so.. that's most of the way there
12:40 AM Strogg: before the programmer was sending commands and getting no responses back
12:41 AM rue_bed: ok so, my pwm is /256
12:41 AM rue_bed: and I need to load a new value every cycle
12:41 AM rue_bed: and that takes 2 instructions
12:42 AM rue_bed: so I need to clock the processor at /128, the instructions will be /2 makes a match
12:44 AM rue_bed: 31kHz pwm, sine wave...oh
12:44 AM rue_bed: I'm still too high
12:44 AM rue_bed: I need to use 512 samples
12:44 AM rue_bed: ok
12:44 AM rue_bed: gives 61Hz
12:45 AM rue_bed: or 60Hz given 7.864Mhz
12:50 AM rue_bed: ok, but I still have to use an external clock injected at the two pins
12:51 AM rue_bed: as you cant use the divider *just* on the cpu clock, the io clock goes with it
12:51 AM rue_bed: k
07:02 AM day_ is now known as day
07:57 AM day_ is now known as day
09:11 AM Strogg: So.. I've been looking at the new attiny-0 series, and the example C code I've been looking at looks nothing like what I remember AVR C code looking like. Can anyone recommend a good intro for modern AVR page? I'm not looking to do arduino or anything like that. Just straight C
09:12 AM LeoNerd: Just read the datasheet and write some code
09:13 AM LeoNerd: Also, they are still AVR chips, just with different peripherals
09:48 AM rue_mohr: +- that microchip screwed up the arch.
10:14 AM Strogg: I gues that's why they are cheaper now?
11:45 PM day_ is now known as day