I've written my own routines for this several times for different processors, it's not overly complicated. if you choose the "tie the R/W line low and simply wait long enough" route, (which I've done) do note that the "long enough" portion is temperature dependent - it takes longer when cold. Also, when you're deciding which pins to control it with... You can control it with any pins, but it's a fair bit simpler if you use four (or eight) pins from the same port in order - much less bit manipulation. I've done it with pins scattered all over when I had too, it can be done. Now it's number three on my PCB design checklist. (right behind Do you have mounting holes? and There's nothing on the PGC/PGD lines) -Denny --=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 .