Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
Thread Tools Display Modes
Old 8th May 2008, 05:25 AM   (permalink)
Experienced Member
neelam29 is infamous around these parts
Default 12f675 compilation error

hi all.m designing a project using pic12f675 .my complier is mplab and m using hitech c for coding. but it is not able to compile the program.does pic12f675 need some special declarations. i tried using #include<htc.h>
Code:
#include<p12f675.h>
#include <delay.h>
main{
.......}
please help
neelam29 is offline   Reply With Quote
Old 8th May 2008, 05:36 AM   (permalink)
Experienced Member
 
futz is a name known to allfutz is a name known to allfutz is a name known to allfutz is a name known to allfutz is a name known to allfutz is a name known to all
Default

For Hitech PICC don't include the actual chip header file. Instead, use
Code:
#include <pic.h>
#include <htc.h>
I don't know if that will fix your problem, but it's the standard way of doing things in PICC.
__________________
=========================
Futz's Microcontrollers & Robotics
=========================
futz is online now   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Latest
please help meeeeeeeeeeeeeeeee dark_eng Micro Controllers 0 10th March 2008 01:44 PM
Pspice LED Error kogula14 Electronic Projects Design/Ideas/Reviews 3 14th March 2007 04:02 AM
Need some help with a code provided by ATMEL ikalogic Micro Controllers 1 23rd January 2007 02:45 PM
Z8 Encore Error index out of range mootaccount Micro Controllers 2 17th October 2006 02:23 PM
Ask for the principle of error amplifier in PWM swear_swear Electronic Projects Design/Ideas/Reviews 2 29th July 2003 01:07 AM



All times are GMT. The time now is 05:50 AM.


Electronic Circuits  |  Radio Controlled
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.