me working on renasas microcontroller r8c/27 i need an program for an uart using tool as high performance embedded work shop i did all but not able to run my job is in danger plz help me /***********************************************************************/
/* */
/* FILE :uartset.c */
/* DATE :Fri, Apr 19, 2013 */
/* DESCRIPTION :main program file. */
/* CPU GROUP :27 */
/* */
/* This file is generated by Renesas Project Generator (Ver.4.15). */
/* */
/***********************************************************************/
#include "sfr_r827.h"
void main(void)
{
unsigned char ucu1_in;
}
void uart_init(void)
{
pinsr1=0x05;
pmr=0x36;
u1brg=129;
u1mr=0x05;
u1c0=0x00;
ucu1_in ='yes';
u1tb=ucu1_in;
u1tb=u1rb;
u1rb='yes';
u1c1=0x05;
}
void text_write (char * HITECH)
{
int i=0;
char a[]="HI-TECH SOLUTIO\r\n\0";
/* This loop reads in the text string and puts it in the UART 0 transmit buffer */
for (i=0; a!='\0'; i++)
{
while(ti_u1c1 == 0);
u1tb = a;
}
}
plz help me
/* */
/* FILE :uartset.c */
/* DATE :Fri, Apr 19, 2013 */
/* DESCRIPTION :main program file. */
/* CPU GROUP :27 */
/* */
/* This file is generated by Renesas Project Generator (Ver.4.15). */
/* */
/***********************************************************************/
#include "sfr_r827.h"
void main(void)
{
unsigned char ucu1_in;
}
void uart_init(void)
{
pinsr1=0x05;
pmr=0x36;
u1brg=129;
u1mr=0x05;
u1c0=0x00;
ucu1_in ='yes';
u1tb=ucu1_in;
u1tb=u1rb;
u1rb='yes';
u1c1=0x05;
}
void text_write (char * HITECH)
{
int i=0;
char a[]="HI-TECH SOLUTIO\r\n\0";
/* This loop reads in the text string and puts it in the UART 0 transmit buffer */
for (i=0; a!='\0'; i++)
{
while(ti_u1c1 == 0);
u1tb = a;
}
}
plz help me
Last edited: