Dear Friends, I have bumped into yet another minor setback. I am busy writing code for a project of mine ("Intelligent" Fan Controller, I thought that would be a nice project to start with...) in more of an object orientated fashion (making use of the fact that you can have multiple source files in which yo= u write code for specific tasks; eg, fan_control.asm takes care of fan contro= l etc). Let me cut the crap: Let's say I have three source files; respectively main.asm, initialization.asm and fan_control.asm. * In my main.asm I only have the #include directives and the main loop in which I point the pic to a multitude of subroutines. * In initialize.asm I put all the initialization code under my Initialize subroutine, including the __config bits and a multitude of RES directives. * In fan_control.asm I obviously have every soubroutine that has to do with controlling the four fan-outputs. My problem: In my initialize sub [in initialization.asm], I have define a set of variables using the RES directive. When I try and use the defined variables in one of my fan_control subroutines, MPASM bitches; Error[113] F:\PROJECTS\ELECTRONICS\FAN CONTROLLERS\INTELLIGENT FAN CONTROLLER V1\CODE\CONTROL_SUB.ASM 50 : Symbol not previously defined (TMR_SETTING) Error[113] F:\PROJECTS\ELECTRONICS\FAN CONTROLLERS\INTELLIGENT FAN CONTROLLER V1\CODE\CONTROL_SUB.ASM 55 : Symbol not previously defined (TMR_SETTING) Error[113] F:\PROJECTS\ELECTRONICS\FAN CONTROLLERS\INTELLIGENT FAN CONTROLLER V1\CODE\CONTROL_SUB.ASM 60 : Symbol not previously defined (TMR_SETTING) Error[113] F:\PROJECTS\ELECTRONICS\FAN CONTROLLERS\INTELLIGENT FAN CONTROLLER V1\CODE\CONTROL_SUB.ASM 65 : Symbol not previously defined (TMR_SETTING) Help?! Regards, Sean. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist