Using a 28x1
I need to take a reading every either 2 or 5 seconds over 80 minutes, the range of the readings willbe between 0 and about 60, although the majority will be between 5 and 20.
This means that I need to take a total of either:
60/2 x 80 = 2400 readings at every 2 seconds
or
60/5 x 80 = 960 readings at every 5 seconds
With the usual or "average" reading not exceeding 25 this mean that the sum of the readings ( used to calculate the average) will be around
60,000 for every two seconds
24,000 for every five seconds
The pulsin command ( not related to the average sample) uses 65535 as the maximum for its word variable, that means that it is a 16 bit variable ( I think) or two bytes. How do I do that??
b0 is an 8 bit variable and w0 is a 10 bit variable
Do I need to split the binary number and store it in 2 8 bit variables, if so, how, code would be nice or direction to help.
I had a look at manual 2 page 9,19 and it says it can be done with * for the low word and ** for the high word variable, how, a little help, please.
I need to take a reading every either 2 or 5 seconds over 80 minutes, the range of the readings willbe between 0 and about 60, although the majority will be between 5 and 20.
This means that I need to take a total of either:
60/2 x 80 = 2400 readings at every 2 seconds
or
60/5 x 80 = 960 readings at every 5 seconds
With the usual or "average" reading not exceeding 25 this mean that the sum of the readings ( used to calculate the average) will be around
60,000 for every two seconds
24,000 for every five seconds
The pulsin command ( not related to the average sample) uses 65535 as the maximum for its word variable, that means that it is a 16 bit variable ( I think) or two bytes. How do I do that??
b0 is an 8 bit variable and w0 is a 10 bit variable
Do I need to split the binary number and store it in 2 8 bit variables, if so, how, code would be nice or direction to help.
I had a look at manual 2 page 9,19 and it says it can be done with * for the low word and ** for the high word variable, how, a little help, please.