Hello everybody !
I'm learning PIC16C84 and I've got a simple problem (I think !).
I'd like to make a small program which just count down from FFh to 00h by
(to wait for the flashing of a led by example...)
I think that I will have to use the RAM to do that but I don't know how to
do that !
Is there a way to decrement or increment a variable (not a register) ?
Jerome Avot "YOYO"
At 22:28 12/05/97 +0200, you wrote:
>Hello everybody !
>I'm learning PIC16C84 and I've got a simple problem (I think !).
>I'd like to make a small program which just count down from FFh to 00h by
>(to wait for the flashing of a led by example...)
>I think that I will have to use the RAM to do that but I don't know how to
>do that !
>Is there a way to decrement or increment a variable (not a register) ?
> (o o)
> Jerome Avot "YOYO"
How about decfsz? It's in the data sheet. Here's an example:
Short_delay clrf Your_variable
Keith Dowsett "Variables won't; constants aren't."
Keith Dowsett wrote:
This example is good apart from the fact it failes to say where
If I understand the orignal question the writer asks how to decriment a
"Memory" variable. "Memory" variables have to be assigned first like
Your_variable equ 0Ch
Where 0Ch is a "Memory" location in usable RAM
I hope this clears it up a little more
Cheers Peter ..........
| Listen to the Nothing, child, |
| Listen to the Don'ts |
| Listen to the Never Haves |
| The Shouldn'ts, and the Won'ts |
| Listen to Impossible |
| then listen close to me: |
| Anything can happen, child, |
| ANYTHING can be. |
| Poem by Sal Silverstein |
I use RRF or RLF.
/ Andre Abelian 818.840-0003 /
/\ / Data Image
Technology _/ / /
earthlink.net / \/ andreabelian
/ 1128 Alameda Ave.ste 4 /\
/ Glendale CA 91201 /
\ \ \ \ \ \ \ \ \ \ \ \ \
More... (looser matching)
- Last day of these posts
- In 1997
, 1998 only
- New search...