Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - mikekk

#58
Executing: "C:\Program Files (x86)\PICC\Ccsc.exe" +FM "Untitled.c" #__DEBUG=1 +ICD +DF +LN +T +A +M +Z +Y=9 +EA  #__16F887=TRUE
*** Error 34 "Untitled.c" Line 18(1,9): Unknown type
*** Error 43 "Untitled.c" Line 21(1,2): Expecting a declaration
*** Error 48 "Untitled.c" Line 21(2,7): Expecting a (
*** Error 48 "Untitled.c" Line 30(7,12): Expecting a (
*** Error 43 "Untitled.c" Line 30(13,14): Expecting a declaration
*** Error 43 "Untitled.c" Line 30(23,24): Expecting a declaration
*** Error 43 "Untitled.c" Line 30(23,24): Expecting a declaration
*** Error 43 "Untitled.c" Line 30(24,25): Expecting a declaration
*** Error 12 "Untitled.c" Line 41(4,10): Undefined identifier   nServo
*** Error 12 "Untitled.c" Line 48(22,28): Undefined identifier   nServo
*** Error 12 "Untitled.c" Line 50(4,10): Undefined identifier   nServo
*** Error 12 "Untitled.c" Line 68(1,7): Undefined identifier   nServo
*** Error 12 "Untitled.c" Line 69(1,7): Undefined identifier   nServo
*** Error 12 "Untitled.c" Line 70(1,7): Undefined identifier   nServo
*** Error 12 "Untitled.c" Line 88(1,7): Undefined identifier   nServo
      15 Errors,  0 Warnings.
Halting build on first failure as requested.
BUILD FAILED: Thu Apr 11 16:39:15 2013


อันนี้เป็นของ mplab ครับ
#59
ผมใช้ ccs compile ทำไมไม่ได้ครับ
#60
ใช้โปรแกรมอะไรคอมไพลหรอครับ
#61
อ่อ ผมใช้คนละโปรแกรม เดียวลองโหลดโปรแกรมใหม่ก่อนครับ
ขอบคุณครับ
#62
ใช้ความถี่ 20MHzครับ เปลี่ยนเบอร์เป็น16f887แต่คอมไพลไม่ได้ครับ
แต่ถ้าลบvolatileใน
typedef struct tServo{
   volatile unsigned pin;
   volatile unsigned Active;
   volatile unsigned int16 value;
}
ออกจะคอมไพลได้ แต่ลองโปรแกรมในproteus ไม่ได้อ่ะครับ
#63
ช่วยสอนผมได้ไหมครับ
ถ้าเอาcodeที่ให้มาต้องปรับอะไรบ้างครับ