This is a multi-part message in MIME format. ------=_NextPart_000_0022_01C333FD.15746D40 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit > Can you specify the @ 9.8304MHz when you buy the PIC? The 9.8304 is just an example of a hex value crystal. I normally keep 1/2 dozen values in stock - 32768Hz, 3.2768MHz, 9.8304MHz, 10MHz, 18.432MHz and 20MHz and buy others as needed. If one-offs then somewhere like Radiospares, or a local wholesaler for quantity > I was using the PIC basic compiler to program the PIC. Which > program can I use to create HEX for the assembly below? It was written/compiled using MPLAB/MPASM Please change previous PortA definitions to - #define rs porta,0 ;LCD RS #define en porta,1 ;LCD enable #define rw porta,2 ;LCD R/W As I said, the program was cobbled together from other working programs, and there may be the odd small error like this As for the timing, 9.8304 will get you exactly 1 minute intervals with Timer1 free-running (9830400/4) / 65536 = 37.5 rollovers / sec = 2250 (08CAh) / min You could either enable Timer1 IRQs or poll TMR1IF (without IRQs enabled), then use a 2-byte counter to count 08CA rollovers. A 32kHz xtal could be used on Timer1 instead for 0.5 rollovers/sec, 30/min > What about the circuit and additional components that I need, can > you help me with this? You mentioned that you have a circuit where > this PIC can work. Components not shown on this diagram are the capacitors for the MAX232 - you can find connections in the MAX232 pdf. http://www.maxim-ic.com/quick_view2.cfm/qv_pk/1798 To protect the regulator from reversed supply and shorts add the diodes. Not actually necessary to make the circuit work but one silly mistake can be costly. The bridge means you can use any old plug-pack with either polarity. Add a filter cap after the bridge (470uF) if it's an AC o/p plug-pack > The only issue is the LCD. I wanted to use two of the LSD40165-20 > to show the two digits. This will allow people to see the number at a > distance 4" 7-seg LED ? Hmmm, big ;-) http://www.elexp.com/a_data/08lsd40165-20.pdf Ah, that's a completely different ball game to an LCD. The circuit for that is a little more complex. I'd suggest an MC14543 (BCD to 7-seg convertor) and a current sink chip (one of the ULN 2000 range for example. Or, as the current is in the low 10s of mA "possibly" you may be able to do this with the PIC itself, but I'd recommend the PIC driving a grounding transistor for each segment. You'll find LEDs at http://www.piclist.com/techref/io/led/pic.htm Keep the LCD circuit though, it'll come in handy one day, betcha -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu ------=_NextPart_000_0022_01C333FD.15746D40 Content-Type: image/gif; name="2chars.gif" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="2chars.gif" R0lGODlh4AEuAYAAAAAAAP///ywAAAAA4AEuAQAC/oyPqcvtD6OctNqLs968+w+G4kiW5omm6sq2 7gvH8kzX9o3n+s73/g8MngBEofGITCqXGcDByYxKp9QqDPq0arfcrpeBNRDH5LL5jE6Tv+y2+/0I B+QtOvyOz0uxdlZfDxgoqDNG85ckVzS4yNgYcYjEV+hIWekIeeRkZsnZqYcZoiY6SlpquuaZquqi 6VeiWYYCukpbi8G3MnshqWiiawscDJbwq1FMkXhsoSzcXGvHXBHNM+1sbflX/bilfY0XNvnYK7Yw iVoF2e2gfsPu3daLCyFPTpxFv7f9yv1O21qvAB8CcPYKAjSSaII7g+j6PXsS7l4DggMDVkSUBRlD /mP8HK6iRyfbxpAXMSqT5GGhIY8fM86xWA6my5kqczWZM46jlpriTvn8CTToOTgg7ZGU6fLfSyFn lu6KqNMKz3mDplIbmBNfLIjhzEEFsskpsnPTrL4wO7EqSy9bxfY0twGU0Llo9LFSu7bL0LGxtMmt 8fcs3hl0Cxs+nIYwTnbdAiumKljQwrZ7Z+aNCzGl2112ZTiuM1izRMsHL98sGbXa5xirbUoOVRET 2mY1E56OA7izqztdQ5E9NDtY8M0KdV8xrmL4ynqTS+McZvoWaM6QH+OOzFaRvObOiStveXcZ8vDX ydu2/F08ue2wmaMmHb06+eLyAxY6z6F1cvQj/sHez8gdc191F19ankkz3kH4YVafawChBEUR6SG4 HoC5FZjgbj01SJpA/3Sl1Ebl5LRfUgIuRWIOESoV4YVgIAZjjKP4FhZgMk7UW2najZbiYjIiZpSJ Au0goRjx/AjUOnlB4+I8Pb4H3UtH+chilDie9GR9VVZIYCZNIuVQHxNCWZ6S1YX4oEFiZlimeqit iOKYIMhJJ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gtmsQeySXqqZ6G2N/uZfauoXPaIWje2QauvqmK4XUsN/EqcddthgiuIfqs9 keu48gpkYbh6kluzccW1neu5Hgu6d4u3mru1K8eyp2teFLttqoutCUu6rlu0sKuXxai1kMG5V6q7 0Lm6iVtUJtaxweuUtSu0yQWxyPt5w5ud5/qG52iuzvufWUtTdkhhYDi31vurprs9pCZr9bpcc7Sc POu9EQu+5A3zKKEZnjCbvrG7vhRnguSFsvHLg9irG7H5ivyLv+oLvBI4h4CJH2z1v/IbwGhEKdI6 vibbT71Kigx8wC6mvy65vaI7wQGLucl3wfObwZM6uP65vB8MpryrsCBMwo8JvaOLwinctgnMusDq wp2Iwb1ruzOswmT4uBSKwwZYwyeMsD3stT+ckn8qxC+8wvCaqkeMxDocwzfMxPlLxDXZwlH8jjBM vCNsxccZYqNivldwnQ9MvltMxmXsCw6MP/sJcWpMuFRoxm8Mx9gSmfl5xvyFr3GMx3msx3vMx33s x3+MZwUAAAA7 ------=_NextPart_000_0022_01C333FD.15746D40--