Have you disabled the comparators ?? CMCON disable can be either 0x00 or 0x07 Mr Smiley :o) --- On Mon, 4/2/13, Nicola Perotto wrote: > From: Nicola Perotto > Subject: Re: [PIC] Re: PIC16F88 > To: "Microcontroller discussion list - Public." > Date: Monday, 4 February, 2013, 23:43 > Hi, >=20 > On Mon, Feb 4, 2013, at 07:27 AM, mircea2012 wrote: > >> Hy. > >> > >> I have a question about port B PIC16F88 mcu. > >> I try to flashing the eight leds of port B with a > delay of 1 sec (trisb=3D0 > >> - > >> all pins are outputs). > >> I can't to setup the last 2 pins of port B like an > outputs. I sure that > >> they > >> can be set like an output because in electrical > drawings is specified. > The last 2 pins of Port B are also used to connect the > programmer (and you > used...). >=20 > >> These 2 pins also can be setup like an analog > channel. To deactivate to > >> work > >> like an analog channel I set the=20 > >> ansel=3D0; (digital I/O) but the compiler does not > recognize the ansel > >> register. What is the corect syntax ? > Which language/compiler are you using? >=20 > >> Also i deactivate RB Port Change Interrupt Enable > bit, but the pins RB7 > >> and > >> RB6 are always ON.=20 > >> Can somebaody give some tips ? > Why can try but remember that we need more exaustive > informations also! >=20 > --=20 > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist >=20 --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .