Index: branch/najib_idzim/tp_info6/Emb_App.tws
===================================================================
--- branch/najib_idzim/tp_info6/Emb_App.tws	(revision 478)
+++ branch/najib_idzim/tp_info6/Emb_App.tws	(revision 479)
@@ -10,8 +10,8 @@
 "E:\tp_info6_2018_najib\tp_info6\Emb_App\crt0mr.a30" 
 "E:\tp_info6_2018_najib\tp_info6\Emb_App\programme_principal_etud.c" 
 [WORKSPACE_FILE_STATES]
-"E:\tp_info6_2018_najib\tp_info6\Emb_App\crt0mr.a30" -8 -30 1596 653 1 1 
-"E:\tp_info6_2018_najib\tp_info6\Emb_App\programme_principal_etud.c" 0 0 1376 411 0 0 
+"E:\tp_info6_2018_najib\tp_info6\Emb_App\crt0mr.a30" 0 0 1596 653 0 1 
+"E:\tp_info6_2018_najib\tp_info6\Emb_App\programme_principal_etud.c" -8 -30 1596 653 1 0 
 [LOADED_PROJECTS]
 "EmbM32C87App" 
 [END]
Index: branch/najib_idzim/tp_info6/Emb_App/EmbM32C87App.BKP
===================================================================
--- branch/najib_idzim/tp_info6/Emb_App/EmbM32C87App.BKP	(revision 478)
+++ branch/najib_idzim/tp_info6/Emb_App/EmbM32C87App.BKP	(revision 479)
@@ -3,16 +3,16 @@
 [DATABASE_VERSION]
 "2.8" 
 [PROJECT_DETAILS]
-"EmbM32C87App" "E:\tp_info6_2018_najib_idzim\tp_info6\Emb_App" "E:\tp_info6_2018_najib_idzim\tp_info6\Emb_App\EmbM32C87App.hwp" "M16C/80,M32C" "Renesas M32C Standard" "Application" "M32C/80" "M32C/87(M32C/87)" 
+"EmbM32C87App" "E:\tp_info6_2018_najib\tp_info6\Emb_App" "E:\tp_info6_2018_najib\tp_info6\Emb_App\EmbM32C87App.hwp" "M16C/80,M32C" "Renesas M32C Standard" "Application" "M32C/80" "M32C/87(M32C/87)" 
 [INFORMATION]
 "No project information available" 
 [TOOL_CHAIN]
 "Renesas M32C Standard Toolchain" "5.42.00" 
 [CONFIGURATIONS]
-"Debug" "E:\tp_info6_2018_najib_idzim\tp_info6\Emb_App\Debug" 
-"Debug_M32C_FoUSB_UART" "E:\tp_info6_2018_najib_idzim\tp_info6\Emb_App\Debug_M32C_FoUSB_UART" 
-"Debug_M32C_Simulator" "E:\tp_info6_2018_najib_idzim\tp_info6\Emb_App\Debug_M32C_Simulator" 
-"Release" "E:\tp_info6_2018_najib_idzim\tp_info6\Emb_App\Release" 
+"Debug" "E:\tp_info6_2018_najib\tp_info6\Emb_App\Debug" 
+"Debug_M32C_FoUSB_UART" "E:\tp_info6_2018_najib\tp_info6\Emb_App\Debug_M32C_FoUSB_UART" 
+"Debug_M32C_Simulator" "E:\tp_info6_2018_najib\tp_info6\Emb_App\Debug_M32C_Simulator" 
+"Release" "E:\tp_info6_2018_najib\tp_info6\Emb_App\Release" 
 [BUILD_PHASES]
 "Renesas M32C Assembler" 1 
 "Renesas M32C C Compiler" 1 
@@ -105,29 +105,29 @@
 "Relocatable file" "Renesas M32C Linker" "Renesas M32C Assembler" 
 "Relocatable file" "Renesas M32C Linker" "Renesas M32C C Compiler" 
 [PROJECT_FILES]
-"E:\tp_info6_2018_najib_idzim\tp_info6\Emb_App\conf_noyau.cfg" "User" "Configuration file" 2 
-"E:\tp_info6_2018_najib_idzim\tp_info6\Emb_App\crt0mr.a30" "User" "Assembly source file" 2 
-"E:\tp_info6_2018_najib_idzim\tp_info6\Emb_App\programme_principal_etud.c" "User" "C source file" 2 
-"E:\tp_info6_2018_najib_idzim\tp_info6\bsp\can.c" "User" "C source file" 2 
-"E:\tp_info6_2018_najib_idzim\tp_info6\bsp\can.h" "User" "C header file" 2 
-"E:\tp_info6_2018_najib_idzim\tp_info6\bsp\carte_io.h" "User" "C header file" 2 
-"E:\tp_info6_2018_najib_idzim\tp_info6\bsp\carte_m32.h" "User" "C header file" 2 
-"E:\tp_info6_2018_najib_idzim\tp_info6\bsp\clavier.c" "User" "C source file" 2 
-"E:\tp_info6_2018_najib_idzim\tp_info6\bsp\clavier.h" "User" "C header file" 2 
-"E:\tp_info6_2018_najib_idzim\tp_info6\bsp\dma0.c" "User" "C source file" 2 
-"E:\tp_info6_2018_najib_idzim\tp_info6\bsp\dma0.h" "User" "C header file" 2 
-"E:\tp_info6_2018_najib_idzim\tp_info6\bsp\lcd.c" "User" "C source file" 2 
-"E:\tp_info6_2018_najib_idzim\tp_info6\bsp\lcd.h" "User" "C header file" 2 
-"E:\tp_info6_2018_najib_idzim\tp_info6\bsp\mli.c" "User" "C source file" 2 
-"E:\tp_info6_2018_najib_idzim\tp_info6\bsp\mli.h" "User" "C header file" 2 
-"E:\tp_info6_2018_najib_idzim\tp_info6\bsp\periph.c" "User" "C source file" 2 
-"E:\tp_info6_2018_najib_idzim\tp_info6\bsp\periph.h" "User" "C header file" 2 
-"E:\tp_info6_2018_najib_idzim\tp_info6\bsp\radiocommande.c" "User" "C source file" 2 
-"E:\tp_info6_2018_najib_idzim\tp_info6\bsp\radiocommande.h" "User" "C header file" 2 
-"E:\tp_info6_2018_najib_idzim\tp_info6\bsp\sfr32c83.h" "User" "C header file" 2 
-"E:\tp_info6_2018_najib_idzim\tp_info6\bsp\sfr32c87.h" "User" "C header file" 2 
-"E:\tp_info6_2018_najib_idzim\tp_info6\bsp\uart0.c" "User" "C source file" 2 
-"E:\tp_info6_2018_najib_idzim\tp_info6\bsp\uart0.h" "User" "C header file" 2 
+"E:\tp_info6_2018_najib\tp_info6\Emb_App\conf_noyau.cfg" "User" "Configuration file" 2 
+"E:\tp_info6_2018_najib\tp_info6\Emb_App\crt0mr.a30" "User" "Assembly source file" 2 
+"E:\tp_info6_2018_najib\tp_info6\Emb_App\programme_principal_etud.c" "User" "C source file" 2 
+"E:\tp_info6_2018_najib\tp_info6\bsp\can.c" "User" "C source file" 2 
+"E:\tp_info6_2018_najib\tp_info6\bsp\can.h" "User" "C header file" 2 
+"E:\tp_info6_2018_najib\tp_info6\bsp\carte_io.h" "User" "C header file" 2 
+"E:\tp_info6_2018_najib\tp_info6\bsp\carte_m32.h" "User" "C header file" 2 
+"E:\tp_info6_2018_najib\tp_info6\bsp\clavier.c" "User" "C source file" 2 
+"E:\tp_info6_2018_najib\tp_info6\bsp\clavier.h" "User" "C header file" 2 
+"E:\tp_info6_2018_najib\tp_info6\bsp\dma0.c" "User" "C source file" 2 
+"E:\tp_info6_2018_najib\tp_info6\bsp\dma0.h" "User" "C header file" 2 
+"E:\tp_info6_2018_najib\tp_info6\bsp\lcd.c" "User" "C source file" 2 
+"E:\tp_info6_2018_najib\tp_info6\bsp\lcd.h" "User" "C header file" 2 
+"E:\tp_info6_2018_najib\tp_info6\bsp\mli.c" "User" "C source file" 2 
+"E:\tp_info6_2018_najib\tp_info6\bsp\mli.h" "User" "C header file" 2 
+"E:\tp_info6_2018_najib\tp_info6\bsp\periph.c" "User" "C source file" 2 
+"E:\tp_info6_2018_najib\tp_info6\bsp\periph.h" "User" "C header file" 2 
+"E:\tp_info6_2018_najib\tp_info6\bsp\radiocommande.c" "User" "C source file" 2 
+"E:\tp_info6_2018_najib\tp_info6\bsp\radiocommande.h" "User" "C header file" 2 
+"E:\tp_info6_2018_najib\tp_info6\bsp\sfr32c83.h" "User" "C header file" 2 
+"E:\tp_info6_2018_najib\tp_info6\bsp\sfr32c87.h" "User" "C header file" 2 
+"E:\tp_info6_2018_najib\tp_info6\bsp\uart0.c" "User" "C source file" 2 
+"E:\tp_info6_2018_najib\tp_info6\bsp\uart0.h" "User" "C header file" 2 
 [FOLDER]
 "Assembly source file" "Assembly source file" 
 "C header file" "C header file" 
@@ -138,10 +138,10 @@
 [ON_DEMAND_COMPONENTS_LOADED]
 [SYNC_SESSION_NAMES]
 [SESSIONS]
-"DefaultSession" "E:\tp_info6_2018_najib_idzim\tp_info6\Emb_App\DefaultSession.hsf" 0 
-"SessionM32C_E8a_system" "E:\tp_info6_2018_najib_idzim\tp_info6\Emb_App\SessionM32C_E8a_system.hsf" 0 
-"SessionM32C_FoUSB_UART" "E:\tp_info6_2018_najib_idzim\tp_info6\Emb_App\SessionM32C_FoUSB_UART.hsf" 0 
-"SessionM32C_Simulator" "E:\tp_info6_2018_najib_idzim\tp_info6\Emb_App\SessionM32C_Simulator.hsf" 0 
+"DefaultSession" "E:\tp_info6_2018_najib\tp_info6\Emb_App\DefaultSession.hsf" 0 
+"SessionM32C_E8a_system" "E:\tp_info6_2018_najib\tp_info6\Emb_App\SessionM32C_E8a_system.hsf" 0 
+"SessionM32C_FoUSB_UART" "E:\tp_info6_2018_najib\tp_info6\Emb_App\SessionM32C_FoUSB_UART.hsf" 0 
+"SessionM32C_Simulator" "E:\tp_info6_2018_najib\tp_info6\Emb_App\SessionM32C_Simulator.hsf" 0 
 [GENERAL_DATA_SESSION_DefaultSession]
 [GENERAL_DATA_SESSION_SessionM32C_E8a_system]
 [GENERAL_DATA_SESSION_SessionM32C_FoUSB_UART]
@@ -148,18 +148,18 @@
 [GENERAL_DATA_SESSION_SessionM32C_Simulator]
 [OPTIONS_Debug_Renesas M32C Assembler]
 "Assembly source file" "061cd8963acbbc10" 3 
-"E:\tp_info6_2018_najib_idzim\tp_info6\Emb_App\crt0mr.a30" "061cd8963acbbc10" 3 
+"E:\tp_info6_2018_najib\tp_info6\Emb_App\crt0mr.a30" "061cd8963acbbc10" 3 
 [OPTIONS_Debug_Renesas M32C C Compiler]
 "C source file" "0d1c724595684d10" 2 
-"E:\tp_info6_2018_najib_idzim\tp_info6\Emb_App\programme_principal_etud.c" "0d1c724595684d10" 2 
-"E:\tp_info6_2018_najib_idzim\tp_info6\bsp\can.c" "0d1c724595684d10" 2 
-"E:\tp_info6_2018_najib_idzim\tp_info6\bsp\clavier.c" "0d1c724595684d10" 2 
-"E:\tp_info6_2018_najib_idzim\tp_info6\bsp\dma0.c" "0d1c724595684d10" 2 
-"E:\tp_info6_2018_najib_idzim\tp_info6\bsp\lcd.c" "0d1c724595684d10" 2 
-"E:\tp_info6_2018_najib_idzim\tp_info6\bsp\mli.c" "0d1c724595684d10" 2 
-"E:\tp_info6_2018_najib_idzim\tp_info6\bsp\periph.c" "0d1c724595684d10" 2 
-"E:\tp_info6_2018_najib_idzim\tp_info6\bsp\radiocommande.c" "0d1c724595684d10" 2 
-"E:\tp_info6_2018_najib_idzim\tp_info6\bsp\uart0.c" "0d1c724595684d10" 2 
+"E:\tp_info6_2018_najib\tp_info6\Emb_App\programme_principal_etud.c" "0d1c724595684d10" 2 
+"E:\tp_info6_2018_najib\tp_info6\bsp\can.c" "0d1c724595684d10" 2 
+"E:\tp_info6_2018_najib\tp_info6\bsp\clavier.c" "0d1c724595684d10" 2 
+"E:\tp_info6_2018_najib\tp_info6\bsp\dma0.c" "0d1c724595684d10" 2 
+"E:\tp_info6_2018_najib\tp_info6\bsp\lcd.c" "0d1c724595684d10" 2 
+"E:\tp_info6_2018_najib\tp_info6\bsp\mli.c" "0d1c724595684d10" 2 
+"E:\tp_info6_2018_najib\tp_info6\bsp\periph.c" "0d1c724595684d10" 2 
+"E:\tp_info6_2018_najib\tp_info6\bsp\radiocommande.c" "0d1c724595684d10" 2 
+"E:\tp_info6_2018_najib\tp_info6\bsp\uart0.c" "0d1c724595684d10" 2 
 [OPTIONS_Debug_Renesas M32C Configurator]
 "Single Shot" "061cd8963acbbc10" 1 
 [OPTIONS_Debug_Renesas M32C Librarian]
@@ -187,18 +187,18 @@
 [GENERAL_DATA_CONFIGURATION_Debug]
 [OPTIONS_Debug_M32C_FoUSB_UART_Renesas M32C Assembler]
 "Assembly source file" "061cd8963acbbc10" 3 
-"E:\tp_info6_2018_najib_idzim\tp_info6\Emb_App\crt0mr.a30" "061cd8963acbbc10" 3 
+"E:\tp_info6_2018_najib\tp_info6\Emb_App\crt0mr.a30" "061cd8963acbbc10" 3 
 [OPTIONS_Debug_M32C_FoUSB_UART_Renesas M32C C Compiler]
 "C source file" "061cd8963acbbc10" 2 
