anyone using Pic16f452 ?
anyone using Pic16f452 ?
(OP)
can you tell me what is the best instruction which does not affect the program counter?
Thanks
Thanks
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS Come Join Us!Are you an
Engineering professional? Join Eng-Tips Forums!
*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail. Posting GuidelinesJobs |
|
RE: anyone using Pic16f452 ?
By way of illumination, let me ask you this: Why would you want to 'not affect' the program counter?
Mike Halloran
Pembroke Pines, FL, USA
RE: anyone using Pic16f452 ?
I suspect that you are perhaps new to embedded system programming, and are asking a perfectly logical, classical 'noob' question, "How do I get my program to stop, and wait for an input, and then start up again?" "When I program in a 'stop' command, it just stops, and never restarts."
The answer is, you write the program so it never, never, ever stops running, it just stops _appearing_ to do anything, but it really runs in a loop, constantly polling the input, i.e., asking the same switch, over and over, "Did the idiot out front do anything?", and repeating until it gets an answer different from "no".
I hope that helped, or at least didn't insult you.
Mike Halloran
Pembroke Pines, FL, USA
RE: anyone using Pic16f452 ?
Keith Cress
Flamin Systems, Inc.- http://www.flaminsystems.com
RE: anyone using Pic16f452 ?
RE: anyone using Pic16f452 ?
Keith Cress
Flamin Systems, Inc.- http://www.flaminsystems.com