picclib-1.0.0

所属分类:其他嵌入式/单片机内容
开发工具:C/C++
文件大小:86KB
下载次数:3
上传日期:2010-01-06 13:04:43
上 传 者tfitzmorris
说明:  PIC C Library for low-resource microcontrollers

文件列表:
picclib (0, 2007-05-13)
picclib\examples (0, 2007-05-13)
picclib\examples\lcdclk (0, 2007-05-13)
picclib\examples\lcdclk\lcdclk.c (4180, 2007-05-07)
picclib\examples\lcdclk\LCDclock.jpg (28083, 2007-05-07)
picclib\examples\lcdclk\LCDclock.vthought (9447, 2007-05-07)
picclib\examples\lcdclk\makefile (882, 2007-05-07)
picclib\examples\lcdtemp (0, 2007-05-13)
picclib\examples\lcdtemp\makefile (928, 2007-05-07)
picclib\examples\lcdtemp\temp.c (3299, 2007-05-07)
picclib\examples\lcdtemp\temp.c.orig (2686, 2007-05-07)
picclib\examples\ledtemp (0, 2007-05-13)
picclib\examples\ledtemp\makefile (879, 2007-05-07)
picclib\examples\ledtemp\temp.c (3214, 2007-05-07)
picclib\include (0, 2007-05-13)
picclib\include\ds1820.h (1071, 2007-05-07)
picclib\include\ds1wire.h (683, 2007-05-07)
picclib\include\fsm.h (1920, 2007-05-07)
picclib\include\grid.h (3097, 2007-05-07)
picclib\include\keypad.h (4248, 2007-05-07)
picclib\include\lcd.h (3067, 2007-05-07)
picclib\include\segled.h (1503, 2007-05-07)
picclib\include\sound.h (1379, 2007-05-07)
picclib\include\stable.h (912, 2007-05-07)
picclib\include\str.h (350, 2007-05-07)
picclib\include\switch.h (860, 2007-05-07)
picclib\include\swtimer.h (930, 2007-05-07)
picclib\include\timer.h (441, 2007-05-07)
picclib\include\types.h (603, 2007-05-07)
picclib\lib (0, 2007-05-13)
picclib\license.txt (1055, 2007-05-08)
picclib\makefile (1500, 2007-05-07)
picclib\src (0, 2007-05-13)
picclib\src\DS1wire (0, 2007-05-13)
picclib\src\DS1wire\ds1820cl.c (860, 2007-05-07)
picclib\src\DS1wire\ds1820hi.c (1103, 2007-05-07)
picclib\src\DS1wire\ds1820lo.c (953, 2007-05-07)
picclib\src\DS1wire\ds1820sp.c (586, 2007-05-07)
... ...

PIC C Library ------------- This is an ongoing attempt to produce a set of libraries for use with C compilers used to generate code for low-resource microcontrollers. For our purposes, a low resource microcontroller is one with as little as 1K of Flash (program) RAM, perhaps 100 bytes of data RAM, and a similar amount (or no) EEPROM. Examples of such devices are MicroChip's PIC and Amtel's AVR ranges. The focus is currently upon PIC devices. There are two ways in which a C program can vary for a given embedded application: 1) due to the target's hardware, and 2) due to the C compiler being used. So far the only supported target is PIC and the only supported compiler is Hi-Tech's PICC. Further, only the following devices have been used for testing purposes: 16F84, 16F628, and for a subset of library code, 12F675. However, the code has been written in such a way as to be easily adapted to other C compilers and other targets. Free versions of many C compilers exist, e.g. Hi-Tech's PICCLite, mikroC, gcc (e.g. for AVR, TI). Header files in the include directory should be consulted re: the functionality and usage of each library. The PATHS section of each library's makefile should be customised as appropriate to your environment, including the PART (target device) definition. Device and compiler specific code (eg I/O, programming fuse configuration) is isolated via conditional compilation. Gnu makefiles permit the libraries to be built in a variety of environments such as cygwin, Unix, Mac OS X. Simple test programs are provided for some libraries. Example applications are given in the examples directory. picclib is covered by the MIT License (see http://www.opensource.org/licenses/mit-license.php). I developed the libraries based upon my own interests and practical needs, and I make the code available in the belief that others may also find it useful. Libraries for the following are included: - Switch input - Keypad input - Dallas Semiconductor 1-wire protocol - 2-line LCD (Hitachi controller) - 7-segment LED array display - LED grid display - Timer driver - State machines (fsm, stable) - Sound output My hope is that others will add their own library code to this project and/or help to improve what is already there. Enjoy. David Benn dbenn@computer.org December 2004, May 2007

近期下载者

相关文件


收藏者