Index: branch/graffin/sp4c12/sp4C12/DefaultSession.hsf
===================================================================
--- branch/graffin/sp4c12/sp4C12/DefaultSession.hsf	(revision 880)
+++ branch/graffin/sp4c12/sp4C12/DefaultSession.hsf	(revision 881)
@@ -15,7 +15,9 @@
 "{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" "" 
 "{6C4D5B81-FD67-46A9-A089-EA44DCDE47FD}RAMMonitorManagerCtrlBlockInfoFileDir" "" 
 "{6C4D5B81-FD67-46A9-A089-EA44DCDE47FD}RAMMonitorManagerCtrlBlockInfoFileName" "" 
@@ -32,6 +34,7 @@
 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_CmdLine}" "WINDOW" 59422 0 1 "0.33" 180 0 0 350 200 17 0 "32771|32772|32778|<<separator>>|32773|32774|<<separator>>|32820|<<separator>>|32801|32824" "0.0" 
 "{WK_00000001_OUTPUT}" "WINDOW" 59422 0 0 "1.00" 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" 
@@ -51,11 +54,7 @@
 [WINDOW_POSITION_STATE_DATA_VD3]
 [WINDOW_POSITION_STATE_DATA_VD4]
 [WINDOW_Z_ORDER]
-"D:\tp_sp4_graffin\sp4c12\sp4C12\uart0.c" 
-"D:\tp_sp4_graffin\sp4c12\sp4C12\ncrt0.a30" 
-"D:\tp_sp4_graffin\sp4c12\sp4C12\uart0.h" 
-"D:\tp_sp4_graffin\sp4c12\sp4C12\sp4C12.c" 
-"D:\tp_sp4_graffin\sp4b1\SP4b1\SP4b1.c" 
+"D:\TPSP4_Graffin\sp4c12\sp4C12\uart0.c" 
 [TARGET_NAME]
 "" "" 1869837157 
 [STATUSBAR_STATEINFO_VD1]
Index: branch/graffin/sp4c12/sp4C12/SessionM32C_E8a_SYSTEM.ini
===================================================================
--- branch/graffin/sp4c12/sp4C12/SessionM32C_E8a_SYSTEM.ini	(revision 880)
+++ branch/graffin/sp4c12/sp4C12/SessionM32C_E8a_SYSTEM.ini	(revision 881)
@@ -25,4 +25,4 @@
 [Target]
 M32C E8a SYSTEM=Renesas Communications
 [USER_DATA]
-RESET=fe000a
+RESET=fe0008
Index: branch/graffin/sp4c12/sp4C12/SessionM32C_E8a_SYSTEM.hsf
===================================================================
--- branch/graffin/sp4c12/sp4C12/SessionM32C_E8a_SYSTEM.hsf	(revision 880)
+++ branch/graffin/sp4c12/sp4C12/SessionM32C_E8a_SYSTEM.hsf	(revision 881)
@@ -22,7 +22,9 @@
 "{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" "" 
@@ -45,7 +47,7 @@
 "{55384715-F881-421C-A548-D7D1ABE158E1}PDMRCtrlViews" "0" 
 "{64753FED-D387-4B8C-A91D-D3419C869C07}C_EVAL_DENORMAL_MODE" "0" 
 "{64753FED-D387-4B8C-A91D-D3419C869C07}C_EVAL_ROUND_MODE" "0" 
-"{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_0" "0000000000000000" 
+"{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_0" "0000000000000001" 
 "{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_1" "0000000000000000" 
 "{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_10" "0000000000000000" 
 "{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_11" "0000000000000000" 
@@ -53,9 +55,9 @@
 "{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_13" "0000000000000000" 
 "{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_14" "0000000000000000" 
 "{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_15" "0000000000000400" 
-"{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_16" "0000000000FE030D" 
+"{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_16" "0000000000FE0367" 
 "{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_17" "0000000000FFFD00" 