-"E:\tp_info6_2018_najib_idzim\tp_info6\Emb_App\programme_principal_etud.c" "061041b59a3acc10" 2 
-"E:\tp_info6_2018_najib_idzim\tp_info6\bsp\can.c" "032b447e85684d10" 2 
-"E:\tp_info6_2018_najib_idzim\tp_info6\bsp\clavier.c" "032b447e85684d10" 2 
-"E:\tp_info6_2018_najib_idzim\tp_info6\bsp\dma0.c" "032b447e85684d10" 2 
-"E:\tp_info6_2018_najib_idzim\tp_info6\bsp\lcd.c" "032b447e85684d10" 2 
-"E:\tp_info6_2018_najib_idzim\tp_info6\bsp\mli.c" "032b447e85684d10" 2 
-"E:\tp_info6_2018_najib_idzim\tp_info6\bsp\periph.c" "032b447e85684d10" 2 
-"E:\tp_info6_2018_najib_idzim\tp_info6\bsp\radiocommande.c" "032b447e85684d10" 2 
-"E:\tp_info6_2018_najib_idzim\tp_info6\bsp\uart0.c" "032b447e85684d10" 2 
+"E:\tp_info6_2018_najib\tp_info6\Emb_App\programme_principal_etud.c" "061041b59a3acc10" 2 
+"E:\tp_info6_2018_najib\tp_info6\bsp\can.c" "032b447e85684d10" 2 
+"E:\tp_info6_2018_najib\tp_info6\bsp\clavier.c" "032b447e85684d10" 2 
+"E:\tp_info6_2018_najib\tp_info6\bsp\dma0.c" "032b447e85684d10" 2 
+"E:\tp_info6_2018_najib\tp_info6\bsp\lcd.c" "032b447e85684d10" 2 
+"E:\tp_info6_2018_najib\tp_info6\bsp\mli.c" "032b447e85684d10" 2 
+"E:\tp_info6_2018_najib\tp_info6\bsp\periph.c" "032b447e85684d10" 2 
+"E:\tp_info6_2018_najib\tp_info6\bsp\radiocommande.c" "032b447e85684d10" 2 
+"E:\tp_info6_2018_najib\tp_info6\bsp\uart0.c" "032b447e85684d10" 2 
 [OPTIONS_Debug_M32C_FoUSB_UART_Renesas M32C Configurator]
 "Single Shot" "061cd8963acbbc10" 1 
 [OPTIONS_Debug_M32C_FoUSB_UART_Renesas M32C Librarian]
@@ -226,18 +226,18 @@
 [GENERAL_DATA_CONFIGURATION_Debug_M32C_FoUSB_UART]
 [OPTIONS_Debug_M32C_Simulator_Renesas M32C Assembler]
 "Assembly source file" "061cd8963acbbc10" 3 
-"E:\tp_info6_2018_najib_idzim\tp_info6\Emb_App\crt0mr.a30" "061cd8963acbbc10" 3 
+"E:\tp_info6_2018_najib\tp_info6\Emb_App\crt0mr.a30" "061cd8963acbbc10" 3 
 [OPTIONS_Debug_M32C_Simulator_Renesas M32C C Compiler]
 "C source file" "061cd8963acbbc10" 2 
-"E:\tp_info6_2018_najib_idzim\tp_info6\Emb_App\programme_principal_etud.c" "061041b59a3acc10" 2 
-"E:\tp_info6_2018_najib_idzim\tp_info6\bsp\can.c" "032b447e85684d10" 2 
-"E:\tp_info6_2018_najib_idzim\tp_info6\bsp\clavier.c" "032b447e85684d10" 2 
-"E:\tp_info6_2018_najib_idzim\tp_info6\bsp\dma0.c" "032b447e85684d10" 2 
-"E:\tp_info6_2018_najib_idzim\tp_info6\bsp\lcd.c" "032b447e85684d10" 2 
-"E:\tp_info6_2018_najib_idzim\tp_info6\bsp\mli.c" "032b447e85684d10" 2 
-"E:\tp_info6_2018_najib_idzim\tp_info6\bsp\periph.c" "032b447e85684d10" 2 
-"E:\tp_info6_2018_najib_idzim\tp_info6\bsp\radiocommande.c" "032b447e85684d10" 2 
-"E:\tp_info6_2018_najib_idzim\tp_info6\bsp\uart0.c" "032b447e85684d10" 2 
+"E:\tp_info6_2018_najib\tp_info6\Emb_App\programme_principal_etud.c" "061041b59a3acc10" 2 
+"E:\tp_info6_2018_najib\tp_info6\bsp\can.c" "032b447e85684d10" 2 
+"E:\tp_info6_2018_najib\tp_info6\bsp\clavier.c" "032b447e85684d10" 2 
+"E:\tp_info6_2018_najib\tp_info6\bsp\dma0.c" "032b447e85684d10" 2 
+"E:\tp_info6_2018_najib\tp_info6\bsp\lcd.c" "032b447e85684d10" 2 
+"E:\tp_info6_2018_najib\tp_info6\bsp\mli.c" "032b447e85684d10" 2 
+"E:\tp_info6_2018_najib\tp_info6\bsp\periph.c" "032b447e85684d10" 2 
+"E:\tp_info6_2018_najib\tp_info6\bsp\radiocommande.c" "032b447e85684d10" 2 
+"E:\tp_info6_2018_najib\tp_info6\bsp\uart0.c" "032b447e85684d10" 2 
 [OPTIONS_Debug_M32C_Simulator_Renesas M32C Configurator]
 "Single Shot" "061cd8963acbbc10" 1 
 [OPTIONS_Debug_M32C_Simulator_Renesas M32C Librarian]
@@ -265,18 +265,18 @@
 [GENERAL_DATA_CONFIGURATION_Debug_M32C_Simulator]
 [OPTIONS_Release_Renesas M32C Assembler]
 "Assembly source file" "061cd8963acbbc10" 3 
-"E:\tp_info6_2018_najib_idzim\tp_info6\Emb_App\crt0mr.a30" "061cd8963acbbc10" 3 
+"E:\tp_info6_2018_najib\tp_info6\Emb_App\crt0mr.a30" "061cd8963acbbc10" 3 
 [OPTIONS_Release_Renesas M32C C Compiler]
 "C source file" "061cd8963acbbc10" 2 
-"E:\tp_info6_2018_najib_idzim\tp_info6\Emb_App\programme_principal_etud.c" "061041b59a3acc10" 2 
-"E:\tp_info6_2018_najib_idzim\tp_info6\bsp\can.c" "032b447e85684d10" 2 
-"E:\tp_info6_2018_najib_idzim\tp_info6\bsp\clavier.c" "032b447e85684d10" 2 
-"E:\tp_info6_2018_najib_idzim\tp_info6\bsp\dma0.c" "032b447e85684d10" 2 
-"E:\tp_info6_2018_najib_idzim\tp_info6\bsp\lcd.c" "032b447e85684d10" 2 
-"E:\tp_info6_2018_najib_idzim\tp_info6\bsp\mli.c" "032b447e85684d10" 2 
-"E:\tp_info6_2018_najib_idzim\tp_info6\bsp\periph.c" "032b447e85684d10" 2 
-"E:\tp_info6_2018_najib_idzim\tp_info6\bsp\radiocommande.c" "032b447e85684d10" 2 
-"E:\tp_info6_2018_najib_idzim\tp_info6\bsp\uart0.c" "032b447e85684d10" 2 
+"E:\tp_info6_2018_najib\tp_info6\Emb_App\programme_principal_etud.c" "061041b59a3acc10" 2 
+"E:\tp_info6_2018_najib\tp_info6\bsp\can.c" "032b447e85684d10" 2 
+"E:\tp_info6_2018_najib\tp_info6\bsp\clavier.c" "032b447e85684d10" 2 
+"E:\tp_info6_2018_najib\tp_info6\bsp\dma0.c" "032b447e85684d10" 2 
+"E:\tp_info6_2018_najib\tp_info6\bsp\lcd.c" "032b447e85684d10" 2 
+"E:\tp_info6_2018_najib\tp_info6\bsp\mli.c" "032b447e85684d10" 2 
+"E:\tp_info6_2018_najib\tp_info6\bsp\periph.c" "032b447e85684d10" 2 
+"E:\tp_info6_2018_najib\tp_info6\bsp\radiocommande.c" "032b447e85684d10" 2 
+"E:\tp_info6_2018_najib\tp_info6\bsp\uart0.c" "032b447e85684d10" 2 
 [OPTIONS_Release_Renesas M32C Configurator]
 "Single Shot" "061cd8963acbbc10" 1 
 [OPTIONS_Release_Renesas M32C Librarian]
Index: branch/najib_idzim/tp_info6/Emb_App/SessionM32C_E8a_system.ini
===================================================================
--- branch/najib_idzim/tp_info6/Emb_App/SessionM32C_E8a_system.ini	(revision 478)
+++ branch/najib_idzim/tp_info6/Emb_App/SessionM32C_E8a_system.ini	(revision 479)
@@ -10,8 +10,8 @@
 VOLTAGE_5_0=1
 VOLTAGE_3_3=0
 [FW_LOCATE]
