Craig, Here is the free source for the I2C stuff for Hi Tech C. I have CCed the PicList because I feel this may be useful to a number of people. Let me just give you a few caveats. 1) Don't forget to have pullup resistors on your SCL and SDA lines 2) If you define SPACE_CRITICAL when you build this it will leave out most of the updating of status registers. I did this for a project where I ran out of room with everything on it.. 3) You get what you pay for. ;-) Also, I do contract development through Innovatus ( http://www.innovatus.com ) if you find a need for this in the future. If you are interested, you can send a brief project description to projects@innovatus.com and we will send back an estimate. I hope this helps! Sincerely, Alan G. Smith +--------------------------------------------------------- | Alan G. Smith | ags@poboxes.com | http://www.innovatus.com/ags -----Original Message----- From: Craig Lee To: Alan G. Smith Date: Tuesday, April 21, 1998 8:00 PM Subject: Re: Re: Anyone want to sell some tested HiTech C code for the following needs...... >I'll take anything for free!!!!! I may be able to adapt it for my needs. > >HiTech version please.. > >Thanks. > >Craig > >-----Original Message----- >From: Alan G. Smith >To: Craig Lee >Date: Tuesday, April 21, 1998 5:09 PM >Subject: Re: Re: Anyone want to sell some tested HiTech C code for the >following needs...... > > >> >>I have I2C master (only works if it is the ONLY master) without interrupt >>that you can have for FREE if you are interested. (I have both a HiTech C >>version and an ASM version) >> >>Just let me know. >> >>HTH, >> >>Alan G. Smith >>+--------------------------------------------------------- >>| Alan G. Smith >>| ags@poboxes.com >>| http://www.innovatus.com/ags >> >>-----Original Message----- >>From: Craig Lee >>To: PICLIST@MITVMA.MIT.EDU >>Date: Tuesday, April 21, 1998 3:56 PM >>Subject: Re: Anyone want to sell some tested HiTech C code for the >following >>needs...... >> >> >>>I'm struggling to create my own, but I really don't have the time. >>> >>>Has anyone battled these beasts before: >>> >>>I2Cslave for 16CXX chips with the SSP module >>>I2Cmaster for 16CXX chips with the SSP module >>>I2Cslave for chips without the SSP module(interrupt driven) >>>I2Cmaster for chips without the SSP module(interrupt driven) >>>Rotary Encoder sampling, read by i2cslave in 12c509 chip >>> (keep track of missed pulses, and count to 24 or 32 bits) >>>Driver for AY0438 LCD chip >>>Driver for ADC12038 ADC chip >>>High level protocol suitable for wireless RF multidrop (low speed) >>>Card reader driver >>>Spark advance(read rpm, and send out coil trigger pulse) >>> >>> >>>Name your price.... privately. >>> >>> >>>Craig >>> >> > > Attachment converted: wonderland:i2c.zip (pZIP/pZIP) (00004F04)