Sergey Dryga dryga.us> writes: > I am trying to use RA4 and RB4 as digital outputs on PIC24F32KA302 to no > avail. They look like 3-state or inputs (voltage floating). =20 > I have corresponding TRIS bits set to 0, ANSA and ANSB =3D=3D 0.=20 > LATA =3D 0x04D3; > TRISA =3D 0x0800; > ANSA =3D 0x0000; > LATB =3D 0xBFBC; > TRISB =3D 0x4404; > ANSB =3D 0x0000; >=20 > Secondary oscillator disabled (OSCCONbits.SOSCEN =3D 0;). Other pins (RA0= , > RA1, RB3, RB5) work as expected, as normal digital outputs. =20 >=20 SOLVED:=20 need to clear FOSCSEL.SOSCSRC config bit:=20 _FOSCSEL(.... SOSCSRC_DIG) Sergey Dryga --=20 http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .