can't compile the file for 12f675 Hi-tech-c file (by MedTronic)
dear my friend i desing a program to test the adc for 12f675
the file is working good when compiling it to hex but it can't compile for hi-tech C compiler there is some errors which i can't fix
please tell me why i can't compile for hi-tech C and what can i do
thanks
best regards
(no subject) (by MedTronic)
Hi my friend MGP
what is the version of ldmicro you used to compile the program
also can you check the file you already attached look at the function
void setupPlc(void) {
// Set ports as digital instead of analogical (default).
setPortDigitalIO();
// Set up I/O pins direction, and drive the outputs low to start.
PORTP = 0x00; //this line gives an error
TRISP = 0xCB; //and this line also gives an error
// Turn on the pull-ups on Port B.
#ifdef CCS_PIC_C
port_b_pullups(true);
#elif defined(HI_TECH_C)
nRBPU = 0; //and this line also gives an error
#endif
please help me to overcom this problem
thank you very much
best regards
MedTronic
(no subject) (by MedTronic)
dear sir it is not compiled .... you sadi you can compile without ant problem ,,what about the error please help me to comiple for pic12f675
thank you
(no subject) (by MedTronic)
Dear my friend
thaks for your replay
there is no error for pin4(MCLR)
i already don't use pin4 .... see attachment
i know pin4 is input only but i did't use it
i tell you at the first post that the hex file generated and its run ok for compile to hex
but what if i need to simulte the c source code or if i need to watch my variables then at that time i need the hi-tech C source to debuge it
after generate the hi-tech C file i can't compile it for pic12f675 even at MPLAP IDE there are some errors as i mention befor please help me to solve this problem
thanks in advanced
Best Regards
MedTronic
(no subject) (by MGP)
Sorry about pin 4 it's GP4 and you're right.
But I don't use Hi-tech C so I can't help you, more so.. I never use a C-compiler, LDmicro always does the job for me.