Ambient
New Member
First of all, thanks for the previous help with this program to all who took the time. I would not bother you again with the same program, but I am stumped.
The program runs fine, outputs work. Not sure about the A/D working though. I had originally set up AN3 to get the delay value that is decremented. It was not working apparently, so I just put in a value in the code for "Delay".
The problem is that no matter what I set the value at, the delay I actually see on the LEDs is always the same, and only changes with the prescalar on Timer0. I tried changing the RAM address of "Delay" to 0x0022 from 0x0020, did not help. I am at a loss here. The program runs exactly as it should otherwise. The thing that puzzles me is that Delay is being decremented somewhere, as the program will not continue to the next LED until is is 0. Unless it never had a value to begin with and is always 0?
https://h1.ripway.com/AmbientSix/Strobe.txt
EDIT: I am not sure how to make the text file open in the post, when I just copied it the format was awful.
The program runs fine, outputs work. Not sure about the A/D working though. I had originally set up AN3 to get the delay value that is decremented. It was not working apparently, so I just put in a value in the code for "Delay".
The problem is that no matter what I set the value at, the delay I actually see on the LEDs is always the same, and only changes with the prescalar on Timer0. I tried changing the RAM address of "Delay" to 0x0022 from 0x0020, did not help. I am at a loss here. The program runs exactly as it should otherwise. The thing that puzzles me is that Delay is being decremented somewhere, as the program will not continue to the next LED until is is 0. Unless it never had a value to begin with and is always 0?
https://h1.ripway.com/AmbientSix/Strobe.txt
EDIT: I am not sure how to make the text file open in the post, when I just copied it the format was awful.
Last edited: