Tag added ... Your picture didn't make it through to me for some reason. Have you checked out the errata for your chip? I know there were some chips= where doing things with one pin did funny things with another pin, but I t= hought they were all recent PIC24 chips. =20 > as the attached picture, I have disabled the UART2's RX/TX, and the confi= g of CM3CON > is the default value. the TRIAG are input, where should be the mistake? >=20 > On Wed, 2 May 2012 14:15:38 +0800 > Zona wrote: >=20 > > Dear all: > > > > I got a problem when i use the pin6/7 of PIC18F87K90. > > I have set the pin in digital input mode. when i put the pin 6(RG1) > > to high, the bit 1 of PORTG is 1, it is ok. but when i put the pin 7 > > (RG2)to high in circuit, the bit1&2 of portG are both 1. At this time > > the bit 1 of portG should not be 0. there are no components on the > > pin 6 & 7. and also i have set the registry as the attached picture. > > > > any advice will be helpful. thanks. > > > > -- > > BR. > > ---- > > Zona >=20 >=20 > -- > BR. > ---- > Zona > -- > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist --=20 Scanned by iCritical. --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .