Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
01/11/08 18:50
Read: times


 
#149321 - code
Responding to: ???'s previous message
void Uart_Init(void)
{
P1M1 = 0xFE; //Configure P1.0 (TxD) as Output

BRGR0_0 = 0x70; //9600 baud, 8 bit, no parity, 1 stop bit
BRGR1_0 = 0x01;
BRGCON_0 = 0x03;
S0CON = 0x52; // initialize UART 0
}

void main(void)
{
// SYSTEM CLOCK = 3.6864 MHz
DIVM = 0x01;
TRIM &= ~0x04;
AUXR1 |= 0x80;

Uart_Init();
ES = 1;
EA = 1;

printf("\n123");
while(1);
}

List of 6 messages in thread
TopicAuthorDate
How to use flash magic with LPC954            01/01/70 00:00      
   LPC954 was added in Flashmagic version 3.68            01/01/70 00:00      
   I upgraded flash magic still having problem            01/01/70 00:00      
      Command Line Hint            01/01/70 00:00      
   code            01/01/70 00:00      
      The character out and Yer serial init            01/01/70 00:00      

Back to Subject List