In message <4D8811C9.1080107@talktalk.net>, Oli Glaser=20 writes >On 22/03/2011 02:55, Kerry Wentworth wrote: >> I don't see where you're clearing ANSEL. It powers up as all 1s. making >> all pins that are analog capable into analog inputs. >> >> Kerry >> >> > >I saw that, but RB0 (or 1) is not an analogue pin, whereas RA1, which >worked is. >Unless the OP got the pin names mixed up (he did say RA0, then RA1 - or >did he mean RA0 *and* RB0 didn't work, but RA1/RB1 did?) >Some clarification needed I think.. > Sorry, my bad, I should have asked what the difference between RA1 and=20 RB0 is (I've tried a few different PORTB pins), RA0 is indeed used as=20 analogue, ANSEL/TRISA are set up further on in the code. RA1,2,3,4 work with the servo, RB0,1,2,3,4,5 don't, all give the same=20 result with a 'High' and no pulses. The way the code is written allows=20 me to 'move' the servo output to a different port pin by just changing a=20 #define as all pins that aren't used as analogue are set as output. I found some ready written code for a 12F675 to check my servos are OK=20 and, predictably, they work perfectly so it's definitely my chips or=20 code. I've used 3 chips (all same date code) on 2 dev boards (identical) and=20 also on a breadboard with the absolute minimum to get it to run (I.E. a=20 pull-up on MCLR and a stiff 5v supply), again, PORTB doesn't work with a=20 servo attached but PORTA does. I suspect an electrical difference between ports that I'm missing in the=20 datasheet as I have discovered by accident that a 1K resistor between=20 RB0 and the servo works, I'd still like to know what the difference is=20 so I know what/how for future reference and don't get caught again. --=20 Clint Sharp --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .