Igor, I will start my reply by giving your several resources to answer questions about the CCS compiler. I am just a user of the compiler, starting about a year ago, and I am no expert. 1. You can get technical support directly from CCS at ccs@ccsinfo.com . They are very helpful. 2. You can get technical help on CCS and anything related to a PIC microcontroller by subscribing to the PIClist. It is a nonmoderated mailing list devoted to PIC microcontrollers and anything remotely related (Such as cows, jokes about Bill Gates, Optical components, homemade nuclear weapons, and general electronics.) Joking aside, it is the BEST resource for an electronics guy. It also has many Spanish speaking members, and has even spawned a Spanish list ( I don't know the contacts for this list right now.) To subsribe send a message to LISTSERV@MITVMA.MIT.EDU with the body of the message stating SUBSCRIBE PICLIST on a line by itself with a carriage return at the end of the line. You will get a detailed email in return telling you how the list operates. SAVE THIS MESSAGE because it tells you how to get OFF the list if you so desire. 3. Back to your question. I have trouble with the OUTPUT_HIGH(pin_xx) command as well. I think it has to do with the old read-write-modify bug (MCHIP says it is a feature???!?!?!!!???) of the PIC microcontroller. CCS translates OUTPUT_HIGH(pin_xx) into BSF PORT, PIN in assembler, which is generally NOT the correct way to change a pin in a PIC. If there is any capacitance on the pin it will NOT go high. Instead, try this: Keep a variable called MIRROR with your pin settings in it. If you want to raise a pin, do this: #ASM BSF MIRROR, PIN MOVF MIRROR, W MOVWF PORT #ENDASM Or in C, bit_set(mirror, pin); port = mirror; 4. BTW - how did you find out about me? -- Lawrwence Lile -----Original Message----- From: 226808@cepsz.unizar.es <226808@cepsz.unizar.es> To: lilel@toastmaster.com Date: Thursday, August 12, 1999 4:24 AM Subject: Re: CCS compiler - shift Right Hello, I am Igor a spanish student, I am using the CCS compiler, and I am having serious problems with it, especially with the ports, I write output_high(PIN_XX), and That pin is not set, though you can see in the list code that the asm command to set it is in it, it is as if the icepic ignored it, have you ever have that problem?. I still have another problem, I increment a variable in the interruption rutine and once I am back to my regular flux of code the variable that I have incremented has reseted. Does anyone have an answer for this X-Files?. A friend of mine used to work with the CCS compiler till it found these kind of problems, he thinks, the CCS touched the variables we have created and our initialitation. Well, hope you have an answer, because I am going nuts. Igor Gsmez Ortiz