Author |
Message |
Topic: Button.c |
honeytree
Replies: 2
Views: 5986
|
Forum: General CCS C Discussion Posted: Mon Nov 14, 2005 10:56 pm Subject: Button.c |
Thank you for your help. |
Topic: Button.c |
honeytree
Replies: 2
Views: 5986
|
Forum: General CCS C Discussion Posted: Mon Nov 14, 2005 9:11 pm Subject: Button.c |
I ran the button.c code as listed on the board, yet I do not receive any output to screen as suggested. How is the RS232 being used?
--------------------------------------------------------
#incl ... |
Topic: Very Simple Declaration Question |
honeytree
Replies: 10
Views: 14446
|
Forum: General CCS C Discussion Posted: Mon Nov 14, 2005 9:14 am Subject: Very Simple Declaration Question |
Nevermind!! I ran the code on another computer and it works fine. Strange.
Thanks. |
Topic: Very Simple Declaration Question |
honeytree
Replies: 10
Views: 14446
|
Forum: General CCS C Discussion Posted: Mon Nov 14, 2005 6:48 am Subject: Very Simple Declaration Question |
still receive the same error with button function correctly terminated. thanks, |
Topic: Very Simple Declaration Question |
honeytree
Replies: 10
Views: 14446
|
Forum: General CCS C Discussion Posted: Mon Nov 14, 2005 12:57 am Subject: Very Simple Declaration Question |
It actually runs without error until the button.c is included (see below)
//=====================================
// The following macro is used by the Button function.
#define read_bit_var(x ... |
Topic: Very Simple Declaration Question |
honeytree
Replies: 10
Views: 14446
|
Forum: General CCS C Discussion Posted: Mon Nov 14, 2005 12:46 am Subject: Very Simple Declaration Question |
This code works fine.
#include <16F877.h>
#fuses XT,NOWDT,NOPROTECT,NOLVP
#use delay(clock=4000000)
int option1=0;
int option2=0;
void main()
{
while(1);
}
------------- ... |
Topic: Very Simple Declaration Question |
honeytree
Replies: 10
Views: 14446
|
Forum: General CCS C Discussion Posted: Mon Nov 14, 2005 12:03 am Subject: Very Simple Declaration Question |
PCWH Complier
IDE 3.235
PCM 3.236d
PCH 3.236d |
Topic: Very Simple Declaration Question |
honeytree
Replies: 10
Views: 14446
|
Forum: General CCS C Discussion Posted: Sun Nov 13, 2005 10:50 pm Subject: Very Simple Declaration Question |
I'm a beginner, and I keep getting this error 'A numeric expression must appear here' referring to the int declaration in the following code I found on the board:
------------------------------------ ... |
|