PIC_Hi-Tech_C_Mike_Pearces_DS1821_thermostat

所属分类:单片机开发
开发工具:C/C++
文件大小:150KB
下载次数:13
上传日期:2008-10-22 19:12:31
上 传 者brightblack
说明:  PIC HiTech_C_Mike_Pearces_DS1821_thermostatwith Dallas DS1821 Programmer and schematic. Tested on PIC12C672

文件列表:
DS1821 (0, 2001-03-22)
DS1821\1wire002.c (5299, 1999-08-09)
DS1821\delay.c (393, 1997-12-18)
DS1821\delay.h (1407, 1999-08-05)
DS1821\DS1821.S01 (12368, 1999-06-10)
DS1821\DS1821_1.C (19217, 1999-08-16)
DS1821\DS1821_1.HEX (5778, 1999-08-16)
DS1821\DS1821_1.PRJ (1981, 1999-08-05)
DS1821\m_i2c_1.c (6448, 1999-06-03)
DS1821\schematic.jpg (76690, 2001-03-26)
DS1821\V1.00 (0, 2001-03-22)
DS1821\V1.00\1wire002.c (5217, 1999-05-31)
DS1821\V1.00\delay.bak (1414, 1999-05-31)
DS1821\V1.00\delay.c (393, 1997-12-18)
DS1821\V1.00\delay.h (1414, 1999-05-31)
DS1821\V1.00\DS1821_1.C (14300, 1999-06-03)
DS1821\V1.00\DS1821_1.HEX (4256, 1999-06-03)
DS1821\V1.00\DS1821_1.MAP (12891, 1999-06-03)
DS1821\V1.00\DS1821_1.OBJ (20135, 1999-06-03)
DS1821\V1.00\DS1821_1.PRJ (1773, 1999-06-02)
DS1821\V1.00\DS1821_1.SDB (5863, 1999-06-03)
DS1821\V1.00\DS1821_1.SYM (8712, 1999-06-03)
DS1821\V1.00\m_i2c_1.c (6448, 1999-06-03)
DS1821\V1.10 (0, 2001-03-22)
DS1821\V1.10\1wire002.c (5217, 1999-05-31)
DS1821\V1.10\delay.c (393, 1997-12-18)
DS1821\V1.10\delay.h (1414, 1999-05-31)
DS1821\V1.10\DS1821_1.C (16594, 1999-06-08)
DS1821\V1.10\DS1821_1.HEX (5009, 1999-06-08)
DS1821\V1.10\m_i2c_1.c (6448, 1999-06-03)
DS1821\V1.20 (0, 2001-03-22)
DS1821\V1.20\1wire002.c (5217, 1999-05-31)
DS1821\V1.20\delay.c (393, 1997-12-18)
DS1821\V1.20\delay.h (1414, 1999-05-31)
DS1821\V1.20\DS1821_1.C (17838, 1999-06-10)
DS1821\V1.20\DS1821_1.HEX (5303, 1999-06-08)
DS1821\V1.20\m_i2c_1.c (6448, 1999-06-03)
DS1821\V1.30 (0, 2001-03-22)
DS1821\V1.40 (0, 2001-03-22)
... ...

/********************************************************************** * Dallas DS1821 Programmer * * Michael Pearce 26 March 2001 * * Electronics Workshop, Chemistry Department, University of Canterbury *********************************************************************** Processors Used: Tested on PIC12C672 *********************************************************************** Disclaimer: The following code has been released so that someone may possibly find something useful in them. The Author and the company he works for takes no responsibilty for the use of this code or any damage that may be caused by using part of all of this code. *********************************************************************** Overview: The DALLAS DS1821 is a 3 pin digital thermostat that can have its trigger points programmed using the Dallas 1-wire interface. 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 DS1821 was the ideal replacement, the combination of small size, low operation voltage (3-5 volts) and operates to pre programmed settings that couldn't be changed unless you had a special programmer. Hence the birth of the DS1821 Programmer project. This project uses the 1-wire and I2C routines. The Turn On, Turn Off and Polaraty values can be programmed using this code. There are 3 buttons, 'Menu', '+', and '-' to allow adjustments. The Data is displayed on a 4 digit I2C LCD controlled by a PCF8577 (Philips). Here is a list of the files: DS1821_1.C M_I2C_1.C 1WIRE002.C DELAY.H DELAY.C SCHEMATIC.JPG DS1821.S01 ************************* DS1821_1.C ******************************* USES: m_i2c_1.c, 1wire002.c, delay.h, delay.c DESCRIPTION: This is the main program source. ************************* M_I2C_1.C ******************************* DESCRIPTION: This is a very simple set of I2C routines I wrote which includes the following functions for WRITING only: char I2C_Send(char Address,char *Data,char Num); char i2csendbyte(char byte); char i2cgetack(void); void i2cdelay(char delay); void i2cstart(void); void i2cstop(void); void i2cclock(void); *************************** 1WIRE002.C ******************************** USES: delay.h, delay.c DESCRIPTION: Initialises and performs 1-wire bus functions. Basic functions include reset, read and write. More complex functions include match rom and read rom. ************************* DELAY.H ******************************* DESCRIPTION: Modified HT-PIC C demo Delay routine. ************************* DELAY.C ******************************* DESCRIPTION: Modified HT-PIC C demo Delay routine. ********************* SCHEMATIC.JPG ***************************** DESCRIPTION: A JPG of the PCB File Note: This DOES NOT include the LCD Driver, as it was just a spear board that we had lying around and it didn't have any circuit diagrams. *********************** DS1821.S01 ******************************* DESCRIPTION: The Autotrax Schematic file (DOS VERSION) Note: This DOES NOT include the LCD Driver, as it was just a spear board that we had lying around and it didn't have any circuit diagrams. ********************************************************************/

近期下载者

相关文件


收藏者