c - how to program a pic chip to remember a specific input? -


i putting circuit allows user tell car how many spaces go forward/backward, , how many spaces go left/right. this, have figured out need sort of memory chip remember binary input sent 7 segment display once user has chosen, turns motor specific time, can set.

what know how can program pic chip remember binary input, turn motor on, forget binary input, ready another?

you don't need separate memory chip, pic has internal memory; can use res directive allocate bytes of memory can later used variables. process following:

  1. read user's input
  2. save input in allocated memory space
  3. store in variable
  4. do whatever want

furthermore, don't need "forget" input, variable allocated res rewritable

p.s: assume you're using assembly language, if not, please tell language you're using.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -