Thamks, no problem... R -----Original Message----- From: mspgcc-users-ad...@lists.sourceforge.net [mailto:mspgcc-users-ad...@lists.sourceforge.net] On Behalf Of Dmitry Sent: 16 April 2004 14:20 To: mspgcc-users@lists.sourceforge.net Subject: Re: [Mspgcc-users] Problem with declaring global long variables
where is the problem? On Friday 16 April 2004 15:18, Doorduin Riaan <doord...@sun.ac.za> wrote: > 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 > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=Click > _______________________________________________ > Mspgcc-users mailing list > Mspgcc-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/mspgcc-users ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Mspgcc-users mailing list Mspgcc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mspgcc-users