-FWADDRESS=f000
-RAMADDRESS=04
+FWADDRESS=ffd0
+RAMADDRESS=c3
 [WDT]
 WDT_USE=0
 [MCU_SETTING]
@@ -25,4 +25,4 @@
 [Target]
 M32C E8a SYSTEM=Renesas Communications
 [USER_DATA]
-RESET=ff0028
+RESET=ff0040
Index: branch/najib_idzim/tp_info6/Emb_App/SessionM32C_E8a_system.BKS
===================================================================
--- branch/najib_idzim/tp_info6/Emb_App/SessionM32C_E8a_system.BKS	(revision 478)
+++ branch/najib_idzim/tp_info6/Emb_App/SessionM32C_E8a_system.BKS	(revision 479)
@@ -141,7 +141,7 @@
 "{55384715-F881-421C-A548-D7D1ABE158E1}PDMRWndInstanceKey0" "{WK_00000001_PDMR}EmbM32C87AppSessionM32C_E8a_system" 
 "{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" 
@@ -148,13 +148,13 @@
 "{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_12" "0000000000000000" 
 "{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" "0000000000000000" 
-"{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_16" "0000000000FF0026" 
-"{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_17" "0000000000000000" 
-"{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_18" "0000000000000000" 
-"{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_19" "0000000000000700" 
-"{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_2" "0000000000000000" 
-"{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_20" "0000000000000000" 
+"{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_15" "0000000000000512" 
+"{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_16" "0000000000FF3341" 
+"{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_17" "0000000000FFF800" 
+"{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_18" "0000000000000C34" 
+"{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_19" "0000000000000838" 
+"{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_2" "0000000000000006" 
+"{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_20" "00000000000000C0" 
 "{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_21" "0000000000000000" 
 "{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_22" "0000000000000000" 
 "{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_23" "0000000000000000" 
@@ -169,12 +169,12 @@
 "{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_31" "0000000000000000" 
 "{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_32" "0000000000000000" 
 "{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_34" "000000000000036A" 
 "{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_35" "0000000000000000" 
-"{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_4" "0000000000000000" 
-"{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_5" "0000000000000000" 
-"{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_6" "0000000000000000" 
-"{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_7" "0000000000000000" 
+"{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_4" "0000000000000006" 
+"{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_5" "000000000000014D" 
+"{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_6" "0000000000000C34" 
+"{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_7" "0000000000000512" 
 "{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_8" "0000000000000000" 
 "{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_9" "0000000000000000" 
 "{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_COUNT" "36" 
@@ -205,13 +205,17 @@
 "{B266D880-6FA1-11D5-8613-00A024591A38}WatchWnd0ColWidth2" "120" 
 "{B266D880-6FA1-11D5-8613-00A024591A38}WatchWnd0ColWidth3" "200" 
 "{B266D880-6FA1-11D5-8613-00A024591A38}WatchWnd0ECX_WATCH" "c,buff,n,rx,flag," 
-"{B266D880-6FA1-11D5-8613-00A024591A38}WatchWnd0ECX_WATCH_ITEM0000" "capt, 1, 0, P, Col, Hex, MA" 
+"{B266D880-6FA1-11D5-8613-00A024591A38}WatchWnd0ECX_WATCH_ITEM0000" "capt, 2, 0, P, Col, Hex, MA" 
 "{B266D880-6FA1-11D5-8613-00A024591A38}WatchWnd0ECX_WATCH_ITEM0000_SCOPE" "Global," 
-"{B266D880-6FA1-11D5-8613-00A024591A38}WatchWnd0ECX_WATCH_ITEM0001" "even, 1, 0, P, Col, Hex, MA" 
+"{B266D880-6FA1-11D5-8613-00A024591A38}WatchWnd0ECX_WATCH_ITEM0001" "mode, 2, 0, P, Col, Hex, MA" 
 "{B266D880-6FA1-11D5-8613-00A024591A38}WatchWnd0ECX_WATCH_ITEM0001_SCOPE" "Current Scope," 
-"{B266D880-6FA1-11D5-8613-00A024591A38}WatchWnd0ECX_WATCH_ITEM0002" "code_touche, 1, 0, P, Col, Hex, MA" 
+"{B266D880-6FA1-11D5-8613-00A024591A38}WatchWnd0ECX_WATCH_ITEM0002" "piste, 2, 0, P, Col, Hex, MA" 
 "{B266D880-6FA1-11D5-8613-00A024591A38}WatchWnd0ECX_WATCH_ITEM0002_SCOPE" "Current Scope," 
-"{B266D880-6FA1-11D5-8613-00A024591A38}WatchWnd0ECX_WATCH_ITEMCnt" "3" 
+"{B266D880-6FA1-11D5-8613-00A024591A38}WatchWnd0ECX_WATCH_ITEM0003" "feu, 2, 0, P, Col, Hex, MA" 
+"{B266D880-6FA1-11D5-8613-00A024591A38}WatchWnd0ECX_WATCH_ITEM0003_SCOPE" "Current Scope," 
+"{B266D880-6FA1-11D5-8613-00A024591A38}WatchWnd0ECX_WATCH_ITEM0004" "periph, 6, 0, P, Col, Hex, MN" 
+"{B266D880-6FA1-11D5-8613-00A024591A38}WatchWnd0ECX_WATCH_ITEM0004_SCOPE" "Current Scope," 
+"{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" "200" 
@@ -242,9 +246,9 @@
 "{D3D4595F-12B4-4866-8F9A-78C30AC967E3}T_CONFIG_GOOPTION" "0 5 0 0" 
 "{D3D4595F-12B4-4866-8F9A-78C30AC967E3}T_CONFIG_ROUND" "RM_NEAR" 
 "{D3D4595F-12B4-4866-8F9A-78C30AC967E3}T_CONFIG_STEPOPTION" "0" 
-"{D3D4595F-12B4-4866-8F9A-78C30AC967E3}T_EVENT_BC1" "0,0,1,0,1,0,1,0,0,0" 
-"{D3D4595F-12B4-4866-8F9A-78C30AC967E3}T_EVENT_BC2" "0,0,1,0,1,0" 
-"{D3D4595F-12B4-4866-8F9A-78C30AC967E3}T_EVENT_BC3" "0,0,1,0,1,0,1,0,0,0" 
+"{D3D4595F-12B4-4866-8F9A-78C30AC967E3}T_EVENT_BC1" "1,1,0,ff3335,1,0,1,0,0,0" 
+"{D3D4595F-12B4-4866-8F9A-78C30AC967E3}T_EVENT_BC2" "1,1,0,ff3341,1,0" 
+"{D3D4595F-12B4-4866-8F9A-78C30AC967E3}T_EVENT_BC3" "1,1,0,ff333b,1,0,1,0,0,0" 
 "{D3D4595F-12B4-4866-8F9A-78C30AC967E3}T_EVENT_BC4" "0,0,1,0,1,0,1,0,0,0" 
 "{D3D4595F-12B4-4866-8F9A-78C30AC967E3}T_SESSION_IS_SAVED" "YES" 
 "{D595F9C0-EF22-11D5-B7DB-0000E10B3DA9}EventCtrlViews" "2" 
@@ -283,12 +287,12 @@
 "Help" "TOOLBAR 0" 59419 2 4 "0.00" 0 0 0 0 0 17 0 "" "0.0" 
 "{WK_00000001_CmdLine}" "WINDOW" 59422 0 2 "0.07" 251 0 0 350 200 17 0 "32771|32772|32778|<<separator>>|32773|32774|<<separator>>|32820|<<separator>>|32801|32824" "0.0" 
 "{WK_00000001_DISASSEMBLY}" "WINDOW" 0 0 0 "0.00" 0 -4 -30 948 486 9 0 "" "0.0" 
