DM163029 - PICDEM Mechatronics Demo Board

Author
mircea2012
New Member
  • Total Posts : 11
  • Reward points : 0
  • Joined: 2012/11/25 13:23:55
  • Location: 0
  • Status: offline
2012/12/01 04:06:43 (permalink)
0

DM163029 - PICDEM Mechatronics Demo Board

Hy.
I did a simple program on a PICDEM Mechatronics Demo Board.
Turn on a led if a pushbuton is pressed.
I receive a lot of erors : 
 
" Build C:\Users\Mircea-VAIO\Desktop\Mechatronics Demo Board Microchip\Programe\Program 1\program 1 for device 16F917
  Using driver C:\Program Files (x86)\HI-TECH Software\PICC\9.81\bin\picc.exe
  Make: The target "C:\Users\Mircea-VAIO\Desktop\Mechatronics Demo Board Microchip\Programe\Program 1\program 1.p1" is out of date.
  Executing: "C:\Program Files (x86)\HI-TECH Software\PICC\9.81\bin\picc.exe" --pass1 "C:\Users\Mircea-  VAIO\Desktop\Mechatronics Demo Board Microchip\Programe\Program 1\program 1.c" -q --chip=16F917 -P --runtime=default --opt=default -      D__DEBUG=1 -g --asmlist "--errformat=Error   [%n] %f; %l.%c %s" "--msgformat=Advisory[%n] %s" "--  warnformat=Warning [%n] %f; %l.%c %s" 
 ---  Warning [162] C:\Program Files (x86)\HI-TECH Software\PICC\9.81\include\pic16f917.h; 3.81 #warning: Header file pic16f917.h included directly. Use #include <htc.h> instead.
 ---  Warning [374] C:\Users\Mircea-  VAIO\Desktop\Mechatronics Demo Board Microchip\Programe\Program 1\program 1.c; 4.10 missing basic type; int assumed
 ---  Error   [372] C:\Users\Mircea-VAIO\Desktop\Mechatronics Demo Board Microchip\Programe\Program 1\program 1.c; 4.10 ","  expectedError   [314] C:\Users\Mircea-VAIO\Desktop\Mechatronics Demo Board Microchip\Programe\Program 1\program 1.c;  4.18 ";" expected
 --- Warning [374] C:\Users\Mircea-VAIO\Desktop\Mechatronics Demo Board Microchip\Programe\Program  1\program 1.c; 9.7 missing basic type; int assumedError   [984] C:\Users\Mircea-VAIO\Desktop\Mechatronics Demo Board  Microchip\Programe\Program 1\program 1.c; 9.7 type redeclared
 --- Error   [1098] C:\Users\Mircea-VAIO\Desktop\Mechatronics Demo  Board Microchip\Programe\Program 1\program 1.c; 9.7 conflicting declarations for variable "PORTD" (C:\Program Files (x86)\HI-TECH Software\PICC\9.81\include\pic16f917.h:219)
 --- Error   [285] C:\Users\Mircea-VAIO\Desktop\Mechatronics Demo Board  Microchip\Programe\Program 1\program 1.c; 10.1 no identifier in declarationWarning [374] C:\Users\Mircea-VAIO\Desktop\Mechatronics Demo Board Microchip\Programe\Program  1\program 1.c; 10.1 missing basic type; int assumed
 --- Error   [314] C:\Users\Mircea-VAIO\Desktop\Mechatronics Demo Board Microchip\Programe\Program 1\program 1.c; 10.1 ";" expected
 --- Error   [285] C:\Users\Mircea-VAIO\Desktop\Mechatronics Demo Board Microchip\Programe\Program 1\program 1.c; 12.1 no identifier in declaration
 --- Warning [374] C:\Users\Mircea-VAIO\Desktop\Mechatronics Demo Board Microchip\Programe\Program 1\program 1.c; 12.1 missing basic type; int assumed
 --- Error   [314] C:\Users\Mircea-VAIO\Desktop\Mechatronics Demo Board Microchip\Programe\Program 1\program 1.c; 12.1 ";" expected
********** Build failed! **********
"

#include<pic16f917.h>
__CONFIG    _CP_OFF & _CPD_OFF & _BOD_OFF & _PWRTE_ON & _WDT_OFF & _INTRC_OSC_NOCLKOUT & _MCLRE_ON & _FCMEN_OFF & _IESO_OFF
void main()
{
    TRISD = 0b10000000;
    PORTD = 0;
    if (PORTDbits.RD6 == 1)  
        PORTDbits.RD7 = 1;
}
#1

0 Replies Related Threads

    Jump to:
    © 2017 APG vNext Commercial Version 4.5