Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
I was thinking about using the new Mplab XC for the 12f , 16f, and 18f chips has anyone gave this a shot and how well do you like it.
Almost like C18 meets Hitech C.
#include <xc.h>
__CONFIG(LVP_OFF & FCMEN_OFF & IESO_OFF & BOREN_OFF & PWRTE_ON & WDTE_OFF & FOSC_INTOSCIO);
void main(void)
{
PORTA = 0; // clear port a latch
while(1) // loop forever
{
TRISAbits.RA0 = 1; // tristate RA0
__delay_ms(250); // 1/4 sec delay
TRISAbits.RA0 = 0; // output driver on
__delay_ms(250); // 1/4 sec delay
}
}
You may not need much I may not need much but for some one just starting I think you would want a Getting started with XC C18 has one Hi-tech had one .All I needed was here: www.microchip.com/mplabxc8guide
I downloaded the latest MPLAB X and the XC I really don't see anything great about it and selling a beta is lame and it still looks beta to me.
/*
* File: newmain.c
* Author: Burt
*
* Created on November 24, 2012, 10:49 PM
*/
#include <xc.h>
/*
*
*/
#pragma config OSC = IntRC, MCLRE = OFF, WDTE = OFF, CP = OFF
void delay() {
int counter = 0;
for (counter = 0; counter<10000; counter++) {
}
}
void main(void) {
TRIS = 0x00;
GPIO = 0x00;
while(1) {
GPIO =~ GPIO;
delay();
}
}
I got it rolling now still don't like MPLAB X pickit2 doesn't work got to have my pickit2