My problem was fixed when I pulled my head out of my butt.
Type: Posts; User: BGreen; Keyword(s):
My problem was fixed when I pulled my head out of my butt.
You are right. That command will never be executed. Actually it was redundant and a waste of code space. Thanks.
If Q = 1 it does. I had rechecked resumes til I was blue in the face. I had left out an obvious one. Thanks for the input Skimask
Never mind, I evidently was losing my hair from head up the butt disease.
Below is my code. What I dam doing is controlling a camera. Initially I have 1 button that sets a variable from 1 to 3. Under each variable I set certain functions. Under #1 I set delays between...
Thanks again Steve. It was the address that had me confused and your example cleared it up for me.
Butch
Thank you Steve. Let me see where I can go from here.
Steve that was what I was trying with Write address, value. Maybe I'm confusing myself with the address. On page 49 of the data sheet it also gave a list of requirements and I was getting syntax...
I have never used EEPROM before and am confusing the **** out of myself reading the data sheet. All I'm trying to do is save and read a couple of variables. One will range from 0-6 while th other...
Did you use an interupt routine? can you post the code you used?
Most of the sensors that were hacked there are out of production and have been for several years. You can buy motion activated camera controllers from several sources but they can get rather...
I would do it by interupting the pic and have an if statement:
if c1 = 0 then
do whatever
resume (whatever your base routine is)
do whatever else
c1 = 0
resume (whatever your base routine is)...
Just use a routine that sets a counter and then resets the next time. Branch depending on if the counter is 1 or 0. Put a time limit for the second if you want and have it reset at the expiration.
Thank you Mr E. On the 676 it is actually Table 12.7. For some reason I thought the "Read" voltage was lower than the min operating voltage but I guess I was wrong._______I was definitely wrong!...
I'm sure its in the data sheet somewhere but I can't seem to find it and my searches here hit so much stuff I still haven't found it. I'm using a 16F676 and reading a pin that is at .68 volts. What...
Thank you Darrel. I appriciate the help.
Arch, once again I'd like to thank you. That was it. At one time programing was one of my strong points, but it seems I get lost pretty easy these days. Thanks for helping me out again.
I wasn't using anything but internals on this Arch. I'll check out what you posted and give it a whirl. Thanks for the help. I think my brain began to die after I passed 50.
I fixed it and it still does the same thing. In addition, it seems that if I even get close to it sometimes it goes off. Is there a pin I should ground or have I really screwed something up?
Sorry arch, I edited it to simplify it and may have messed that up. Let me check it and I'll post again.
Melanie helped with some example code in this thread http://www.picbasic.co.uk/forum/showthread.php?t=3589
and I figure I'm still confused somewhere in the setup. I defines both "OldPorta" and...
Melanie, thank you for the reply. I did understand the 676 just had Port A & C. Sorry for not clarifying the port. This was exactly what I needed and want to thank you for the assistance. I had...
I know this is a very basic question and I have gone thru the data sheet for a 16f676 trying to figure out how to do what you were telling robert to do. could you give a code example? I actually...
Thank you Arch. I looked at that so many times its nuts and never saw it. Figured another set of eyes would pick something up easily. Works like a charm now!
I'm switching from a 12F629 to a 16F676 to get more pins and trying to work out the differences in the pics. The following is supposed to use a falling edge Port Change Interupt on Pin 2. The program...