Hi all! I've run into a problem that's driving me nuts. I have to set and clear porte.0 at certain points in my software. The problem is that it works on some boards, but not on others. Here's more detail : 1) PIC : PIC16C74A revB. 2) I initialize ALL the RAM from 0x0B to 0x80, and from 0x8B to the end first thing after startup. 3) I never run the stack more than 6 deep. 4) It is not a hardware problem (I've isolated the pin from the board with the same results) 5) It will always work on some PICs, and never on the others. (So it is not a works today but not tomorrow sort-of-thing) Here's what I've resorted to doing : ADCON1 = 0b00000110; ADCON0 = 0b00000000; TRISE = 0b00000110; PORTE = 0b00000001; Yet PORTE.0 won't always go high. What am I doing wrong or forgetting? -- Friendly Regards Tjaart van der Walt mailto:tjaart@wasp.co.za _____________________________________________________________ | Another sun-deprived R&D Engineer slaving away in a dungeon | | WASP International http://wasp.co.za | | GSM and GPS value-added applications | | Voice : +27-(0)11-622-8686 | Fax : +27-(0)11-622-8973 | |_____________________________________________________________|