-"{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_18" "00000000000006F4" 
+"{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_18" "0000000000000748" 
 "{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_19" "000000000000C400" 
 "{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_2" "0000000000000000" 
 "{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_20" "0000000000000084" 
@@ -75,9 +77,9 @@
 "{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_33" "0000000000000000" 
 "{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_34" "0000000000000000" 
 "{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_35" "0000000000000000" 
-"{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_4" "0000000000FE0000" 
+"{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_4" "0000000000FE0008" 
 "{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_5" "0000000000020000" 
-"{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_6" "00000000000006FA" 
+"{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_6" "0000000000000752" 
 "{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_7" "0000000000000400" 
 "{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_8" "0000000000000000" 
 "{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_9" "0000000000000000" 
@@ -110,7 +112,15 @@
 "{B266D880-6FA1-11D5-8613-00A024591A38}WatchWnd0ColWidth3" "200" 
 "{B266D880-6FA1-11D5-8613-00A024591A38}WatchWnd0ECX_WATCH_ITEM0000" "c, 2, 0, P, Col, Hex, MN" 
 "{B266D880-6FA1-11D5-8613-00A024591A38}WatchWnd0ECX_WATCH_ITEM0000_SCOPE" "Current Scope," 
-"{B266D880-6FA1-11D5-8613-00A024591A38}WatchWnd0ECX_WATCH_ITEMCnt" "1" 
+"{B266D880-6FA1-11D5-8613-00A024591A38}WatchWnd0ECX_WATCH_ITEM0001" "tram, 6, 0, P, Col, Hex, MA" 
+"{B266D880-6FA1-11D5-8613-00A024591A38}WatchWnd0ECX_WATCH_ITEM0001_SCOPE" "Global," 
+"{B266D880-6FA1-11D5-8613-00A024591A38}WatchWnd0ECX_WATCH_ITEM0002" "carac_tram, 2, 0, P, Col, Hex, MA" 
+"{B266D880-6FA1-11D5-8613-00A024591A38}WatchWnd0ECX_WATCH_ITEM0002_SCOPE" "Global," 
+"{B266D880-6FA1-11D5-8613-00A024591A38}WatchWnd0ECX_WATCH_ITEM0003" "validation, 1, 0, P, Col, Hex, MA" 
+"{B266D880-6FA1-11D5-8613-00A024591A38}WatchWnd0ECX_WATCH_ITEM0003_SCOPE" "Global," 
+"{B266D880-6FA1-11D5-8613-00A024591A38}WatchWnd0ECX_WATCH_ITEM0004" "i, 1, 0, P, Col, Hex, MA" 
+"{B266D880-6FA1-11D5-8613-00A024591A38}WatchWnd0ECX_WATCH_ITEM0004_SCOPE" "Global," 
+"{B266D880-6FA1-11D5-8613-00A024591A38}WatchWnd0ECX_WATCH_ITEMCnt" "5" 
 "{B266D880-6FA1-11D5-8613-00A024591A38}WatchWnd1ColWidth0" "120" 
 "{B266D880-6FA1-11D5-8613-00A024591A38}WatchWnd1ColWidth1" "150" 
 "{B266D880-6FA1-11D5-8613-00A024591A38}WatchWnd1ColWidth12" "150" 
@@ -597,8 +607,8 @@
 "{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd0Exp493" "0" 
 "{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd0Exp494" "0" 
 "{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd0Exp495" "0" 
-"{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd0Exp496" "1" 
-"{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd0Exp497" "1" 
+"{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd0Exp496" "0" 
+"{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd0Exp497" "0" 
 "{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd0Exp498" "0" 
 "{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd0Exp499" "0" 
 "{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd0Exp5" "0" 
@@ -698,7 +708,7 @@
 "{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd0Exp98" "0" 
 "{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd0Exp99" "0" 
 "{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd0ScrollHorz" "0" 
-"{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd0ScrollVert" "491" 
+"{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd0ScrollVert" "282" 
 "{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd1ColWidth0" "200" 
 "{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd1ColWidth1" "100" 
 "{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd1ColWidth2" "100" 
@@ -717,10 +727,11 @@
 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.43" 389 0 0 350 200 18 0 "32817|32826|32819|32820|32821" "0.0" 
-"{WK_00000001_OUTPUT}" "WINDOW" 59422 0 0 "1.00" 389 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.33" 389 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 3 "0.26" 389 0 0 350 200 18 0 "32817|32826|32819|32820|32821" "0.0" 
+"{WK_00000001_OUTPUT}" "WINDOW" 59422 0 0 "0.50" 389 683 371 350 200 18 0 "36756|36757|36758|36759|<<separator>>|36746|36747|<<separator>>|39531|<<separator>>|39500|39534|<<separator>>|36687" "0.0" 
 "{WK_00000001_REGISTERS}sp4C12SessionM32C_E8a_SYSTEM" "WINDOW" 59421 0 0 "1.00" 279 0 0 350 200 2065 0 "" "0.0" 
-"{WK_00000001_WATCH}sp4C12SessionM32C_E8a_SYSTEM" "WINDOW" 59422 0 0 "0.24" 389 0 0 350 200 18 0 "32781|32783|<<separator>>|32771|32829|32772|32827|32773|<<separator>>|32786|<<separator>>|32810|32811|32831" "0.0" 
+"{WK_00000001_WATCH}sp4C12SessionM32C_E8a_SYSTEM" "WINDOW" 59422 0 1 "0.24" 389 0 0 350 200 18 0 "32781|32783|<<separator>>|32771|32829|32772|32827|32773|<<separator>>|32786|<<separator>>|32810|32811|32831" "0.0" 
 "{WK_00000002_WORKSPACE}" "WINDOW" 59420 0 0 "1.00" 243 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" 
@@ -732,23 +743,21 @@
 "{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 2 "0.00" 0 0 0 0 0 17 0 "" "0.0" 
-"{WK_TB00000029_SYSTEMTOOL}" "TOOLBAR 0" 59419 2 3 "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]
-"D:\tp_sp4_graffin\sp4c12\sp4C12\uart0.c" 
-"D:\tp_sp4_graffin\sp4c12\sp4C12\ncrt0.a30" 
-"D:\tp_sp4_graffin\sp4c12\sp4C12\uart0.h" 
-"D:\tp_sp4_graffin\sp4c12\sp4C12\sp4C12.c" 
-"D:\tp_sp4_graffin\sp4b1\SP4b1\SP4b1.c" 
+"D:\TPSP4_Graffin\sp4c12\sp4C12\sp4C12.c" 
+"D:\TPSP4_Graffin\sp4c12\sp4C12\uart0.c" 
+"D:\TPSP4_Graffin\sp4c12\sp4C12\ncrt0.a30" 
 [TARGET_NAME]
 "M32C E8a SYSTEM" "" 0 
 [STATUSBAR_STATEINFO_VD1]
@@ -795,5 +804,4 @@
 [FLASH_DETAILS]
 "" 0 0 "" 0 "" 0 0 "" 0 0 0 0 0 0 0 "" "" "" "" "" 
 [BREAKPOINTS]
-"d:\tp_sp4_graffin\sp4c12\sp4c12\uart0.c" 43 0 1 "{00000000-0000-0000-C000-000000000046}" "" 
 [END]
Index: branch/graffin/sp4c12/sp4C12/sp4C12.hwp
===================================================================
--- branch/graffin/sp4c12/sp4C12/sp4C12.hwp	(revision 880)
+++ branch/graffin/sp4c12/sp4C12/sp4C12.hwp	(revision 881)
@@ -3,16 +3,16 @@
 [DATABASE_VERSION]
 "2.8" 
 [PROJECT_DETAILS]
