Post Created date
timer1 and 2 are not working the same.
Yes, was pretty much I had the prescale wrong and was expiring too fast.
Tuesday, 1 September 2020 - 21:20
timer1 and 2 are not working the same.
"Ok, you set it to zero...then it will count up thereafter.  Have you verified the zeroing is happening?  " yes, its not going to zero. I left the timer in the default...
Tuesday, 1 September 2020 - 19:27
timer1 and 2 are not working the same.
Ah, I did in deed fail to mention that, added the info.     "What makes you say that" - if (TCNT2 >= 150) //make this .5 seconds,     {   ...
Tuesday, 1 September 2020 - 17:41
My pin detection change from first to second run
Why it is the crap you think is not it, always turns out to be the problem? It was in fact the interrupts cli(); fixed it. Really should have listen to that voince in the back of...
Wednesday, 19 August 2020 - 22:18
My pin detection change from first to second run
I'm sorry that's why I'd like to stick with the relevant section. I know this is the relent code for a fact as I'm staring right at it. I'm pretty sure that was all well explained...
Wednesday, 19 August 2020 - 21:58
My pin detection change from first to second run
Here is the source, its got a few comment sections atm.  Gamepad just has a few variables.   ki0bk : Yeah kind of working on that for my self, there is a lot going on in...
Wednesday, 19 August 2020 - 20:12
My pin detection change from first to second run
    its a lot of irreverent stuff...  but I do not mind.  This version has my asm function waiting only on the latch pin (top of the two) and has the same...
Wednesday, 19 August 2020 - 18:46
My pin detection change from first to second run
That's 2 pins you're checking there.    Yeah in theory I want both. I'd be ok with just one. Though my testing shows the same results with either or low. I can try...
Wednesday, 19 August 2020 - 18:17
My pin detection change from first to second run
Voltages are the same... I still do no understand this.
Wednesday, 19 August 2020 - 18:15
My pin detection change from first to second run
I rewrote it in assembly and its doing the same thing.   PORTB |= 0x04;PORTB &= ~0x04;//debug asm volatile( "wait%=:\ \n" " sbic %0,0 \n" " breq wait%= \n" "...
Wednesday, 19 August 2020 - 17:49
My pin detection change from first to second run
Looking at the lst file I see only the one function and its not 4us.    106 0090 2A9A              sbi 0x5,2...
Wednesday, 19 August 2020 - 17:03
My pin detection change from first to second run
The 4 us delay is occurring from PORTB |= 0x04;PORTB &= ~0x04;to PORTB |= 0x04;  the _delay_us(4) your speaking of is long after my debug point. That is the byte...
Wednesday, 19 August 2020 - 16:46

Pages