Author |
Message |
Topic: PIC 18F2550 setting inputs, counter |
the0xydo
Replies: 9
Views: 15437
|
Forum: General CCS C Discussion Posted: Sun Mar 11, 2012 8:01 am Subject: PIC 18F2550 setting inputs, counter |
I've had resistors there on right spot from beginning
This is main program.
#include <18F2550.h>
#fuses XT, NOWDT, NOPROTECT, BROWNOUT, PUT, NOLVP
#use delay(clock=48000000)
# ... |
Topic: PIC 18F2550 setting inputs, counter |
the0xydo
Replies: 9
Views: 15437
|
Forum: General CCS C Discussion Posted: Sun Mar 11, 2012 4:16 am Subject: PIC 18F2550 setting inputs, counter |
i've tried to modify that code for my 18F2550 but when i'm compiling there's error in button.c program, it seems that there is Bvar = 0 is not defined . Geez only a simple push switch is making me so ... |
Topic: PIC 18F2550 setting inputs, counter |
the0xydo
Replies: 9
Views: 15437
|
Forum: General CCS C Discussion Posted: Sat Mar 10, 2012 3:42 pm Subject: PIC 18F2550 setting inputs, counter |
Yes I've got resistors on all 3 push-switches, and electrically I get correct voltage.
But somehow I can't get switches to work with any kind of program.
If you got any simple program to test swit ... |
Topic: PIC 18F2550 setting inputs, counter |
the0xydo
Replies: 9
Views: 15437
|
Forum: General CCS C Discussion Posted: Sat Mar 10, 2012 1:18 am Subject: PIC 18F2550 setting inputs, counter |
Hello, I'm kinda new in this programming, so I'd like to know how to set inputs as following.
RA0=analog input
RA1, RA2, RA3=switch (which i think means digital output?)
I'd just need simple progr ... |
|