RS232

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

RS232

713 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by arthemuz@hotmail.com on Thu Jan 09 09:56:13 MST 2014
Sorry if my question is stupid, I have a problem with lpc11C24 not possible to send the UART frame even with the demo code pin P0_6 P0_7 and I do not understand why?
Labels (1)
0 Kudos
10 Replies

689 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by R2D2 on Thu Jan 09 16:01:24 MST 2014

Quote: arthemuz@hotmail.com
a oscilloscope  not signal???



Sorry, I don't understand that...
0 Kudos

689 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by arthemuz@hotmail.com on Thu Jan 09 15:56:00 MST 2014
a oscilloscope  not signal???
0 Kudos

689 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by R2D2 on Thu Jan 09 13:37:04 MST 2014

Quote: arthemuz@hotmail.com
i connect analyseur logique direct.  & ftdi/usb like



And are you seeing an UART signal with correct UART speed at PIO1_7 (TXD)?
0 Kudos

689 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by arthemuz@hotmail.com on Thu Jan 09 11:18:55 MST 2014
i connect analyseur logique direct.  & ftdi/usb like
0 Kudos

689 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by R2D2 on Thu Jan 09 10:37:21 MST 2014
And did you connect them to some kind of hardware or are we talking about wireless RS232?
0 Kudos

689 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by arthemuz@hotmail.com on Thu Jan 09 10:34:07 MST 2014
i m connect PIN  PIO1_6 RX  PIO1_7 TX
0 Kudos

689 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by R2D2 on Thu Jan 09 10:28:11 MST 2014

Quote: R2D2
...any hint what you have connected to this pins???


0 Kudos

689 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by arthemuz@hotmail.com on Thu Jan 09 10:15:19 MST 2014

#include "driver_config.h"
#include "target_config.h"

#include "timer32.h"
#include "gpio.h"
#include "uart.h"
#include <string.h>
extern volatile uint32_t UARTCount;
extern volatile uint8_t UARTBuffer[BUFSIZE];


int main (void)
{

UARTInit(UART_BAUD);

#if MODEM_TEST
  ModemInit();
#endif



int i = 0, on=0;
  /* Basic chip initialization is taken care of in SystemInit() called
   * from the startup code. SystemInit() and chip settings are defined
   * in the CMSIS system_<part family>.c file.
   */

  /* Initialize 32-bit timer 0. TIME_INTERVAL is defined as 10mS */
  /* You may also want to use the Cortex SysTick timer to do this */
  init_timer32(0, TIME_INTERVAL);
  /* Enable timer 0. Our interrupt handler will begin incrementing
   * the TimeTick global each time timer 0 matches and resets.
   */
  enable_timer32(0);

  /* Initialize GPIO (sets up clock) */
  GPIOInit();
  /* Set LED port pin to output */
  GPIOSetDir( LED_PORT, LED_BIT, 1 );
  //Init7Segment();

  while (1)                                /* Loop forever */
  {


  /* Each time we wake up... */
/* Check TimeTick to see whether to set or clear the LED I/O pin */
if ( (timer32_0_counter%(LED_TOGGLE_TICKS/COUNT_MAX)) < ((LED_TOGGLE_TICKS/COUNT_MAX)/2) )
{
  GPIOSetValue( LED_PORT, LED_BIT, LED_OFF );


  on=0;
} else
{
  GPIOSetValue( LED_PORT, LED_BIT, LED_ON );
  if(!on)
  {
  i++;

  }
  on=1;


  const char* welcomeMsg = "UART3 Online:\r\n";
  //SystemInit();//Called by startup code

  LPC_UART->IER = IER_THRE | IER_RLS;/* Disable RBR */
  UARTSend((uint8_t *)welcomeMsg , strlen(welcomeMsg) );

  LPC_UART->IER = IER_THRE | IER_RLS | IER_RBR;/* Re-enable RBR */




  if ( UARTCount != 0 )
  {
    LPC_UART->IER = IER_THRE | IER_RLS;/* Disable RBR */
    UARTSend( (uint8_t *)UARTBuffer, UARTCount );


    UARTCount = 0;
    LPC_UART->IER = IER_THRE | IER_RLS | IER_RBR;/* Re-enable RBR */
  }





}

    /* Go to sleep to save power between timer interrupts */
    __WFI();
  }
}
0 Kudos

689 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by arthemuz@hotmail.com on Thu Jan 09 10:12:12 MST 2014
yes yes sorry erreur keyboard error even I Still my problem
0 Kudos

689 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by R2D2 on Thu Jan 09 10:07:29 MST 2014

Quote: arthemuz@hotmail.com
Sorry if my question is stupid...



Yes, this is a stupid question  :)  Especially because you don't give us any hint what you have connected to this pins???

BTW: I hope we are talking about [color=#f00]PIO1_6-7[/color] ....
0 Kudos