May 19, 2011 #21 D Dasco Junior Member level 2 Joined Jul 21, 2008 Messages 22 Helped 0 Reputation 0 Reaction score 0 Trophy points 1,281 Activity points 1,435 oh ok thanks will get back to you ---------- Post added at 09:34 ---------- Previous post was at 08:59 ---------- it has: #include "Compiler.h" #include "HardwareProfile.h" #include "uart2.h" where can i find these files?
oh ok thanks will get back to you ---------- Post added at 09:34 ---------- Previous post was at 08:59 ---------- it has: #include "Compiler.h" #include "HardwareProfile.h" #include "uart2.h" where can i find these files?
May 19, 2011 #22 H horace1 Advanced Member level 5 Joined Nov 18, 2008 Messages 2,118 Helped 596 Reputation 1,188 Reaction score 571 Trophy points 1,393 Location Norwich, UK Activity points 13,063 uart2.h is in Microchip Solutions v2010-10-19\Microchip\Include change it to reflect UART3 for now remove the other includes and use Code: #include "p24Fxxxx.h" // External oscillator frequency #define SYSCLK 32000000UL // Define the baud rate constants #define BAUDRATE2 57600 #define BRG_DIV2 16 #define BRGH2 0 set the value of SYSCLK to your processor clock and BAUDRATE2 to the baud rate you require
uart2.h is in Microchip Solutions v2010-10-19\Microchip\Include change it to reflect UART3 for now remove the other includes and use Code: #include "p24Fxxxx.h" // External oscillator frequency #define SYSCLK 32000000UL // Define the baud rate constants #define BAUDRATE2 57600 #define BRG_DIV2 16 #define BRGH2 0 set the value of SYSCLK to your processor clock and BAUDRATE2 to the baud rate you require