-"sp4C12" "D:\tp_sp4_graffin\sp4c12\sp4C12" "D:\tp_sp4_graffin\sp4c12\sp4C12\sp4C12.hwp" "M16C/80,M32C" "Renesas M32C Standard" "Application" "M32C/80" "M32C/87(M32C/87B)" 
+"sp4C12" "D:\TPSP4_Graffin\sp4c12\sp4C12" "D:\TPSP4_Graffin\sp4c12\sp4C12\sp4C12.hwp" "M16C/80,M32C" "Renesas M32C Standard" "Application" "M32C/80" "M32C/87(M32C/87B)" 
 [INFORMATION]
 "No project information available" 
 [TOOL_CHAIN]
 "Renesas M32C Standard Toolchain" "5.42.00" 
 [CONFIGURATIONS]
-"Debug" "D:\tp_sp4_graffin\sp4c12\sp4C12\Debug" 
-"Debug_M32C_E8a_SYSTEM" "D:\tp_sp4_graffin\sp4c12\sp4C12\Debug_M32C_E8a_SYSTEM" 
-"Debug_M32C_Simulator" "D:\tp_sp4_graffin\sp4c12\sp4C12\Debug_M32C_Simulator" 
-"Release" "D:\tp_sp4_graffin\sp4c12\sp4C12\Release" 
+"Debug" "D:\TPSP4_Graffin\sp4c12\sp4C12\Debug" 
+"Debug_M32C_E8a_SYSTEM" "D:\TPSP4_Graffin\sp4c12\sp4C12\Debug_M32C_E8a_SYSTEM" 
+"Debug_M32C_Simulator" "D:\TPSP4_Graffin\sp4c12\sp4C12\Debug_M32C_Simulator" 
+"Release" "D:\TPSP4_Graffin\sp4c12\sp4C12\Release" 
 [BUILD_PHASES]
 "Renesas M32C Assembler" 1 
 "Renesas M32C C Compiler" 1 
@@ -105,11 +105,11 @@
 "Relocatable file" "Renesas M32C Linker" "Renesas M32C Assembler" 
 "Relocatable file" "Renesas M32C Linker" "Renesas M32C C Compiler" 
 [PROJECT_FILES]
-"D:\tp_sp4_graffin\sp4c12\sfr32c87.h" "User" "C header file" 2 
-"D:\tp_sp4_graffin\sp4c12\sp4C12\ncrt0.a30" "User" "Assembly source file" 2 
-"D:\tp_sp4_graffin\sp4c12\sp4C12\sp4C12.c" "User" "C source file" 2 
-"D:\tp_sp4_graffin\sp4c12\sp4C12\uart0.c" "User" "C source file" 2 
-"D:\tp_sp4_graffin\sp4c12\sp4C12\uart0.h" "User" "C header file" 2 
+"D:\TPSP4_Graffin\sp4c12\sfr32c87.h" "User" "C header file" 2 
+"D:\TPSP4_Graffin\sp4c12\sp4C12\ncrt0.a30" "User" "Assembly source file" 2 
+"D:\TPSP4_Graffin\sp4c12\sp4C12\sp4C12.c" "User" "C source file" 2 
+"D:\TPSP4_Graffin\sp4c12\sp4C12\uart0.c" "User" "C source file" 2 
+"D:\TPSP4_Graffin\sp4c12\sp4C12\uart0.h" "User" "C header file" 2 
 [FOLDER]
 "Assembly source file" "Assembly source file" 
 "C header file" "C header file" 
@@ -119,19 +119,19 @@
 [ON_DEMAND_COMPONENTS_LOADED]
 [SYNC_SESSION_NAMES]
 [SESSIONS]
-"DefaultSession" "D:\tp_sp4_graffin\sp4c12\sp4C12\DefaultSession.hsf" 0 
-"SessionM32C_E8a_SYSTEM" "D:\tp_sp4_graffin\sp4c12\sp4C12\SessionM32C_E8a_SYSTEM.hsf" 0 
-"SessionM32C_Simulator" "D:\tp_sp4_graffin\sp4c12\sp4C12\SessionM32C_Simulator.hsf" 0 
+"DefaultSession" "D:\TPSP4_Graffin\sp4c12\sp4C12\DefaultSession.hsf" 0 
+"SessionM32C_E8a_SYSTEM" "D:\TPSP4_Graffin\sp4c12\sp4C12\SessionM32C_E8a_SYSTEM.hsf" 0 
+"SessionM32C_Simulator" "D:\TPSP4_Graffin\sp4c12\sp4C12\SessionM32C_Simulator.hsf" 0 
 [GENERAL_DATA_SESSION_DefaultSession]
 [GENERAL_DATA_SESSION_SessionM32C_E8a_SYSTEM]
 [GENERAL_DATA_SESSION_SessionM32C_Simulator]
 [OPTIONS_Debug_Renesas M32C Assembler]
 "Assembly source file" "0489906ee8757d10" 2 
-"D:\tp_sp4_graffin\sp4c12\sp4C12\ncrt0.a30" "0489906ee8757d10" 2 
+"D:\TPSP4_Graffin\sp4c12\sp4C12\ncrt0.a30" "0489906ee8757d10" 2 
 [OPTIONS_Debug_Renesas M32C C Compiler]
 "C source file" "0489906ee8757d10" 1 
-"D:\tp_sp4_graffin\sp4c12\sp4C12\sp4C12.c" "0489906ee8757d10" 1 
-"D:\tp_sp4_graffin\sp4c12\sp4C12\uart0.c" "07a0488609757d10" 1 
+"D:\TPSP4_Graffin\sp4c12\sp4C12\sp4C12.c" "0489906ee8757d10" 1 
+"D:\TPSP4_Graffin\sp4c12\sp4C12\uart0.c" "07a0488609757d10" 1 
 [OPTIONS_Debug_Renesas M32C Configurator]
 "Single Shot" "07a0488609757d10" 6 
 [OPTIONS_Debug_Renesas M32C Librarian]
@@ -150,15 +150,15 @@
 "[V|VERSION|1] [S|OUTPUT|OBJECTCODE] [S|OUTPUTPATH|^"$(CONFIGDIR)\$(FILELEAF).r30^"] [B|INSPECTOR|1] [S|CPU|M32C80] " 1 
 [EXCLUDED_FILES_Debug]
 [LINKAGE_ORDER_Debug]
-"D:\tp_sp4_graffin\sp4c12\sp4C12\Debug\ncrt0.r30" 
+"D:\TPSP4_Graffin\sp4c12\sp4C12\Debug\ncrt0.r30" 
 [GENERAL_DATA_CONFIGURATION_Debug]
 [OPTIONS_Debug_M32C_E8a_SYSTEM_Renesas M32C Assembler]
 "Assembly source file" "0489906ee8757d10" 2 
-"D:\tp_sp4_graffin\sp4c12\sp4C12\ncrt0.a30" "0489906ee8757d10" 2 
+"D:\TPSP4_Graffin\sp4c12\sp4C12\ncrt0.a30" "0489906ee8757d10" 2 
 [OPTIONS_Debug_M32C_E8a_SYSTEM_Renesas M32C C Compiler]
 "C source file" "0489906ee8757d10" 1 
-"D:\tp_sp4_graffin\sp4c12\sp4C12\sp4C12.c" "0489906ee8757d10" 1 
-"D:\tp_sp4_graffin\sp4c12\sp4C12\uart0.c" "07a0488609757d10" 1 
+"D:\TPSP4_Graffin\sp4c12\sp4C12\sp4C12.c" "0489906ee8757d10" 1 
+"D:\TPSP4_Graffin\sp4c12\sp4C12\uart0.c" "07a0488609757d10" 1 
 [OPTIONS_Debug_M32C_E8a_SYSTEM_Renesas M32C Configurator]
 "Single Shot" "07a0488609757d10" 6 
 [OPTIONS_Debug_M32C_E8a_SYSTEM_Renesas M32C Librarian]
@@ -177,15 +177,15 @@
 "[V|VERSION|1] [S|OUTPUT|OBJECTCODE] [S|OUTPUTPATH|^"$(CONFIGDIR)\$(FILELEAF).r30^"] [B|INSPECTOR|1] [S|CPU|M32C80] " 1 
 [EXCLUDED_FILES_Debug_M32C_E8a_SYSTEM]
 [LINKAGE_ORDER_Debug_M32C_E8a_SYSTEM]
-"D:\tp_sp4_graffin\sp4c12\sp4C12\Debug_M32C_E8a_SYSTEM\ncrt0.r30" 
+"D:\TPSP4_Graffin\sp4c12\sp4C12\Debug_M32C_E8a_SYSTEM\ncrt0.r30" 
 [GENERAL_DATA_CONFIGURATION_Debug_M32C_E8a_SYSTEM]
 [OPTIONS_Debug_M32C_Simulator_Renesas M32C Assembler]
 "Assembly source file" "0489906ee8757d10" 2 
-"D:\tp_sp4_graffin\sp4c12\sp4C12\ncrt0.a30" "0489906ee8757d10" 2 
+"D:\TPSP4_Graffin\sp4c12\sp4C12\ncrt0.a30" "0489906ee8757d10" 2 
 [OPTIONS_Debug_M32C_Simulator_Renesas M32C C Compiler]
 "C source file" "0489906ee8757d10" 1 
-"D:\tp_sp4_graffin\sp4c12\sp4C12\sp4C12.c" "0489906ee8757d10" 1 
-"D:\tp_sp4_graffin\sp4c12\sp4C12\uart0.c" "07a0488609757d10" 1 
+"D:\TPSP4_Graffin\sp4c12\sp4C12\sp4C12.c" "0489906ee8757d10" 1 
+"D:\TPSP4_Graffin\sp4c12\sp4C12\uart0.c" "07a0488609757d10" 1 
 [OPTIONS_Debug_M32C_Simulator_Renesas M32C Configurator]
 "Single Shot" "07a0488609757d10" 6 
 [OPTIONS_Debug_M32C_Simulator_Renesas M32C Librarian]
@@ -204,15 +204,15 @@
 "[V|VERSION|1] [S|OUTPUT|OBJECTCODE] [S|OUTPUTPATH|^"$(CONFIGDIR)\$(FILELEAF).r30^"] [B|INSPECTOR|1] [S|CPU|M32C80] " 1 
 [EXCLUDED_FILES_Debug_M32C_Simulator]
 [LINKAGE_ORDER_Debug_M32C_Simulator]
-"D:\tp_sp4_graffin\sp4c12\sp4C12\Debug_M32C_Simulator\ncrt0.r30" 
+"D:\TPSP4_Graffin\sp4c12\sp4C12\Debug_M32C_Simulator\ncrt0.r30" 
 [GENERAL_DATA_CONFIGURATION_Debug_M32C_Simulator]
 [OPTIONS_Release_Renesas M32C Assembler]
 "Assembly source file" "0489906ee8757d10" 2 
-"D:\tp_sp4_graffin\sp4c12\sp4C12\ncrt0.a30" "0489906ee8757d10" 2 
+"D:\TPSP4_Graffin\sp4c12\sp4C12\ncrt0.a30" "0489906ee8757d10" 2 
 [OPTIONS_Release_Renesas M32C C Compiler]
 "C source file" "0489906ee8757d10" 1 
-"D:\tp_sp4_graffin\sp4c12\sp4C12\sp4C12.c" "0489906ee8757d10" 1 
-"D:\tp_sp4_graffin\sp4c12\sp4C12\uart0.c" "07a0488609757d10" 1 
+"D:\TPSP4_Graffin\sp4c12\sp4C12\sp4C12.c" "0489906ee8757d10" 1 
+"D:\TPSP4_Graffin\sp4c12\sp4C12\uart0.c" "07a0488609757d10" 1 
 [OPTIONS_Release_Renesas M32C Configurator]
 "Single Shot" "07a0488609757d10" 6 
 [OPTIONS_Release_Renesas M32C Librarian]
