Is it possible for me to send a C file over a UART connection to an LPC1114 mcu? The C file has configurations for the mcu, if it is possible how can I do so using C# in Visual Studio.
So heres the interrupt on the firmware side
void UART_IRQHandler(void) { static NetworkLayerState networkState = Network_Idle; unsigned int interruptId = LPC_UART->IIR; while((interruptId & 1) == 0) { switch((interruptId >> 1) & 0x07) { case 0x02: //Receive Data Available case 0x06: //Character time-out indicator (buffer flush) networkState = NetworkStateMachine(LPC_UART->RBR & 0xFF, networkState); break; case 0x03: //Receive Line Status interrupt break; //Not handling frame errors } interruptId = LPC_UART->IIR; } }
And now I want to send for example
WriteRegisterOpt(8, 1, 0x03249249, 0);
WriteRegisterOpt is a function within the mcu that I have coded.
I am still fairly new when it comes to how exactly the mcu and computer interact so I'm confused as to how I can take data I send and then code firmware to utilize it.