#avr Logs

Feb 03 2019

#avr Calendar

04:04 AM jancoow: rue_shop3: omg
04:08 AM jancoow: I found the issue.
04:08 AM jancoow: The internal clock is set to 20mhz. I thought the fuses where on 16mhz. So it wasn't running 8mhz: it was running at 10mhz...
04:08 AM jancoow: And guess what. It's working now
04:08 AM jancoow: I used my RPI as digital scope.. Now I see that such digital analyser comes in handy solving these problems
04:51 AM vmt: also called a logic analyzer
04:53 AM vmt: watch some dave (the guy with the clamp in his balls), and he'll tell you how the industry standard is to use some of his sweet $10000 agilent scopes
04:53 AM vmt: everything is either a) bog standard, or b) industry standard
05:38 AM rue_mohr: jancoow, I suspected your clock might be out
05:38 AM rue_mohr: sweet
05:38 AM rue_mohr: thats why a flashing led at 1Hz can be a good point to start with
05:39 AM rue_mohr: if its not 1Hz when it should be, you know something basic is wrong
05:39 AM rue_mohr: sorry for not helping much, that chip is exactly what I thought microchip would do to the avr line and its a crime
05:43 AM jancoow: no you helped me very much :D Pointed me in the right direction wit using an logic analyzer
09:18 AM [1]MrMobius is now known as MrMobius
11:52 AM jancoow: rue_mohr: mmh
11:52 AM jancoow: I want to use timer B to measure time between received uart bits
11:52 AM jancoow: chars *
11:53 AM jancoow: but can't figure out which mode I need to set :/
11:53 AM jancoow: so if the time is to long between some packages, an interupt needs to be generated
11:53 AM jancoow: between some chars *
11:58 AM jancoow: but can't figere out how to implement this correctly
12:13 PM jancoow: Well i've worked something out. Just disabling the timer itself when TOP value is reached
12:13 PM jancoow: works like a charm :D
12:28 PM rue_mohr: k
12:28 PM rue_mohr: first step is to set the clock source
12:28 PM rue_mohr: second step set up the divider, use the overflow for the interval you want
12:29 PM rue_mohr: set it to trigger an interrupt and have that interrupt check a flag from the interrupt your character recieve uses
12:31 PM jancoow: yeah problem is that an overflow interupt doesn't exist for this timer..
12:32 PM jancoow: So I basicly set the TOP value to the max
12:32 PM jancoow: so it kinda works like an overflow interupt
12:35 PM rue_mohr: uh
12:35 PM rue_mohr: every timer should have an overflow interrupt
12:40 PM jancoow: uh
12:40 PM jancoow: not this one
12:41 PM jancoow: brb
01:47 PM rue_mohr: the timer will have some kinda interrupt
01:47 PM rue_mohr: if its just a copmpare match, set it for 0 and thats close enough to rollover
11:37 PM day_ is now known as day