1 Reply Latest reply on Feb 27, 2014 7:53 AM by user_14586677

    how could I implement PRINTF() in UART with a PSOC3

    juan.rico

      I do not understand how to make printf() work with uart in psoc3 i put this code:

         

       

         

      #include          
      #include "stdio.h"     
           
          char putchar(char c)     
      {     
           UART_WriteTxData((uint8)c);     
           return c;     
      }     
           
      int main()     
      {     
           
          /* Place your initialization/startup code here (e.g. MyInst_Start()) */     
          UART_Start();     
          CyGlobalIntEnable; /* Uncomment this line to enable global interrupts. */     
          for(;;)     
          {     
              printf("Hello");     
              CyDelay(500);     
                 
          }     
      }    

         

       

         

      but in the hyperterminal does not show de message correctly, instead "HELLO" it shows "HLOEL" so it did send the caracters but doesn't sended FIFO