90can128 usart problems
2009-09-12 by blue_eagle74
I tried to use the second usart on the 90can128, 8N1, but cant get it to work with the hyperterminal. Nothing even comes out of the chip. I have used the usart on the mega16 with no problem. following is a snippit of code using CV.
#include <90can128.h>
#include <stdio.h>
#include <delay.h>
main()
{
UCSR1A = 0x00;
UCSR1B = 0x98;
UCSR1C = 0x06;
UBRR1L = 0x51;
UBRR1H = 0x00;
while(1)
{
printf("testing");
delay_ms(3000);
}
}
Brian