Print a message through EUSART PIC18F45K80
问题 I am trying to send a message to serial to Docklight but I get a null the whole time. I am using a PIC18F45K80 with XC8 MPLAB X. All seems correct in my code but I guess I am wrong. How can I fix it? #include <xc.h> #include "PIC.h" // INITIAL PIN SETUP void PIN_MANAGER_Initialize(void) { /** LATx registers */ LATE = 0x00; LATD = 0x00; LATA = 0x00; LATB = 0x00; LATC = 0x00; /** TRISx registers */ TRISE = 0x07; TRISA = 0x08; TRISB = 0x01; TRISC = 0b00010000; TRISD = 0xEF; PORTC = 0b00010010 ;