Mark Hanchey wrote: > It turned out not to be a problem with the demo code drawing routines=20 > but was a simple error on my part. > I wasn't used to the pic 18lf45k22 and didn't realize that on it PortD,=20 > the port I used for my data lines , are used for analog ports 20-27. All= =20 > the pics I used previously were smaller chips and only had ports A-C,=20 > with port B being the main analog ports. Adding one line to the program=20 > fixed the issue , ANSELD=3D0 . Foolish me, but now I know to read the=20 > datasheet more thoroughly. I still wonder what was going on=20 > electronically to make every 8th pixel show , if anyone can explain why=20 > leaving analog on with the data pins caused every 8th pixel I would be=20 > interested in knowing. > > Thanks for all the suggestions and maybe this will help someone else out= =20 > of this awkward error. > Mark > > =20 Setting an I/O bit involves a read/modify/write of the entire port. =20 When a pin is set to analog, reading the pin returns a 0, regardless of=20 the setting of the pin. So if portb is set to all analog, then=20 PORTB.7=3D1 will set pin 7 to 1, but a subsequent PORTB.6 will set pin 6=20 to 1 and will set pin 7 to 0. Is that what you were seeing? Kerry --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .