AnsweredAssumed Answered

I'm trying to write eeprom to 32-bit variable

Question asked by mahir on Apr 19, 2015
Latest reply on Apr 19, 2015 by mahir
    How do I assign the variables a1 and a2 x ?
    I want to read the typed value
    
    unsigned long x; //readings value
    unsigned long a; //value
    unsigned int a1; //values written
    unsigned int a2; //values written
 
       a=40000000;      
        
       a1=a/65536;
       a2=a%65536;
 
//x=a1;    //that does not happen
//x=a2;    //that does not happen
//x=a1+a2; //that does not happen

Outcomes