-"{WK_00000001_EVENT}EmbM32C87AppSessionM32C_E8a_system" "WINDOW" 59422 0 1 "0.13" 251 0 0 350 200 18 0 "32774|32775|32777|<<separator>>|32780|<<separator>>" "0.0" 
+"{WK_00000001_EVENT}EmbM32C87AppSessionM32C_E8a_system" "WINDOW" 59422 0 3 "0.09" 251 0 0 350 200 18 0 "32774|32775|32777|<<separator>>|32780|<<separator>>" "0.0" 
 "{WK_00000001_MEMORY}EmbM32C87AppSessionM32C_E8a_system" "WINDOW" 59422 0 1 "0.23" 365 2 -1 350 200 2065 0 "42202|42203|42204|42233|<<separator>>|42206|42205|42230|42229|42207|<<separator>>|42208|42209|42210|49076|42228|42227|<<separator>>|42231|42232|42234|42235|<<separator>>|42211|<<separator>>|32796|32797" "0.0" 
-"{WK_00000001_OUTPUT}" "WINDOW" 59422 0 3 "0.61" 251 0 0 350 200 18 0 "36756|36757|36758|36759|<<separator>>|36746|36747|<<separator>>|39531|<<separator>>|39500|39534|<<separator>>|36687" "0.0" 
-"{WK_00000001_PDMR}EmbM32C87AppSessionM32C_E8a_system" "WINDOW" 59422 0 4 "0.04" 251 0 0 350 200 18 0 "47300|47301|47302|47303|47304|47305|47314|47306|47307|47308|47311|47312|47313|42211|42509|42303" "0.0" 
+"{WK_00000001_OUTPUT}" "WINDOW" 59422 0 1 "0.58" 251 0 0 350 200 18 0 "36756|36757|36758|36759|<<separator>>|36746|36747|<<separator>>|39531|<<separator>>|39500|39534|<<separator>>|36687" "0.0" 
+"{WK_00000001_PDMR}EmbM32C87AppSessionM32C_E8a_system" "WINDOW" 59422 0 4 "0.03" 251 0 0 350 200 18 0 "47300|47301|47302|47303|47304|47305|47314|47306|47307|47308|47311|47312|47313|42211|42509|42303" "0.0" 
 "{WK_00000001_REGISTERS}EmbM32C87AppSessionM32C_E8a_system" "WINDOW" 59421 0 0 "1.00" 236 0 0 350 200 2065 0 "" "0.0" 
-"{WK_00000001_WATCH}EmbM32C87AppSessionM32C_E8a_system" "WINDOW" 59422 0 0 "0.22" 251 0 0 350 200 18 0 "32781|32783|<<separator>>|32771|32772|32773|<<separator>>|32786|<<separator>>|32810|32811" "0.0" 
+"{WK_00000001_WATCH}EmbM32C87AppSessionM32C_E8a_system" "WINDOW" 59422 0 0 "0.30" 251 0 0 350 200 18 0 "32781|32783|<<separator>>|32771|32772|32773|<<separator>>|32786|<<separator>>|32810|32811" "0.0" 
 "{WK_00000002_WORKSPACE}" "WINDOW" 59420 0 0 "1.00" 308 0 0 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" 
@@ -313,9 +317,10 @@
 [WINDOW_POSITION_STATE_DATA_VD3]
 [WINDOW_POSITION_STATE_DATA_VD4]
 [WINDOW_Z_ORDER]
-"E:\tp_info6_2018_najib_idzim\tp_info6\Emb_App\crt0mr.a30" 
-"E:\tp_info6_2018_najib_idzim\tp_info6\Emb_App\programme_principal_etud.c" 
-"E:\tp_info6_2018_najib_idzim\tp_info6\Emb_App\conf_noyau.cfg" 
+"E:\tp_info6_2018_najib\tp_info6\Emb_App\programme_principal_etud.c" 
+"E:\tp_info6_2018_najib\tp_info6\Emb_App\crt0mr.a30" 
+"E:\tp_info6_2018_najib\tp_info6\Emb_App\conf_noyau.cfg" 
+"E:\tp_info6_2018_najib\tp_info6\bsp\uart0.c" 
 [TARGET_NAME]
 "M32C E8a SYSTEM" "" 0 
 [STATUSBAR_STATEINFO_VD1]
@@ -362,5 +367,5 @@
 [FLASH_DETAILS]
 "" 0 0 "" 0 "" 0 0 "" 0 0 0 0 0 0 0 "" "" "" "" "" 
 [BREAKPOINTS]
-"d:\profs\tp_info14_travail\tp_info14\emb_app\programme_principal_etud.c" 95 100402584 1 "{00000000-0000-0000-C000-000000000046}" "" 
+"d:\profs\tp_info14_travail\tp_info14\emb_app\programme_principal_etud.c" 95 95947576 1 "{00000000-0000-0000-C000-000000000046}" "" 
 [END]
Index: branch/najib_idzim/tp_info6/Emb_App/conf_noyau.cfg
===================================================================
--- branch/najib_idzim/tp_info6/Emb_App/conf_noyau.cfg	(revision 478)
+++ branch/najib_idzim/tp_info6/Emb_App/conf_noyau.cfg	(revision 479)
@@ -39,7 +39,7 @@
 	name	= ID_main;
 	stack_size	= 1024;
 	stack_section	= stack;
-	priority	= 8;
+	priority	= 9;
 	initial_start	= ON;
 	exinf	= 0x0;
 };
@@ -79,9 +79,17 @@
 	initial_start	= OFF;
 	exinf	= 0x0;
 };
