>> This would work only I need individual control of each line. I've >> used BSF/BCF operations to do bit-banged SPI on a 16F84 before, and >> that worked just fine, it's hard to believe that I can't >simply toggle >> some lines using those commands! > >You can. It sounds to me like you have not properly set up >the TRISA register for the bits in question ... This is what I was thinking as well, but in the PICC, I simply have: --- TRISA = 0b00000000; --- Hopefully I can rely on that... :/ I've also tried just simply TRISA = 0; to eliminate the possible misuse of the 0b. And in assembly I have: --- _BANK 1 movlw b'00000000' movwf TRISA ^ 0x80 --- The _BANK macro is one I've used in plenty of other projects. But just in case, here it is: --- _BANK macro X ; Switch banks if X == 0 bcf STATUS, RP1 ; bcf STATUS, RP0 ; RP[1:0] = 0 ==> Bank 0 endif if X == 1 bcf STATUS, RP1 ; bsf STATUS, RP0 ; RP[1:0] = 1 ==> Bank 1 endif if X == 2 bsf STATUS, RP1 ; bcf STATUS, RP0 ; RP[1:0] = 2 ==> Bank 2 endif if X == 3 bsf STATUS, RP1 ; bsf STATUS, RP0 ; RP[1:0] = 3 ==> Bank 3 endif endm --- -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body