--=======20B452A9======= Content-Type: text/plain; x-avg-checked=avg-ok-45CD04; charset=us-ascii; format=flowed Content-Transfer-Encoding: 8bit Nick wrote; >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 but you have the read-modify-write problem to deal with if you use consecutive bsf/bcf instructions to the same I/O port. Most times, a NOP or two between the bsf/bcf is all you need. >Should I use some kind of shadow register, set the bit in there and then >move it to PORTA? Sounds extremely backwards and kludgy. That's exactly the work-around a lot of programmers use. Regards... ___________________________________________ David Duffy Audio Visual Devices P/L U8, 9-11 Trade St, Cleveland 4163 Australia Ph: +61 7 38210362 Fax: +61 7 38210281 New Web: www.audiovisualdevices.com.au ___________________________________________ --=======20B452A9=======-- -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body