+task[]{
+	entry_address	= controle();
+	name	= ID_controle;
+	stack_size	= 1024;
+	stack_section	= stack;
+	priority	= 5;
+	initial_start	= OFF;
+	exinf	= 0x0;
+};
 
 
-
 flag[]{
 	name	= ev_bus_fin_tr;
 	initial_pattern	= 0x0000;
Index: branch/najib_idzim/tp_info6/Emb_App/DefaultSession.BKS
===================================================================
--- branch/najib_idzim/tp_info6/Emb_App/DefaultSession.BKS	(revision 478)
+++ branch/najib_idzim/tp_info6/Emb_App/DefaultSession.BKS	(revision 479)
@@ -33,6 +33,7 @@
 [CONFIG_INFO_VD4]
 0 
 [WINDOW_POSITION_STATE_DATA_VD1]
+"Help" "TOOLBAR 0" 59419 2 4 "0.00" 0 0 0 0 0 17 0 "" "0.0" 
 "{WK_00000001_CmdLine}" "WINDOW" 59422 0 1 "0.03" 195 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" 195 0 0 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" 284 0 0 350 200 18 0 "" "0.0" 
@@ -54,12 +55,10 @@
 [WINDOW_POSITION_STATE_DATA_VD3]
 [WINDOW_POSITION_STATE_DATA_VD4]
 [WINDOW_Z_ORDER]
-"D:\laffont\Tp_Info14\Emb_App\programme_principal_etud.c" 
-"D:\laffont\Tp_Info14\Emb_App\uart0.c" 
-"D:\laffont\Tp_Info14\Emb_App\crt0mr.a30" 
-"D:\laffont\Tp_Info14\Emb_App\conf_noyau.cfg" 
-"D:\laffont\Tp_Info14\Emb_App\periph.c" 
-"D:\laffont\Tp_Info14\Emb_App\c_sec.inc" 
+"E:\tp_info6_2018_najib\tp_info6\Emb_App\programme_principal_etud.c" 
+"E:\tp_info6_2018_najib\tp_info6\Emb_App\crt0mr.a30" 
+"E:\tp_info6_2018_najib\tp_info6\Emb_App\conf_noyau.cfg" 
+"E:\tp_info6_2018_najib\tp_info6\bsp\uart0.c" 
 [TARGET_NAME]
 "" "" 0 
 [STATUSBAR_STATEINFO_VD1]
Index: branch/najib_idzim/tp_info6/Emb_App/SessionM32C_E8a_system.hsf
===================================================================
--- branch/najib_idzim/tp_info6/Emb_App/SessionM32C_E8a_system.hsf	(revision 478)
+++ branch/najib_idzim/tp_info6/Emb_App/SessionM32C_E8a_system.hsf	(revision 479)
@@ -141,8 +141,8 @@
 "{55384715-F881-421C-A548-D7D1ABE158E1}PDMRWndInstanceKey0" "{WK_00000001_PDMR}EmbM32C87AppSessionM32C_E8a_system" 
 "{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" "0000000000004044" 
-"{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_1" "0000000000000020" 
+"{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" 
 "{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_12" "0000000000000000" 
@@ -149,12 +149,12 @@
 "{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" "0000000000000512" 
-"{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_16" "0000000000FF0594" 
+"{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_16" "0000000000FF3341" 
 "{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_17" "0000000000FFF800" 
-"{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_18" "0000000000000CE6" 
-"{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_19" "0000000000000820" 
-"{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_2" "0000000000000001" 
-"{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_20" "0000000000004044" 
+"{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_18" "0000000000000C34" 
+"{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_19" "0000000000000838" 
+"{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_2" "0000000000000006" 
+"{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_20" "00000000000000C0" 
 "{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_21" "0000000000000000" 
 "{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_22" "0000000000000000" 
 "{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_23" "0000000000000000" 
@@ -171,9 +171,9 @@
 "{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_33" "0000000000000000" 
 "{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_34" "000000000000036A" 
 "{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_35" "0000000000000000" 
-"{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_4" "0000000000000009" 
-"{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_5" "0000000000000000" 
-"{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_6" "0000000000000D1C" 
+"{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_4" "0000000000000006" 
+"{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_5" "000000000000014D" 
+"{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_6" "0000000000000C34" 
 "{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_7" "0000000000000512" 
 "{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_8" "0000000000000000" 
 "{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_9" "0000000000000000" 
@@ -211,9 +211,11 @@
 "{B266D880-6FA1-11D5-8613-00A024591A38}WatchWnd0ECX_WATCH_ITEM0001_SCOPE" "Current Scope," 
 "{B266D880-6FA1-11D5-8613-00A024591A38}WatchWnd0ECX_WATCH_ITEM0002" "piste, 2, 0, P, Col, Hex, MA" 
 "{B266D880-6FA1-11D5-8613-00A024591A38}WatchWnd0ECX_WATCH_ITEM0002_SCOPE" "Current Scope," 
-"{B266D880-6FA1-11D5-8613-00A024591A38}WatchWnd0ECX_WATCH_ITEM0003" "feu, 10, 0, P, Col, Hex, N" 
-"{B266D880-6FA1-11D5-8613-00A024591A38}WatchWnd0ECX_WATCH_ITEM0003_SCOPE" "Global," 
-"{B266D880-6FA1-11D5-8613-00A024591A38}WatchWnd0ECX_WATCH_ITEMCnt" "4" 
+"{B266D880-6FA1-11D5-8613-00A024591A38}WatchWnd0ECX_WATCH_ITEM0003" "feu, 2, 0, P, Col, Hex, MA" 
+"{B266D880-6FA1-11D5-8613-00A024591A38}WatchWnd0ECX_WATCH_ITEM0003_SCOPE" "Current Scope," 
+"{B266D880-6FA1-11D5-8613-00A024591A38}WatchWnd0ECX_WATCH_ITEM0004" "periph, 6, 0, P, Col, Hex, MN" 
+"{B266D880-6FA1-11D5-8613-00A024591A38}WatchWnd0ECX_WATCH_ITEM0004_SCOPE" "Current Scope," 
+"{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" "200" 
@@ -244,9 +246,9 @@
 "{D3D4595F-12B4-4866-8F9A-78C30AC967E3}T_CONFIG_GOOPTION" "0 5 0 0" 
 "{D3D4595F-12B4-4866-8F9A-78C30AC967E3}T_CONFIG_ROUND" "RM_NEAR" 
 "{D3D4595F-12B4-4866-8F9A-78C30AC967E3}T_CONFIG_STEPOPTION" "0" 
-"{D3D4595F-12B4-4866-8F9A-78C30AC967E3}T_EVENT_BC1" "0,0,1,0,1,0,1,0,0,0" 
-"{D3D4595F-12B4-4866-8F9A-78C30AC967E3}T_EVENT_BC2" "0,0,1,0,1,0" 
-"{D3D4595F-12B4-4866-8F9A-78C30AC967E3}T_EVENT_BC3" "0,0,1,0,1,0,1,0,0,0" 
+"{D3D4595F-12B4-4866-8F9A-78C30AC967E3}T_EVENT_BC1" "1,1,0,ff3335,1,0,1,0,0,0" 
+"{D3D4595F-12B4-4866-8F9A-78C30AC967E3}T_EVENT_BC2" "1,1,0,ff3341,1,0" 
+"{D3D4595F-12B4-4866-8F9A-78C30AC967E3}T_EVENT_BC3" "1,1,0,ff333b,1,0,1,0,0,0" 
 "{D3D4595F-12B4-4866-8F9A-78C30AC967E3}T_EVENT_BC4" "0,0,1,0,1,0,1,0,0,0" 
 "{D3D4595F-12B4-4866-8F9A-78C30AC967E3}T_SESSION_IS_SAVED" "YES" 
 "{D595F9C0-EF22-11D5-B7DB-0000E10B3DA9}EventCtrlViews" "2" 
@@ -285,12 +287,12 @@
 "Help" "TOOLBAR 0" 59419 2 4 "0.00" 0 0 0 0 0 17 0 "" "0.0" 
 "{WK_00000001_CmdLine}" "WINDOW" 59422 0 2 "0.07" 251 0 0 350 200 17 0 "32771|32772|32778|<<separator>>|32773|32774|<<separator>>|32820|<<separator>>|32801|32824" "0.0" 
 "{WK_00000001_DISASSEMBLY}" "WINDOW" 0 0 0 "0.00" 0 -4 -30 948 486 9 0 "" "0.0" 
-"{WK_00000001_EVENT}EmbM32C87AppSessionM32C_E8a_system" "WINDOW" 59422 0 1 "0.13" 251 0 0 350 200 18 0 "32774|32775|32777|<<separator>>|32780|<<separator>>" "0.0" 
+"{WK_00000001_EVENT}EmbM32C87AppSessionM32C_E8a_system" "WINDOW" 59422 0 3 "0.09" 251 0 0 350 200 18 0 "32774|32775|32777|<<separator>>|32780|<<separator>>" "0.0" 
 "{WK_00000001_MEMORY}EmbM32C87AppSessionM32C_E8a_system" "WINDOW" 59422 0 1 "0.23" 365 2 -1 350 200 2065 0 "42202|42203|42204|42233|<<separator>>|42206|42205|42230|42229|42207|<<separator>>|42208|42209|42210|49076|42228|42227|<<separator>>|42231|42232|42234|42235|<<separator>>|42211|<<separator>>|32796|32797" "0.0" 
-"{WK_00000001_OUTPUT}" "WINDOW" 59422 0 3 "0.61" 251 0 0 350 200 18 0 "36756|36757|36758|36759|<<separator>>|36746|36747|<<separator>>|39531|<<separator>>|39500|39534|<<separator>>|36687" "0.0" 
-"{WK_00000001_PDMR}EmbM32C87AppSessionM32C_E8a_system" "WINDOW" 59422 0 4 "0.04" 251 0 0 350 200 18 0 "47300|47301|47302|47303|47304|47305|47314|47306|47307|47308|47311|47312|47313|42211|42509|42303" "0.0" 
+"{WK_00000001_OUTPUT}" "WINDOW" 59422 0 1 "0.58" 251 0 0 350 200 18 0 "36756|36757|36758|36759|<<separator>>|36746|36747|<<separator>>|39531|<<separator>>|39500|39534|<<separator>>|36687" "0.0" 
+"{WK_00000001_PDMR}EmbM32C87AppSessionM32C_E8a_system" "WINDOW" 59422 0 4 "0.03" 251 0 0 350 200 18 0 "47300|47301|47302|47303|47304|47305|47314|47306|47307|47308|47311|47312|47313|42211|42509|42303" "0.0" 
 "{WK_00000001_REGISTERS}EmbM32C87AppSessionM32C_E8a_system" "WINDOW" 59421 0 0 "1.00" 236 0 0 350 200 2065 0 "" "0.0" 
-"{WK_00000001_WATCH}EmbM32C87AppSessionM32C_E8a_system" "WINDOW" 59422 0 0 "0.22" 251 0 0 350 200 18 0 "32781|32783|<<separator>>|32771|32772|32773|<<separator>>|32786|<<separator>>|32810|32811" "0.0" 
+"{WK_00000001_WATCH}EmbM32C87AppSessionM32C_E8a_system" "WINDOW" 59422 0 0 "0.30" 251 0 0 350 200 18 0 "32781|32783|<<separator>>|32771|32772|32773|<<separator>>|32786|<<separator>>|32810|32811" "0.0" 
 "{WK_00000002_WORKSPACE}" "WINDOW" 59420 0 0 "1.00" 308 0 0 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" 
@@ -315,8 +317,10 @@
 [WINDOW_POSITION_STATE_DATA_VD3]
 [WINDOW_POSITION_STATE_DATA_VD4]
 [WINDOW_Z_ORDER]
+"E:\tp_info6_2018_najib\tp_info6\Emb_App\programme_principal_etud.c" 
 "E:\tp_info6_2018_najib\tp_info6\Emb_App\crt0mr.a30" 
-"E:\tp_info6_2018_najib\tp_info6\Emb_App\programme_principal_etud.c" 
+"E:\tp_info6_2018_najib\tp_info6\Emb_App\conf_noyau.cfg" 
+"E:\tp_info6_2018_najib\tp_info6\bsp\uart0.c" 
 [TARGET_NAME]
 "M32C E8a SYSTEM" "" 0 
 [STATUSBAR_STATEINFO_VD1]
@@ -363,5 +367,5 @@
 [FLASH_DETAILS]
 "" 0 0 "" 0 "" 0 0 "" 0 0 0 0 0 0 0 "" "" "" "" "" 
 [BREAKPOINTS]
-"d:\profs\tp_info14_travail\tp_info14\emb_app\programme_principal_etud.c" 95 89604952 1 "{00000000-0000-0000-C000-000000000046}" "" 
+"d:\profs\tp_info14_travail\tp_info14\emb_app\programme_principal_etud.c" 95 95947576 1 "{00000000-0000-0000-C000-000000000046}" "" 
 [END]
Index: branch/najib_idzim/tp_info6/Emb_App/crt0mr.a30
===================================================================
--- branch/najib_idzim/tp_info6/Emb_App/crt0mr.a30	(revision 478)
+++ branch/najib_idzim/tp_info6/Emb_App/crt0mr.a30	(revision 479)
@@ -97,7 +97,7 @@
 ; after reset,this program will start
 ;-----------------------------------------------------------------
 __SYS_INITIAL:
-	LDC	#__Sys_Sp,ISP	; set initial ISP
+; 	LDC	#__Sys_Sp,ISP	; set initial ISP
 
 	MOV.B	#2,0AH
 	MOV.B	#00,PMOD		; Set Processor Mode Register
Index: branch/najib_idzim/tp_info6/Emb_App/programme_principal_etud.c
===================================================================
--- branch/najib_idzim/tp_info6/Emb_App/programme_principal_etud.c	(revision 478)
+++ branch/najib_idzim/tp_info6/Emb_App/programme_principal_etud.c	(revision 479)
@@ -114,11 +114,11 @@
 //'C'/67/0x43 : Informations sur le dernier capteur touche :
 //  8 bits de poids faible : numero du capteur
 //  8 bits de poids fort : couleur ('C','R','J','B' ou 'V')
-//'J'/74/0x4A : Proposition d'un code de dévérouillage.
-//'j'/106/06A : Récupération du résultat de dernier code envoyé. 0x77 si aucun code n'a été soumis. <0 si la réponse n'est pas
-//				disponible. 0xab avec a-> nombre de couleurs bien placées et b -> couleurs présentes mais mal placées.
-//'I'/73/Ox49 : Définition du nom du véhicule. Doit débuter par le caractère '#' et entraine le chargement de la configuration de piste
-//				correspondant au nom du véhicule si le nom se termine par '*'
+//'J'/74/0x4A : Proposition d'un code de deverouillage.
+//'j'/106/06A : Recupération du resultat de dernier code envoye. 0x77 si aucun code n'a ete soumis. <0 si la reponse n'est pas
+//				disponible. 0xab avec a-> nombre de couleurs bien placees et b -> couleurs presentes mais mal placees.
+//'I'/73/Ox49 : Definition du nom du vehicule. Doit debuter par le caractère '#' et entraine le chargement de la configuration de piste
+//				correspondant au nom du vehicule si le nom se termine par '*'
 
 void vitesseTourelle(int vitesse);        // commande vitesse tourelle en 10e de degre/sec
 unsigned short posTourelle();             // lit position de la tourelle en 10e de degre
@@ -137,9 +137,13 @@
 unsigned short capt = 0;
 unsigned short mode = 0;
 char piste = 0;
+char saut = 0;
+char feu = 0;
+char tour = 0;
+int i;
 
 void main()
-{
+{ 
 	ports_mcu();
     lcd_init();
 	periph_init();
@@ -152,45 +156,24 @@
 	sta_cyc(ID_acqui);
 	sta_tsk(ID_periph_rx); // tache de tri des reponses du simulateur
 	
+	sta_tsk(ID_asserv_tour);
+	dly_tsk(200);
 	
+	sta_tsk(ID_asserv_direction);
+	dly_tsk(200);
 	
-    mode = modeCourse();
-	sta_tsk(ID_asserv_tour);
-	dly_tsk(1000);
 	
-	sta_tsk(ID_asserv_direction);
-	dly_tsk(1000);
-	while ( feuVert() != 1 );
-	vitesseVoiture(40); //a remettre 40
+	
+	while ( feu != 1 )
+	{
+		feu = feuVert();
+		dly_tsk(25);
+	}	
+	sta_tsk(ID_controle);
+	vitesseVoiture(40); 
 	
     while(1)
-    {
-		
-		piste = numPiste();
-		if (piste == 0x03)
-		{
-			capt = lireCapt();
-			if ( (capt == 0x5603)  )
-			{
-				vitesseVoiture(45);
-				dly_tsk(1800);
-				sus_tsk(ID_asserv_direction);  // desactiver juste avant le saut
-				dly_tsk(1200);
-				vitesseVoiture(5);
-				dly_tsk(300);
-				vitesseVoiture(15);
-				dly_tsk(700);
-				rsm_tsk(ID_asserv_direction);
-				capt = 0;
-				dly_tsk(3000);
-		
-			}
-			if ( capt == 0x5604)
-			{
-				vitesseVoiture(40);
-			}
-		}
-		
+    {	
     }
 }
 
@@ -266,9 +249,6 @@
 
 
 
-
-
-
 // fonction direction et vitesse vehicule
 
 
@@ -334,18 +314,19 @@
 
 char numPiste()
 {
-	return modeCourse() & 0x0F;	
+	return modeCourse() & 0x000F;	
 }
 
 char feuVert()
 {
-	if ( modeCourse() & 0x8000 == 0x8000)
+	if ( (modeCourse() & 0x8000) == 0x8000)
 		return 1;
 	else 
 		return 0;
 }
-// les asservissement
 
+// les asservissements et taches
+
 void asserv_tour()
 {
 	unsigned short posCons,posSortie;
@@ -392,13 +373,150 @@
 	}
 }
 
-//clavier
+void controle()
+{
+	int lecture = 0;
+	int captlu = 0;
+	
+	piste = numPiste();
+	switch(piste){
+			
+			case 0x01:
+				lcd_str("Vert"); 
+				break;
+				
+			case 0x02:
+				lcd_str("Bleu");
+				break;
+				
+			case 0x03 :
+				lcd_str("Rouge");
+				break;
+				
+			case 0x04:
+				lcd_str("Noir");
+				break;
+	}
+	while(1)
+	{
+		if (Bp_G == 1)
+		{
+			vitesseVoiture(0);
+			sus_tsk(ID_asserv_direction);
+			sus_tsk(ID_asserv_tour);
+			LED_R = 1;
+			while(Bp_G);
+			rsm_tsk(ID_asserv_tour);
+			rsm_tsk(ID_asserv_direction);
+			vitesseVoiture(40);
+			LED_R = 0;
+		}
+			
+		
+			
+		
+		if (tour > 3)
+		{
+			vitesseVoiture(0);
+			sus_tsk(ID_asserv_direction);
+			sus_tsk(ID_asserv_tour);
+			sus_tsk(ID_controle);
+		}
+		piste = numPiste();
+		
+		switch(piste){
+			
+			case 0x01:
+				
+				capt = lireCapt();
+				if (captlu != capt)
+				{
+					lecture = 1;
+				}
+				
+				if ( capt == 0x5601 && lecture == 1)
+				{
+					tour += 1;
+					lecture = 0;
+					
+				}
+				captlu = capt; 
+				break;
+				
+			case 0x02:
+				
+				capt = lireCapt();
+				if (captlu != capt)
+				{
+					lecture = 1;
+				}
+				
+				if ( capt == 0x5601 && lecture == 1)
+				{
+					tour += 1;
+					lecture = 0;
+					
+				}
+				captlu = capt; 
+				break;
+				
+			case 0x03 :
+				
+				
+				
+				capt = lireCapt();
+				if (captlu != capt)
+				{
+					lecture = 1;
+				}
+				
+				if ( capt == 0x5601 && lecture == 1)
+				{
+					tour += 1;
+					lecture = 0;
+					
+				}
+				captlu = capt; 
+			
+				if ( (capt == 0x5603) && saut == 0  )
+				{
+					vitesseVoiture(47);
+					dly_tsk(1800);
+					sus_tsk(ID_asserv_direction);  // desactiver juste avant le saut
+					dly_tsk(1200);
+					vitesseVoiture(5);             // vitesse d'atterissage
+					dly_tsk(300);
+					vitesseVoiture(15); 
+					dly_tsk(700);
+					rsm_tsk(ID_asserv_direction);
+					capt = 0;                     // initialisation de la variable avant le nouveau while
+					saut = 1;
+		
+				}
+			
+				if ( capt == 0x5604 && saut)
+				{
+					for (i = 0; i < 10; i++)
+					{
+						vitesseVoiture(20 + 2*i);
+						dly_tsk(150);
+					}
+					saut = 0;
+				
+				}
+				break;
+				
+			case 0x04:
+				break;
+			
+		}
+	}
+}
 
-short lireClavier()
+
+// temps de course
+
+int lireTemps()
 {
-	short touche;
-	vrcv_dtq(QdmTouche, &touche);
-	return touche;
+	
 }
-
-//LCD
Index: branch/najib_idzim/tp_info6/Emb_App/DefaultSession.hsf
===================================================================
--- branch/najib_idzim/tp_info6/Emb_App/DefaultSession.hsf	(revision 478)
+++ branch/najib_idzim/tp_info6/Emb_App/DefaultSession.hsf	(revision 479)
@@ -33,6 +33,7 @@
 [CONFIG_INFO_VD4]
 0 
 [WINDOW_POSITION_STATE_DATA_VD1]
+"Help" "TOOLBAR 0" 59419 2 4 "0.00" 0 0 0 0 0 17 0 "" "0.0" 
 "{WK_00000001_CmdLine}" "WINDOW" 59422 0 1 "0.03" 195 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" 195 0 0 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" 284 0 0 350 200 18 0 "" "0.0" 
@@ -54,12 +55,10 @@
 [WINDOW_POSITION_STATE_DATA_VD3]
 [WINDOW_POSITION_STATE_DATA_VD4]
 [WINDOW_Z_ORDER]
-"D:\laffont\Tp_Info14\Emb_App\programme_principal_etud.c" 
-"D:\laffont\Tp_Info14\Emb_App\uart0.c" 
-"D:\laffont\Tp_Info14\Emb_App\crt0mr.a30" 
-"D:\laffont\Tp_Info14\Emb_App\conf_noyau.cfg" 
-"D:\laffont\Tp_Info14\Emb_App\periph.c" 
-"D:\laffont\Tp_Info14\Emb_App\c_sec.inc" 
+"E:\tp_info6_2018_najib\tp_info6\Emb_App\programme_principal_etud.c" 
+"E:\tp_info6_2018_najib\tp_info6\Emb_App\crt0mr.a30" 
+"E:\tp_info6_2018_najib\tp_info6\Emb_App\conf_noyau.cfg" 
+"E:\tp_info6_2018_najib\tp_info6\bsp\uart0.c" 
 [TARGET_NAME]
 "" "" 0 
 [STATUSBAR_STATEINFO_VD1]
Index: branch/najib_idzim/tp_info6/Emb_App.BKW
===================================================================
--- branch/najib_idzim/tp_info6/Emb_App.BKW	(revision 478)
+++ branch/najib_idzim/tp_info6/Emb_App.BKW	(revision 479)
@@ -3,12 +3,12 @@
 [DATABASE_VERSION]
 "11.0" 
 [WORKSPACE_DETAILS]
-"Emb_App" "E:\tp_info6_2018_najib_idzim\tp_info6" "E:\tp_info6_2018_najib_idzim\tp_info6\Emb_App.hws" "M16C/80,M32C" "Renesas M32C Standard" 
+"Emb_App" "E:\tp_info6_2018_najib\tp_info6" "E:\tp_info6_2018_najib\tp_info6\Emb_App.hws" "M16C/80,M32C" "Renesas M32C Standard" 
 [SHARED_WORKSPACE_CONTROL_STATUS]
 "" "" "" 
 "" "" "" 
 [PROJECTS]
-"EmbM32C87App" "E:\tp_info6_2018_najib_idzim\tp_info6\Emb_App" "E:\tp_info6_2018_najib_idzim\tp_info6\Emb_App\EmbM32C87App.hwp" 4 
+"EmbM32C87App" "E:\tp_info6_2018_najib\tp_info6\Emb_App" "E:\tp_info6_2018_najib\tp_info6\Emb_App\EmbM32C87App.hwp" 4 
 [INFORMATION]
 "No workspace information available" 
 [SCRAP]
Index: branch/najib_idzim/tp_info6/Emb_App.ARF
===================================================================
--- branch/najib_idzim/tp_info6/Emb_App.ARF	(revision 478)
+++ branch/najib_idzim/tp_info6/Emb_App.ARF	(revision 479)
@@ -1,6 +1,6 @@
-E:\tp_info6_2018_najib_idzim\tp_info6\Emb_App.hws
-E:\tp_info6_2018_najib_idzim\tp_info6\Emb_App\EmbM32C87App.hwp
-E:\tp_info6_2018_najib_idzim\tp_info6\Emb_App\SessionM32C_FoUSB_UART.hsf
-E:\tp_info6_2018_najib_idzim\tp_info6\Emb_App\DefaultSession.hsf
-E:\tp_info6_2018_najib_idzim\tp_info6\Emb_App\SessionM32C_E8a_system.hsf
-E:\tp_info6_2018_najib_idzim\tp_info6\Emb_App\SessionM32C_Simulator.hsf
+E:\tp_info6_2018_najib\tp_info6\Emb_App.hws
+E:\tp_info6_2018_najib\tp_info6\Emb_App\EmbM32C87App.hwp
+E:\tp_info6_2018_najib\tp_info6\Emb_App\SessionM32C_Simulator.hsf
+E:\tp_info6_2018_najib\tp_info6\Emb_App\SessionM32C_E8a_system.hsf
+E:\tp_info6_2018_najib\tp_info6\Emb_App\DefaultSession.hsf
+E:\tp_info6_2018_najib\tp_info6\Emb_App\SessionM32C_FoUSB_UART.hsf
