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.
#include <pic18f1220.h> // make this the chip your using and look at the rest to see if the bits are right
void putch(unsigned char data) {
while(TXSTA1bits.TRMT == 0) // wait until the transmitter is ready
continue;
TXREG1 = data; // send one character
}
void init_uart(void) {
TXSTA1bits.TXEN = 1; // enable transmitter
RCSTA1bits.SPEN = 1; // enable serial port
}
#include <xc.h>
#include <stdio.h>
// Application begins here
void main(void) {
init_uart();
int i;
for (i = 0; i < 5; i++)
{
printf("Loop iteration %d\n", i);
}
}
Maybe microchip should forget Mplab x LOL atmel studio works great bet it be no big deal to add xc8 to it lol.
on a fip note mplab x 4.00 can use avr now.