|
|
This source code was either written or modified by us.
myhc11.zip Project Source Code in C
We have been programming for many years now, and have some routines that may be useful to others that program in C for a microcontroller. These were for a 68HC11, but may be useful for other micros (like PIC). When you think about it, the only things that were microprocessor dependant were the serial I/O and the way I talked to the ports. Files include stuff for ROBOTICS, a IDE hard drive tester, PWM routines and a MONITOR program that reads Motorola S records into memory and should work with any board, the routines are as generic C as possible, so they should work on other processors as well. I now program PIC's mostly for small stuff, and PC's for larger stuff. Some of these routines will still come in handy! Click to download the ZIP file (about 35K) full of interesting C source code.
serial-txrx.txt PIC Serial I/O Routine Set
These are 'bit banging' serial rouines using any two I/O ports, these are stand alone routines, and are IMPROVED from those you see in the 'ap notes' (the 'ap note' one was error prone). I needed something to talk at 2400, to get some simple data out. It's all in machine language, but you should be able to patch this into C code. It tests the serial routines also. The code is HEAVILY COMMENTED, so you can see how it all works. Right click on the link and say 'save as'.
serial-rx-hex.txt PIC Serial to HEX Digital Output
The same 'bit banging' routines as above, but when something comes in serial, this transmits the result back in HEX! I needed this to monitor the output of my device, since I wasn't sending 'human' readable codes out (status of the device used BITS set / reset). The code is HEAVILY COMMENTED, so you can see how it all works.
USES: You could use this to turn things on and off via the PIC's I/O ports with data sent via the COM PORT on a PC. Add more outputs to your project, use one port of your micro to send to a PIC (bit bang style) and the PIC's 8 bit port is yours! You can build something that logs data till you 'connect' with your PC, then it sends it all to you!
Here's some miscellaneous PIC related projects and files from other people.
If you are a robotics type, make sure you check out Roger's Embedded Microcontrollers Home Page.
- clockpic.zip (6K) Peter Knight's unfinished video clock (625/50 video)
- cramer.zip (6K) LCD module routines for the PIC16C84 by Norm Cramer
- ds1820.asm (4K) DS1820 digital thermometer by Steve Marchant
- first.txt (1K) A PIC16C84 test circuit and program
- mipi.txt (41K) Discusses a Machine Independent Parallel Interface
- mipp.gif (23K) Machine Independent PIC programmer (MIPP) schematic
- mipp.txt (8K) Discussion of, and software for, Erik Hermann's MIPP
- pic5xv02.zip (44K) PIC16C5X programmer by David Tait
- picdream.zip (17K) A low cost video generator by Alain Fort
- picer.zip (45K) Win95/NT S/W for AN589 H/W by Yasuyuki Onodera
- picfaq.txt (74K) Plain text version of Tom Kellett's PIC-FAQ
- pichex01.zip (124K) PIC16C84 Hex file utilities
- picprg06.zip (156K) Windows software for Ludipipo from Tord Andersson
- prog84.zip (171K) Steve Marchant's AN589 compatible programmer
- protel.zip (1K) Protel Schematics library (C56/57/64/74) by Ken Parkyn
- rostek.zip (2K) Ham radio related source files from Wynn Rostek
- sendhex.zip (45K) Allows EPE's simple 16C84 programmer to use hex files
- seradc.zip (284K) Serial port ADC (C71) by Andy Talbot and Lee Wiltshire
- sonapic.zip (31K) PIC based sonar system by Daniel Henzulea
- spratsrc.zip (30K) Source code for SPRAT articles by Mick Hodges
- testlcd.c (4K) Test an LCD module before writing PIC code
- thermo.zip (21K) PIC based digital thermometer from Myke Predko
- topic02.zip (109K) TOPIC: a development board/programmer for the PIC16C84
- topiclow.gif (12K) Low resolution schematic of the TOPIC hardware
- topiclpt.txt (5K) Discussion of LPT hardware used with TOPIC
- upp.zip (38K) multi-PIC programmer (schematic only) by David Tait
- video.zip (2K) Eric Schlaepfer's 16x84 VGA monitor interface
The files below are related in some way to David Tait's PIC16C84 programmer for IBM compatible PCs (see pic84pgm.zip and pic84v04.zip). David's page was said to be going down, so I put them on this server so they won't get lost. Here's a link to David Tait's PIC links page if it's still up.
- 84pgm.zip (30K) Nigel Goodwin's (www page ref) programmer S/W (includes disassembler)
- bestpp84.zip (62K) A hybrid of 84pgm.zip and pp87.zip (a best buy?)
- delay.zip (9K) Alternative delay routine for PP.BAS
- dtait.zip (5K) PIP-02 driver for PIC84PGM hardware (obsolete?)
- farsoft.zip (65K) PIC84PGM based package (inc PCB) from Robert Farrer
- johnspcb.zip (10K) PCB artwork (PCX format) by John
- p16pr122.zip (161K) Bojan Dobaj's (www page ref) shareware multi-PIC programmer [system down when I checked]
- pgm16cxx.zip (8K) Programs many PICs using PIC84PGM H/W by Ken Segler
- pgm84.zip (711K) Jacob Rengman's (www page ref) LPT-powered programmer, also some OTHER projects!
- pip-02.zip (105K) Silicon Studio's (www page ref) PICSTART-like software (inc drivers)
- pic74pgm.zip (28K) Paul Vollebregt's PIC16C74 programming software
- pic84art.zip (58K) Mike Laidlaw's PCB artwork and schematic
- pic84faq.zip (17K) Frequently asked questions about PIC84PGM
- pic84pgm.zip (20K) Describes a simple 16C84 programmer (PP.C and PP.BAS)
- pic84v04.zip (32K) New software for the PIC84PGM programmer
- pp.gif (23K) Programmer schematic (GIF of PIC84ARTs PCX version)
- pp10.zip (16K) Frederic Rible's replacement for PP.C (MSC source)
- pp12.zip (19K) A 12C508/9 programmer by Pavel Kustarev
- pp65.zip (17K) Luca Bertagnolio's 24C/LC65 SEEPROM programmer
- pp875.zip (66K) A 16C84/C71+12C50X programmer by Steve Willis
Alexey Vladimirov's - Microchip Net Resources (so many links you will get lost)
Teknor's - PIC Design Resources
David Tait's- David Tait's PIC links page
Luigi Rizzo- PIC stuff page
Microchip - Microchip's home page
Micromint - Micromint's page, home of the 'picstic' microcontroller board
Home | About | Privacy & Security | Helpful Programs
Solar Energy News and more at the TechLuck Green Energy Forum