If the pulses dropped below a pre-determined threshold, it would log the date and time out to a serial port. They set up a PC with a serial program, and came back the next day to see exactly when the flow had dropped. Mike tracked down the problem and had the system adapted to counter for the glitches, due to this nice piece of design work. Phase control is a simple even time-slice method, with levels of output. Timing for 50Hz and 60Hz has been included - selectable by commenting out the unwanted option.
There is more info in the. Entire archive. This code was used to drive a demo board that I made for a University of Canterbury demonstration day. The archive contains the Hi-Tech C source code, Protel 99 schematic and pcb files, and.
Schematic for demo board. This project combines the use of the 1-wire routines, serial routines, a P. Uses 12C Note: this is an assembly language project, not a Hi-Tech C based project. Download 30KB. Dear Shane Tolmie, This site is great. It helped me a lot to start with c development on PIC. Thank you for this great work. Regards, Parag Panchal India.
I took this software one step further and had it output to the PC Parallel port so with a patch cable I could simulate the PIC's output on the actual circuit board I used, hence I was able to preview the lights outputs. Included is an image of the Lighting Box I built up. The need arose for this programmer when we had to replace the bi-metal thermostat controls from some fridges in the department for safety reasons.
The DS was the ideal replacement, the combination of small size, low operation voltage volts and operates to pre programmed settings that couldn't be changed unless you had a special programmer.
Hence the birth of the DS Programmer project. This project uses the 1-wire and I2C routines. Archive includes Hi-Tech C source code, schematics, and more.
I made this one up on a piece of vera board, and it injects a signal into an audio line that was fed into an amplifier from his CD Player. This allows the interval to be set from 30 seconds to seconds in 5 second increments. This is only approximate!! GP5 was fed through a resistor and capacitor type set up into one channel of the audio and just does a short Buzz at the end of each interval. The HSPG project is a specialized piece of hardware for accurately generating pulses on a rather large piece of equipment it takes up a large room.
This unit has a resolution of 20ns and a 24 bit counter 0 to approx. This is the only piece of equipment like it in the world that we know of, and hence it is restricted, so circuit diagrams will not be supplied. However, if you want to buy a complete unit with updated firmware Download 15KB. But the board has been used for testing character LCDs and keypads, and does make a reasonable general purpose display and keypad type controller with a number of control lines available.
I have learnt from your examples and refer many of our PIC customers to your site for additional design tips. Miscellaneous code for reference, the projects above are a more complete and updated version of this archive.
The entire archive is available. Sometimes it is useful to have access to a larger amount of non-volatile storage than is available onboard the PIC. A serial accessed eeprom can be the best way to do this but they are usually only available in sizes up to Kbits.
The 24LC is a Kbit eeprom avaialble from microchip and is what these functions are designed to work with although they should work with any size and speed of eeprom with suitable modification of the loops.
This is just the functions you need to get some code working and then drop these in. The code has been tested on both a 16F using software and hardware I2C interfaces. Setting the pins to the hardware I2C port int the use line at the top of the code enables the hardware I2C.
Basic read and write byte functions are provided as well as a set of functions for a contiguous read by Tom Cook that allows faster read out of a stream of data. There is also a function to write a string of any length to the eeprom. They should all be fairly self explanatory. The built in SPI interface only requires four data lines and they are available in sizes of up to MByte at the moment. There are a few little quirks in making the cards work with a PIC but these are hopefully all sorted out within the code.
The MMC card has quite a large block size for writing, I think at the moment it is at least Bytes although I think I saw something about a new version of the specifcation that is more flexible. But at the moment this means that you need to buffer Bytes and write them all in one go, the eeprom code above is ideal for this. Compiled with the C30 evaluation version of the C compiler from www.
This project is a simple "Hello World" sent out the serial port. C source for Microchip C30 compiler for Hello World. RCPulse generates the 1 to 2ms pulse required for remote control servo control. Demonstrates the use of Timer and interrupts. Currently writing a multichannel version for a project. Original hardware obtained from Mike Pearce from www. Click to enlarge. Create a new project. Add the following files and select "copy to project folder". Once setup has completed open the glcd.
Change frequecy to match your design. Change display resolution to match your LCD. Save your changes. Open main. Fill in the gaps with the rest of your program. The result is shown in the jpeg file as well. All code with heavy comment. Compiler: C18 compiler v2. Original hardware obtained from www. It is nothing more than individual tactile keys. There is a. Working on a dev board for PIC24 series. It will come with a 2. Designed for the C18 compiler. Note: zip file includes documentation in.
It is written in C. This is another routine that I want to share. Compiled with Hi-Tech C. This reduces code size due to that no more conditionals to test pointers overflowing the buffer. For the efficiency and performance conscious C programmers, here is my tiny cooperative multitasking engine.
Header file for Tiny Threads. This is the only file needed to use Tiny Threads. Sample application using tthread. Compiles with PICC compiler from www. InnoSetupAV v1. You can easily rank your programming aptitude compared to others - over 80, others, to be precise. From www. Compatible with numerous PIC micros, more micros can easily be added by writing a simple driver. Read more. I was recently contracted to implement lpicp, a PIC programmer that works on embedded Linux platforms.
It allows any embedded platform running Linux to effectively become a PIC programmer. I haven't seen such an implementation before so I released it as GPL, for anyone to use or reference.
Portable LCD driver. Published in response to an email sent the admin at MicrochipC. This website also has a good range of other sample code, its worth checking out. Just it is not a "toy" anymore, it is really useful and I'm using it already in new projects.
The sample application which has six tasks, each one with a bytes stack, when compiled with optimization level -O3 uses just instruction words and bytes of RAM. Comments are welcome. Best regards, Isaac. How to find suppliers? How to research? Available datatypes? Switch bits on and off? Watch Tiger Woods golf again. PS5 restock updates. Black Friday's best deals overall. Windows Windows. Most Popular. New Releases. Desktop Enhancements.
Networking Software. Trending from CNET. Visit Site. Our C-Aware IDE provides embedded developers with a suite of tools and an intelligent code optimizing Microchip PIC C compiler that frees developers to concentrate on design functionality instead of having to become an MCU architecture expert. C-Aware allows developers to manage every aspect of their embedded software development, from design through device programming and debugging.
C-Aware is the ideal environment to develop C program code with integrated built-in functions, performance analyzation and statistics, and debugging compiled code in real-time while running on Microchip PIC devices.
Full Specifications. What's new in version 5. Release April 23, Date Added April 23, Version 5. Operating Systems. Additional Requirements None. Total Downloads 38, Downloads Last Week Report Software. Related Software. Microsoft Visual Studio Professional Free to try.
0コメント