Hi

Can somebody help here:

I am having trouble using long variables in my code. I think it does not
compile or handle correctly:

int main(void) {
    1650:       31 40 00 0a     mov     #2560,  r1      ;#0x0a00
  unsigned int i;
  unsigned char c;

// Variables for Callibration of AD7758
  long accumulator;
  signed char AD7758_CAL_REG_OFFSET = 0x00; //To keep record of complete
calibration procedure
  long AD7758_xRMS_measured1 = 0x00; //Storage for results of offset
callibration
  long AD7758_xRMS_value1 = 0x00;
  long AD7758_xRMS_measured2 = 0x00;
    1654:       06 43           clr     r6              ;
    1656:       07 43           clr     r7              ;
  long AD7758_xRMS_value2 = 0x00;
  long AD7758_xRMSOS = 0x00;
  long AD7758_xRMSOSnum = 0x00;
  long AD7758_xRMSOSden = 0x00;

  WDTCTL = WDTPW + WDTHOLD;             // Stop WDT

Kind regards
Riaan


Riaan Doorduin

Power Electronics Group
Dept. Electrical and Electronic Engineering
University of Stellenbosch

Tel. +27 84 816 3790
     +27 21 808 3220 (ext 2)
Fax. +27 21 808 3554
mailto:doord...@sun.ac.za


Reply via email to