• How can I set Uart2 to exchange data?
    void initialize_system (void) { // Initialize the serial port (9600, 8, N, 1) PCON &= 0xBF; // Clear bit 7 of the PCON register (SMOD1 = 0) SCON2 = 0x50; // 0101,0000 (Mode 1 and RxD enable) ...
  • How can I exchange two bits?
    The following does not work (ACC is always 0, despite out[0] is 255): ACC0 = out[0] & 1 == 1 ? 1 : 0; ACC1 = out[0] & 2 == 2 ? 1 : 0; out[0] &= 0xFC; send_string(" acc1"); send_byte(ACC); if ...
  • How to make Keil MDK listening an IP port and exchange information with other application
    Is there any way to make Keil MDK exchange information with other windows application through socket ? I want to develop a debug software. so I need the MDK to send some information (like variable value...
  • Linking Problem
    I have faced a peculiar problem today. My program gave linking error. It could not locate the strcpy or strncpy functions though I had included the string.h file. I then included the c51flp.lib file in...
  • st-link problem
    hi guys, I have a problem! I am tryin' to program a STM32F407VGT microcontroller, but when I connect the programmer the st-link debugger keeps sayin' "no st-link detected" . I have installed the...