Hi, I'm trying to blink any pin on the Port D pins (I've tried the same method below on ports A & B),
currently have one connected to RD3.
It builds fine, it connects to the board fine.
But I get nothing on RD3 or any of RD0-RD7.
I'm fairly certain it isn't any of my circuit connections,
I've swapped out the chip for a duplicate to no avail.
Below is all of my code.
- Code: Select all
/*
* File: newmain1.c
* Author: Eric
*
* Created on September 2, 2020, 6:46 PM
*/
#include <xc.h>
#define _XTAL_FREQ (4000000UL)
void main(void) {
TRISD = 0x00;
while(1){
PORTD = 0xFF;
__delay_ms(100);
PORTD = 0x00;
}
return;
}