On 21 June 2011 08:18, wrote: > > =A0Let me try this again without all the typos and spelling mistakes. > =A0That's what I get for going too fast. > > =A0All, > > =A0I am trying to get familiar with the PIC16F1827 part that has the > Capacitive Sensing Module on it. > =A0As a start, I am setting each bit on PORTB sequentially. =A0This is ju= st > a familiarization exercise. > =A0However, I can't get bits 1,2 and 5 to toggle. =A0I have tried turning > off any module associated with > =A0PORTB, but I still cannot get it to work. Bits 0, 3, 4, 6, and 7 work > fine. > =A0I am probably missing turning off something, but I just don't see what > it is. > > =A0Below is listed what I have tried turning off so far. > > =A0 =A0 =A0 =A0 =A0clrf =A0PORTB =A0 =A0 =A0 ; Clear the PORT > > =A0 =A0 =A0 =A0movlw =A0 0x01 =A0 =A0 =A0 =A0; Make pins OUTPUTS > =A0 =A0 =A0 =A0movwf =A0 0x08 > =A0 =A0 =A0 =A0clrf =A0 =A0TRISB > =A0 =A0 =A0 =A0movlw =A0 0x00 > =A0 =A0 =A0 =A0movwf =A0 0x08 > > =A0 =A0 =A0 =A0movlw =A0 0x03 =A0 =A0 =A0 =A0; Disable Serial Port (UART) > =A0 =A0 =A0 =A0movwf =A0 0x08 > =A0 =A0 =A0 =A0bsf =A0 =A0 RCSTA,7 > =A0 =A0 =A0 =A0movlw =A0 0x00 > =A0 =A0 =A0 =A0movwf =A0 0x08 > > =A0 =A0 =A0 =A0movlw =A0 0x03 =A0 =A0 =A0 =A0; Make Pins Digital, Not Ana= log > =A0 =A0 =A0 =A0movwf =A0 0x08 > =A0 =A0 =A0 =A0bcf =A0 =A0 ANSELB,7 shouldn't this be 'clrf ANSELB' ? Matt --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .