R8C13 Uart1 Problem
Up to R8C/Tiny
Hi all,
I regulated uart register settings like down..
#define _OUT 0xFF
#define _IN 0x00
init_uart1(void)
{
pd0_0=1; //tx
pd3_7=0; //rx
u1mr = 0x05;
u1c0 = 0x00;
u1c1 = 0x0F;
ucon = 0x27;
u1brg = 0x6E; ( I want 19200 bit rate) my clock frequency=16 Mhz
s1tic = 5;
s1ric = 6;
}
but , I couldn't work.. what is problem ??
I think , u1brg is error . How can I do u1brg register setting? Can you tell me exactly .
Thanks..
Powered by
Ploneboard

