At 01:15 AM 5/12/00 -0500, Josh Koffman wrote: >Dwayne Reid wrote: > > > > I have a code framework for both 12 bit and 14 bit core devices - this > > framework allows simultaneous 9600 baud serial data receive and transmit, > > bit banged SPI, and 1 PWM output. The framework does nothing by itself - > > but implements a mickey mouse context switcher that passes control to the > > user app for 20 cycles out of every 104 cycles. The SPI is optimized for 4 > > bytes of output only - changing to 2 bytes input and 2 bytes output > > requires giving up the PWM output. > >Dwayne, > >Just a couple of questions. In the little hand held controller you >mentioned, were you driving the lcd with spi or off of one of the ports >on the pic? Also, do you have code that I might be able to look at? The LCD is driven from 5 pins out of one of the SPI shift registers, with the enable pin coming directly from the PIC. I complete one SPI transaction every 4 mSec - doing it this way, I can send one char or command to the LCD every 8 mS or so. If the enable was also part of the SPI transaction, it would take 3 times longer (about 25 mS) to transfer 1 char or command - a little too slow for my tastes. There is not a lot of port pins available - I'm using a 12c508/9 or 12c671. I hope to be posting code shortly. dwayne Dwayne Reid Trinity Electronics Systems Ltd Edmonton, AB, CANADA (780) 489-3199 voice (780) 487-6397 fax Celebrating 16 years of Engineering Innovation (1984 - 2000) * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Do NOT send unsolicited commercial email to this email address. This message neither grants consent to receive unsolicited commercial email nor is intended to solicit commercial email.