> That's probably good (but you may have got it accidentally or > even something that looks like what you wanted). You should > separate those bit commands in lcd_set with NOP. I guess > your micro speed is 4MHz or less if you're using XT, so one > NOP should be enough. Read-modify-write can be a real > problem and cause confusing effects, don't under-estimate it And IMHO it should not be attacked with NOPs or other delays. The only real cure is using a shadow register. Wouter van Ooijen -- ------------------------------------------- Van Ooijen Technische Informatica: www.voti.nl consultancy, development, PICmicro products docent Hogeschool van Utrecht: www.voti.nl/hvu -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist