Same thing as "sec", a bit flag. For me, it stands for "LED on". Does it = make a difference what it's called? ----- Original Message ----- From: "Jan-Erik S=F6derholm" To: "Microcontroller discussion list - Public." Sent: Saturday, December 09, 2006 9:17 AM Subject: Re: [PIC] Probably Something Simple > WHat is "lon" ?? > > Jan-Erik. > > dax2@hotmail.com skrev: >> I'm doing a project for work using a 12F675 PIC. I tried using the = >> following code snippet ... >> >> ;***** VARIABLE DEFINITIONS >> >> Mark1 EQU 0x20 ;time delay variable >> General EQU 0x21 ;keeps track of time point >> Tenthsec EQU 0x22 >> >> ;********************************************************************** >> >> #define sec General,0 >> lon General,1 >> ORG 0x000 ; processor reset vector >> goto Start >> >> ... and when I compiled I got an Illegal OpCode for the General variable= . = >> So I tried it this way ... >> >> Mark1 EQU 0x20 ;time delay variable >> General EQU 0x21 ;keeps track of time point >> Tenthsec EQU 0x22 >> Ledon EQU 0x23 >> >> ;********************************************************************** >> >> #define sec General,0 >> lon Ledon,0 >> ORG 0x000 ; processor reset vector >> goto Start >> >> ... Now I get the Illegal OpCode for the Ledon variable instead. >> >> Can someone explain what I'm doing wrong? >> >> I assumed General would be an 8 bit variable with "sec" using bit 0. = >> That's why I tried the first set. >> JFTR, without "lon" the first set compiles with no error. So does the = >> second set without the Ledon and lon entries. >> My aim is to flag a low transient. > > -- = > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist > = -- = http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist