Révision 817
Ajouté par Faty MBAYE il y a presque 4 ans
branch/mbaye/sp4c12/sp4c12/SessionM32C_E8a_SYSTEM.ini | ||
---|---|---|
PROCESSOR_MODE=0
|
||
[COMMUNI]
|
||
COMSPEED=8
|
||
COMSPEED PROGRAM FLASH=8
|
||
COMSPEED DATA FLASH=8
|
||
[Driver Configuration]
|
||
Renesas Communications=USB interface,0,
|
||
[Target]
|
branch/mbaye/sp4c12/sp4c12/SessionM32C_E8a_SYSTEM.hsf | ||
---|---|---|
"{313F4FC1-6566-11D5-8BBE-0004E2013C71}CmdLineCtrlBrowseDirectory" ""
|
||
"{313F4FC1-6566-11D5-8BBE-0004E2013C71}CmdLineCtrlLogFileName" ""
|
||
"{313F4FC1-6566-11D5-8BBE-0004E2013C71}CmdLineCtrlSplitterPosition" "242"
|
||
"{313F4FC1-6566-11D5-8BBE-0004E2013C71}CmdLineCtrlViews" "0"
|
||
"{313F4FC1-6566-11D5-8BBE-0004E2013C71}CmdLineCtrlViews" "1"
|
||
"{313F4FC1-6566-11D5-8BBE-0004E2013C71}CmdLineCtrlWindowProperties" "17"
|
||
"{313F4FC1-6566-11D5-8BBE-0004E2013C71}CmdLineWndInstanceKey0" "{WK_00000001_CmdLine}"
|
||
"{313F4FC1-6566-11D5-8BBE-0004E2013C71}TclTkCtrlLogFileName" ""
|
||
"{313F4FC2-6566-11D5-8BBE-0004E2013C71}ECX_MEMORY_COMPARE_END_ADDRESS" ""
|
||
"{313F4FC2-6566-11D5-8BBE-0004E2013C71}ECX_MEMORY_COMPARE_START_ADDRESS" ""
|
||
... | ... | |
0
|
||
[WINDOW_POSITION_STATE_DATA_VD1]
|
||
"Help" "TOOLBAR 0" 59419 1 5 "0.00" 0 0 0 0 0 17 0 "" "0.0"
|
||
"{WK_00000001_IO}sp4c12SessionM32C_E8a_SYSTEM" "WINDOW" 59422 0 1 "0.01" 180 0 0 350 200 18 0 "32817|32826|32819|32820|32821" "0.0"
|
||
"{WK_00000001_OUTPUT}" "WINDOW" 59422 0 0 "0.99" 180 683 371 350 200 18 0 "36756|36757|36758|36759|<<separator>>|36746|36747|<<separator>>|39531|<<separator>>|39500|39534|<<separator>>|36687" "0.0"
|
||
"{WK_00000001_CmdLine}" "WINDOW" 59422 0 2 "0.34" 180 0 0 350 200 17 0 "32771|32772|32778|<<separator>>|32773|32774|<<separator>>|32820|<<separator>>|32801|32824" "0.0"
|
||
"{WK_00000001_IO}sp4c12SessionM32C_E8a_SYSTEM" "WINDOW" 59422 0 1 "0.03" 180 0 0 350 200 18 0 "32817|32826|32819|32820|32821" "0.0"
|
||
"{WK_00000001_OUTPUT}" "WINDOW" 59422 0 0 "0.97" 180 683 371 350 200 18 0 "36756|36757|36758|36759|<<separator>>|36746|36747|<<separator>>|39531|<<separator>>|39500|39534|<<separator>>|36687" "0.0"
|
||
"{WK_00000002_WORKSPACE}" "WINDOW" 59420 0 0 "1.00" 180 683 371 350 200 18 0 "" "0.0"
|
||
"{WK_TB00000001_STANDARD}" "TOOLBAR 0" 59419 0 2 "0.00" 0 0 0 0 0 18 0 "" "0.0"
|
||
"{WK_TB00000002_EDITOR}" "TOOLBAR 0" 59419 0 0 "0.00" 0 0 0 0 0 18 0 "" "0.0"
|
||
... | ... | |
"{WK_TB00000009_VERSIONCONTROL}" "TOOLBAR 0" 59419 1 3 "0.00" 0 0 0 0 0 17 0 "" "0.0"
|
||
"{WK_TB00000011_CPU}" "TOOLBAR 0" 59419 2 2 "0.00" 0 0 0 0 0 18 0 "" "0.0"
|
||
"{WK_TB00000012_MAP}" "TOOLBAR 0" 59419 1 4 "0.00" 0 0 0 0 0 17 0 "" "0.0"
|
||
"{WK_TB00000013_SYMBOL}" "TOOLBAR 0" 59419 2 3 "0.00" 0 0 0 0 0 18 0 "" "0.0"
|
||
"{WK_TB00000013_SYMBOL}" "TOOLBAR 0" 59419 2 4 "0.00" 0 0 0 0 0 18 0 "" "0.0"
|
||
"{WK_TB00000014_CODE}" "TOOLBAR 0" 59419 2 6 "0.00" 0 0 0 0 0 17 0 "" "0.0"
|
||
"{WK_TB00000016_GRAPHIC}" "TOOLBAR 0" 59419 2 7 "0.00" 0 0 0 0 0 17 0 "" "0.0"
|
||
"{WK_TB00000018_DEFAULTWINDOW}" "TOOLBAR 0" 59419 1 2 "0.00" 0 0 0 0 0 17 0 "" "0.0"
|
||
"{WK_TB00000023_RTOS}" "TOOLBAR 0" 59419 2 8 "0.00" 0 0 0 0 0 17 0 "" "0.0"
|
||
"{WK_TB00000026_MACRO}" "TOOLBAR 0" 59419 1 6 "0.00" 0 0 0 0 0 17 0 "" "0.0"
|
||
"{WK_TB00000028_RTOSDEBUG}" "TOOLBAR 0" 59419 2 4 "0.00" 0 0 0 0 0 17 0 "" "0.0"
|
||
"{WK_TB00000028_RTOSDEBUG}" "TOOLBAR 0" 59419 2 3 "0.00" 0 0 0 0 0 17 0 "" "0.0"
|
||
"{WK_TB00000029_SYSTEMTOOL}" "TOOLBAR 0" 59419 2 5 "0.00" 0 0 0 0 0 17 0 "" "0.0"
|
||
[WINDOW_POSITION_STATE_DATA_VD2]
|
||
[WINDOW_POSITION_STATE_DATA_VD3]
|
||
[WINDOW_POSITION_STATE_DATA_VD4]
|
||
[WINDOW_Z_ORDER]
|
||
"M:\TpSP4a\mbaye\sp4c12\sp4c12\uart0.h"
|
||
"M:\TpSP4a\mbaye\sp4c12\sp4c12\uart0.c"
|
||
"M:\TpSP4a\mbaye\sp4c12\sp4c12\ncrt0.a30"
|
||
"M:\TpSP4a\mbaye\sp4c12\sp4c12\sp4c12.c"
|
||
"M:\TpSP4a\mbaye\sp4c12\sp4c12\ncrt0.a30"
|
||
"M:\TpSP4a\mbaye\sp4c12\sp4c12\rectrame.c"
|
||
"M:\TpSP4a\mbaye\sp4c12\sp4c12\rectrame.h"
|
||
[TARGET_NAME]
|
||
"M32C E8a SYSTEM" "" 0
|
||
[STATUSBAR_STATEINFO_VD1]
|
branch/mbaye/sp4c12/sp4c12/uart0.c | ||
---|---|---|
/* NOTE:THIS IS A TYPICAL EXAMPLE. */
|
||
/***********************************************************************/
|
||
|
||
void uart0_init(void)
|
||
{
|
||
smd0_u0mr = 0b101; /* Serial I/O mode select bit */
|
||
smd1_u0mr = 0b101; /* Serial I/O mode select bit */
|
||
smd2_u0mr = 0b101; /* Serial I/O mode select bit */
|
||
ckdir_u0mr = 0; /* Internal/external clock select bit */
|
||
stps_u0mr = 0; /* Stop bit length select bit */
|
||
prye_u0mr = 1; /* Parity enable bit */
|
||
iopol_u0mr = 0; /* TxD RxD I/O polarity switch bit */
|
||
u0brg = 0x20;
|
||
}
|
||
|
||
void uart0_tx(char c)
|
||
{
|
||
crd_u0c0=0;
|
||
crs_u0c0=0;
|
||
te_u0c1=1;
|
||
ti_u0c1=0;
|
||
if(cts0
|
||
}
|
||
|
||
|
||
char uart0_rx(void)
|
||
{
|
||
re_u1c1=0;
|
||
ri_u1c1=1;
|
||
}
|
branch/mbaye/sp4c12/sp4c12/sp4c12.c | ||
---|---|---|
/* This file is generated by Renesas Project Generator (Ver.4.18). */
|
||
/* NOTE:THIS IS A TYPICAL EXAMPLE. */
|
||
/***********************************************************************/
|
||
#include "sfr32c87.h"
|
||
//Fonction assurant l?initialisation du port s?rie
|
||
void uart0_init (void)
|
||
{
|
||
|
||
smd0_u0mr = 1;
|
||
smd1_u0mr = 0;
|
||
smd2_u0mr = 1;
|
||
u0brg = 0x20;
|
||
u0c0 = 0x11;
|
||
u0c1 = 0x05;
|
||
|
||
pd6_1 = 0 ;
|
||
pd6_2 = 0;
|
||
pd6_3 = 1;
|
||
ps0_1 = 0;
|
||
ps0_2 = 0;
|
||
ps0_3 = 1;
|
||
}
|
||
//Fonction permettant d?envoyer un caract?re sur la liaison s?rie.
|
||
void uart0_tx(char c)
|
||
{
|
||
while(ti_u0c1 !=1);
|
||
u0tb=c;
|
||
}
|
||
|
||
//Fonction permettant la r?ception d?un caract?re sur le port s?rie
|
||
char uart0_rx(void)
|
||
{
|
||
while(ri_u0c1!=1);
|
||
return u0rb;
|
||
}
|
||
|
||
void main(void)
|
||
{
|
||
|
||
char caract ='A';
|
||
uart0_init();
|
||
while(1)
|
||
{
|
||
//int i=0;
|
||
//for (i=0;i<26;i++)
|
||
//{
|
||
uart0_tx(caract);
|
||
//}
|
||
}
|
||
}
|
Formats disponibles : Unified diff
Tpc2