Re-Read Post #2 instead of PM'ing me...
You'll get a lot more help that way.
Re-Read Post #2 instead of PM'ing me...
You'll get a lot more help that way.
Ok here is the simple code I am trying to run. It compiles but the output doesnt come on
#include <pic.h>
__config (PCMDIS & IESODIS & BORDIS & UNPROTECT & MCLRDIS & PWRTEN & WDTDIS & INTIO); //I don’t know what is supposed to go in this, which is the main problem.
main(){
PORTA = 0;
//CMCON0 = 7; //would not compile with these two statements in
//ANSEL = 0;
TRISA4 = 0;
TRISA5 = 0;
while(1==1){
RA4 = 1;
}
}
Do I need the config statement or not?
Last edited by oreo; - 17th June 2008 at 12:56.
Let's see...
I don't think the bulk of the above code will compile using MeLabs PICBASIC PRO, like the writing at the top of the page specifies these forums are generally for.
I could be wrong...
Please tell me if I'm wrong...
I don't like to be wrong...
I don't mind being wrong...
But I still don't like it...
I guess you were fetching a stick from the oven...
Last edited by skimask; - 17th June 2008 at 14:01.
Maybe...maybe not...
But my eyes work fine. Have you checked the focus on your monitor lately? Maybe that's why you didn't see the numerous references to PicBasicPro. It could happen...
And sonicm is 100% right. Every one of those commands/statements/lines is easily converted to something usable with the PicBasicPro compiler...assuming one has the correct reference material and/or knowledge.
A wild guess on my part, but looking at your config statement, I'm guessing that you're
using the Hi-Tech PIC C compiler?
Hi-Tech has a web forum. I'm sure if you signup there someone will be happy to help you get
going, but you definitely will want to review the 877A data sheet.
You'll need to disable A/D to use some pins as digital I/O, and RA4 is an open-drain type
output.
Bookmarks