@@ -231,7 +231,7 @@
 "[V|VERSION|1] [S|OUTPUT|OBJECTCODE] [S|OUTPUTPATH|^"$(CONFIGDIR)\$(FILELEAF).r30^"] [B|INSPECTOR|1] [S|CPU|M32C80] " 1 
 [EXCLUDED_FILES_Release]
 [LINKAGE_ORDER_Release]
-"D:\tp_sp4_graffin\sp4c12\sp4C12\Release\ncrt0.r30" 
+"D:\TPSP4_Graffin\sp4c12\sp4C12\Release\ncrt0.r30" 
 [GENERAL_DATA_CONFIGURATION_Release]
 [GENERAL_DATA_CONFIGURATION_SESSION_Debug_DefaultSession]
 [SESSION_DATA_CONFIGURATION_SESSION_Debug_DefaultSession]
Index: branch/graffin/sp4c12/sp4C12/uart0.c
===================================================================
--- branch/graffin/sp4c12/sp4C12/uart0.c	(revision 880)
+++ branch/graffin/sp4c12/sp4C12/uart0.c	(revision 881)
@@ -13,15 +13,13 @@
 #include "uart0.h"
 
 char tram[80];
-char c,c1,c2,t1,t2,check=0,t3,t4;
-int i=0,debut=0,fin_tram=0,validation=0;
+char c,c1,c2,t1,t2,check=0,t3,t4,carac_tram=0;
+int i=0,debut=0,fin_tram,validation=0;
 
 void main(void)
 {
 
 uart0_init();
-pd1_0=1;
-pd1_1=1;
 
 /*
 while (1)
@@ -36,10 +34,9 @@
 */
 while (1)
 {
-	fin_tram=rectram();
+	carac_tram=rectram(tram);
 }
 }
-
 void uart0_init(void)
 {
 	
@@ -90,20 +87,23 @@
     return (res);
 }
 
-int rectram(char * Buffer){
+int rectram(char *buffer){
 	fin_tram=0;
+	validation=0;
+	do{
 	c=uart0_rx();
 	if (c=='\n' || c=='\r'){
-		return 1;
+		fin_tram=1;
 		}
 	if (c=='*'){
 		/*p1_1=1;
 		while (i!=10000){i++;}
 		p1_1=0;*/
+		//*(buffer+i)
 		c1=uart0_rx();
 		c2=uart0_rx();
 		debut=0;
-		i=0;
+		i+=3;
 		t1=(check&0xf0)>>4;//decode_int(c1);decode_int(c1);
 		t2=check&0x0f;//decode_int(c2);decode_int(c2);
 		t3=decode_int(c1);
@@ -113,8 +113,7 @@
 		}
 	if (debut==1){
 		i++;
-		tram[i]=c;
-		*(Buffer+i)=c;
+		*(buffer+i)=c;
 		check=check^c;
 	}
 	if (c=='$'){
@@ -121,8 +120,11 @@
 		/*p1_0=1;
 		while (i!=10000){i++;}
 		p1_0=0;*/
+		i=0;
 		debut=1;
-		fin_tram=0;
-		tram[0]=c;
+		*buffer=c;
 		}
 	}
+	while (fin_tram==0);
+	return i+1;
+}
\ No newline at end of file
Index: branch/graffin/sp4c12/sp4C12/sp4C12.c
===================================================================
--- branch/graffin/sp4c12/sp4C12/sp4C12.c	(revision 880)
+++ branch/graffin/sp4c12/sp4C12/sp4C12.c	(revision 881)
@@ -10,3 +10,145 @@
 /***********************************************************************/
 
 
+#include "sfr32c87.h" 
+#include "uart0.h"
+
+char tram[80];
+char c,c1,c2,t1,t2,check=0,t3,t4,carac_tram=0;
+int i=0,debut=0,fin_tram,validation=0;
+
+
+void main(void)
+{
+
+uart0_init();
+
+
+
+
+/*
+while (1)
+{
+	for (i=0;i<26;i++)
+	{
+		uart0_tx(65+i);
+
+	}
+
+}
+*/
+while (1)
+{
+	carac_tram=rectram(tram);
+}
+}
+void uart0_init(void)
+{
+	
+u0mr=0x05;
+u0smr=0x00;
+u0smr2=0x00;
+u0smr3=0x00;
+u0smr4=0x00;
+u0c0=0x11;
+u0brg=0x20;
+u0c1=0x00;
+pd6_0=0;
+pd6_1=0;
+pd6_2=0;
+pd6_3=1;
+ps0_0=0;
+ps0_1=0;
+ps0_2=0;
+ps0_3=1;
+u0c1=0x05;		
+}
+
+void uart0_tx(char c)
+{
+	while (ti_u0c1!=1);
+	u0tb=c;	
+}
+
+
+char uart0_rx(void)
+{
+	return u0rb;
+}
+
+
+
+
+int decode_int(char ch)
+{
+    char res;
+    if (ch>=0x30 && ch<=0x39){
+		res=ch-48;
+	}
+	 if (ch>=0x41 && ch<=0x46){
+		res=ch-55;
+	}
+    return (res);
+}
+
+int rectram(char *buffer){
+	fin_tram=0;
+	validation=0;
+	do{
+	c=uart0_rx();
+	if (c=='\n' || c=='\r'){
+		fin_tram=1;
+		}
+	if (c=='*'){
+		/*p1_1=1;
+		while (i!=10000){i++;}
+		p1_1=0;*/
+		//*(buffer+i)
+		c1=uart0_rx();
+		c2=uart0_rx();
+		debut=0;
+		i+=3;
+		t1=(check&0xf0)>>4;//decode_int(c1);decode_int(c1);
+		t2=check&0x0f;//decode_int(c2);decode_int(c2);
+		t3=decode_int(c1);
+		t4=decode_int(c2);
+		if (t1==t3 && t2==t4 ){
+			validation=1;}
+		}
+	if (debut==1){
+		i++;
+		*(buffer+i)=c;
+		check=check^c;
+	}
+	if (c=='$'){
+		/*p1_0=1;
+		while (i!=10000){i++;}
+		p1_0=0;*/
+		i=0;
+		debut=1;
+		*buffer=c;
+		}
+	}
+	while (fin_tram==0);
+	return i+1;
+}
+
+
+
+void irectrame(char *buffer,char c){
+	if (c=='$'){
+		debut=1;
+		*buffer=c
+	}
+	if (debut==1){
+		*(buffer+i)=c;
+		check=check^c;
+	}
+	if (c==
+	
+	
+	
+	
+	
+	
+	
\ No newline at end of file
Index: branch/graffin/sp4c12/sp4C12.hws
===================================================================
--- branch/graffin/sp4c12/sp4C12.hws	(revision 880)
+++ branch/graffin/sp4c12/sp4C12.hws	(revision 881)
@@ -3,12 +3,12 @@
 [DATABASE_VERSION]
 "11.0" 
 [WORKSPACE_DETAILS]
-"sp4C12" "D:\tp_sp4_graffin\sp4c12" "D:\tp_sp4_graffin\sp4c12\sp4C12.hws" "M16C/80,M32C" "Renesas M32C Standard" 
+"sp4C12" "D:\TPSP4_Graffin\sp4c12" "D:\TPSP4_Graffin\sp4c12\sp4C12.hws" "M16C/80,M32C" "Renesas M32C Standard" 
 [SHARED_WORKSPACE_CONTROL_STATUS]
 "" "" "" 
 "" "" "" 
 [PROJECTS]
-"sp4C12" "D:\tp_sp4_graffin\sp4c12\sp4C12" "D:\tp_sp4_graffin\sp4c12\sp4C12\sp4C12.hwp" 0 
+"sp4C12" "D:\TPSP4_Graffin\sp4c12\sp4C12" "D:\TPSP4_Graffin\sp4c12\sp4C12\sp4C12.hwp" 0 
 [INFORMATION]
 "No workspace information available" 
 [SCRAP]
