Question 1:
I am using PCW, CCS C to write the code and compile.
I am using PIC16F877 chip, and I connected some LEDs to RC and RD pins.
I just want to make the LEDs flash (for now), but I can't get it to work...
Here's the code I tried to compile, but i get an error
Question 2:
PS, I also have MPLAB IDE v7.60, how can I write C code and compile in MPLAB instead of PCW ?
Any help apreciated
Thanks
I am using PCW, CCS C to write the code and compile.
I am using PIC16F877 chip, and I connected some LEDs to RC and RD pins.
I just want to make the LEDs flash (for now), but I can't get it to work...
Here's the code I tried to compile, but i get an error
Rich (BB code):
#include <16F877.h>
#fuses HS,NOWDT,NOPROTECT,NOLVP
#use delay(clock=20000000)
#use rs232(baud=9600, xmit=PIN_C6, rcv=PIN_C7)
void main() {
int k = 0;
do {
for (k = 0; k < 15; k++) {
delay_ms(100);
PORTC = k; <- I get an error here: "Undefined identifier PORTC"
}
} while (TRUE);
}
PS, I also have MPLAB IDE v7.60, how can I write C code and compile in MPLAB instead of PCW ?
Any help apreciated
Thanks