|
/***********************************************************************/
|
|
/* */
|
|
/* FILE :SP4C12.c */
|
|
/* DATE :Wed, Jun 02, 2021 */
|
|
/* DESCRIPTION :main program file. */
|
|
/* CPU GROUP :87B */
|
|
/* */
|
|
/* This file is generated by Renesas Project Generator (Ver.4.18). */
|
|
/* NOTE:THIS IS A TYPICAL EXAMPLE. */
|
|
/***********************************************************************/
|
|
#include "sfr32c87.h"
|
|
|
|
void uart0_init(void){
|
|
u0mr=0b00000101;
|
|
u0brg=0b00100000;
|
|
u0c0=0b00010001;
|
|
u0c1=0b00000101;
|
|
pd6=0b00011000;
|
|
ps0=0b00001000;
|
|
}
|
|
|
|
void uart0_tx(char c){
|
|
while (ti_u0c1!=1){
|
|
u0tb=c;
|
|
}
|
|
}
|
|
|
|
void main(void)
|
|
{
|
|
uart0_init();
|
|
while (1)
|
|
{
|
|
uart0_tx ('c');
|
|
}
|
|
}
|