C Applications in PIC Designs
NEW PIC16F87X Development Package with Serial In
Circuit Debugger. Serial Cable, Main MPLAB ICD Board, 9-inch
Telephone Cable and Wired Terminal Block - $89.00. Complete package -
$139.00. Includes "Tutorial by Example" C Routines for the PIC16F87X.
PIC C Workshop, Mon, Dec 17 - Weds,
Dec 19, '01,
Morgan State University, Baltimore, MD..
Collections of PIC C Routines
e-Micros sells the CCS PCM Compiler for
$89.00. Tell them I sent you.
Consulting. If you need a design and it seems to be in line with
any of the discussions below, please contact me.
CCS PCM Compiler Sample Code.
PIC16F628
PIC16F84
- 16F84 Register and Bit Definitions
- Interfacing with a Serial LCD
- RS232 Input and Output Routines.
- Simple IO - Passing by Reference
- Displaying Long Strings and arrays of Const Strings.
- Bitfields and Unions.
- Interfacing with I2C EEPROMs
(PIC16F84)
- Data Logger
- Interfacing with a MAX518 Dual D/A (I2C)
- Interfacing with a Philips PCF8591 4-Ch
A/D and one Ch D/A (I2C)
- Interfacing with a Philips PCF8574
8-channel I/O (I2C)
- Interfacing with an LTC1392 Data Acq
Unit
- Interfacing with an LTC1298, Measuring
Barometric Pressure and Wind Direction
- TI TLC2543 11-channel, 12-bit A/D
- A Four Digit 7-seg LED Display
- Interfacing with a MAX7122 8 Digit Driver.
- Use of TMR0 Interrupt, Timing and an
Implementation of COUNT
- An Implementation of the RCTIME Function
- Measuring Pulse Widths. Note that
this routine has not been verified.
- Interfacing with a DS2401 Silicon Serial
Number
- DS1820 1-W Temperature Sensor, Skip
ROM, Match ROM, Cyclic Redundancy Check
- DS1821, Performing temperature measurments and programming as a standalone thermostat.
- DS2430 1-W 256 bit EEPROM
- DS2433 1-W, 4K EEPROM
- DS1602 Dual 32-bit Elapsed Time
Counter
- Converting Elapsed Time in Seconds from a Base Date and Time to a
Calendar Format
- Calculating Julian Day and Day of the Week
- DS1302 Real Time Clock and RAM
- DS1307 Real Time Clock, RAM, I2C
- Philips PCF8533 RTC, RAM, I2C, Internal Clock
- Writing and Reading Time.
- Setting Alarm for a Periodic Interrrupt.
- Use of the Timer.
- Counting Events. (Includes eight digit BCD arithmetic).
- DS1621 Temperature Meas, I2C
- DS1624 Temp Meas and EEPROM, I2C
- DS1803 Dual Potentiometer, I2C
- DS1867 Dual Potentiometer (EEPROM)
- Analog Devices TMP04, Temperature to Frequency
- TI TSL230 Light to Frequecy.
- TI TSL235 (Light) and 245 (IR) to Frequency
PIC12C67X.
- Standard Definitions of Registers and Bits
- Serial LCD Routines
- PIC12C67X Internal Oscillator Calibration
- Using the PIC12C67X A/D Converters
PIC16F877
- Use of the Microchip In Circuit Debugger (ICD)
- Asynchronous Serial Routines using UART
- Using the A/D Converters.
- Calculating Temperature Using an NTC Thermistor
- Storing Floats in EEPROM
- Solving Two Simultaneous Equations to Calculate Calibration Constants.
- 10-bit A/D Conversion.
- Configuring as an I2C Master.
- Writing and Reading from Program Memory.
- Writing and Reading from EEPROM.
- Writing and Reading a float or structure to and
from
EEPROM
- PWM
CCS PCB Compiler Sample Code
Hi-Tech PIC C Compiler Sample Code
Links
Notes
-
Dontronics has the High Tech PIC
C Compiler at $750. This is $100 less than from High Tech.