khoi

data save

3 posts in this topic

Hi every one,

I want to record temperature to DM of CH1H. At the first minute , data is save in D1. The next minute, data is saved in D2 and so on.

How to do this?

Thank you.

 

Le Khoi

Share this post


Link to post
Share on other sites

You could also use @D.  It is simpler.  

First scan, MOV &1 D0 - initialize pointer to point at D1

When you want to store a temperature:
MOV Temperature @D0 - Move the temperature to the address that D0 is pointing to

INC D0 - increment D0 by 1.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now