This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

LPC932 and UART Issue

Hi, I have a problem when using the LPC932. By Enabling the UART Break Detect Reset through AUXR1 |=0xC0; (also selecting clock low power) the LCP932 does not executed. I know this because in my program I should expect an output on P2 LED's. Then, if I do not choose this UART Break Detect Reset (AUXR = 0x80), the LPC932 works fine. I have tested port2 with the hello and blinky sample programs and it works fine. The com1 port is always connected to the computer.
Does anyone know what could be the problem?
Here is the configuration and libraries I am using
I have a new board and new chip. revision G
I need some help thanks.
This is also posted at http://www.8052.com


#include <Reg932.h>
#include <Srom.h>
#include <stdio.h>
#include <String.h>
#include <intrins.h>


void brkrst_init(void) // This function allows ISP entry through the UART break detect
{
SCON = 0x50; // select the BRG as UART baud rate source, pg. 60
SSTAT = 0x00; //Timer1
BRGR0 = 0xF0; // 9600 BAUD at @ 7.373MHz internal RC oscillator
BRGR1 = 0x02; //timer increments every .0271 microsec.
BRGCON = 0x03; // enable BRG, pg. 59
AUXR1 |= 0x80; // Clock Low Power Select
}

0