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:
- read user's input
- save input in allocated memory space
- store in variable
- 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
Post a Comment