Révision 652
Ajouté par mukis il y a presque 4 ans
branch/KIS/sp4b2/SP4b2/DefaultSession.hsf | ||
---|---|---|
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_CmdLine}" "WINDOW" 59422 0 1 "0.25" 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"
|
||
... | ... | |
[WINDOW_POSITION_STATE_DATA_VD3]
|
||
[WINDOW_POSITION_STATE_DATA_VD4]
|
||
[WINDOW_Z_ORDER]
|
||
"D:\TP_SP4_KIS\sp4b2\SP4b2\SP4b2.c"
|
||
"C:\TP_SP4\sp4b2\SP4b2\SP4b2.c"
|
||
[TARGET_NAME]
|
||
"" "" 1853190002
|
||
[STATUSBAR_STATEINFO_VD1]
|
branch/KIS/sp4b2/SP4b2/SP4b2.hwp | ||
---|---|---|
[DATABASE_VERSION]
|
||
"2.8"
|
||
[PROJECT_DETAILS]
|
||
"SP4b2" "D:\TP_SP4_KIS\sp4b2\SP4b2" "D:\TP_SP4_KIS\sp4b2\SP4b2\SP4b2.hwp" "M16C/80,M32C" "Renesas M32C Standard" "Application" "M32C/80" "M32C/87(M32C/87B)"
|
||
"SP4b2" "C:\TP_SP4\sp4b2\SP4b2" "C:\TP_SP4\sp4b2\SP4b2\SP4b2.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_KIS\sp4b2\SP4b2\Debug"
|
||
"Debug_M32C_E8a_SYSTEM" "D:\TP_SP4_KIS\sp4b2\SP4b2\Debug_M32C_E8a_SYSTEM"
|
||
"Debug_M32C_Simulator" "D:\TP_SP4_KIS\sp4b2\SP4b2\Debug_M32C_Simulator"
|
||
"Release" "D:\TP_SP4_KIS\sp4b2\SP4b2\Release"
|
||
"Debug" "C:\TP_SP4\sp4b2\SP4b2\Debug"
|
||
"Debug_M32C_E8a_SYSTEM" "C:\TP_SP4\sp4b2\SP4b2\Debug_M32C_E8a_SYSTEM"
|
||
"Debug_M32C_Simulator" "C:\TP_SP4\sp4b2\SP4b2\Debug_M32C_Simulator"
|
||
"Release" "C:\TP_SP4\sp4b2\SP4b2\Release"
|
||
[BUILD_PHASES]
|
||
"Renesas M32C Assembler" 1
|
||
"Renesas M32C C Compiler" 1
|
||
... | ... | |
"Relocatable file" "Renesas M32C Linker" "Renesas M32C Assembler"
|
||
"Relocatable file" "Renesas M32C Linker" "Renesas M32C C Compiler"
|
||
[PROJECT_FILES]
|
||
"D:\TP_SP4_KIS\sp4b2\SP4b2\SP4b2.c" "User" "C source file" 2
|
||
"D:\TP_SP4_KIS\sp4b2\SP4b2\ncrt0.a30" "User" "Assembly source file" 2
|
||
"C:\TP_SP4\sp4b2\SP4b2\SP4b2.c" "User" "C source file" 2
|
||
"C:\TP_SP4\sp4b2\SP4b2\ncrt0.a30" "User" "Assembly source file" 2
|
||
[FOLDER]
|
||
"Assembly source file" "Assembly source file"
|
||
"C source file" "C source file"
|
||
... | ... | |
[ON_DEMAND_COMPONENTS_LOADED]
|
||
[SYNC_SESSION_NAMES]
|
||
[SESSIONS]
|
||
"DefaultSession" "D:\TP_SP4_KIS\sp4b2\SP4b2\DefaultSession.hsf" 0
|
||
"SessionM32C_E8a_SYSTEM" "D:\TP_SP4_KIS\sp4b2\SP4b2\SessionM32C_E8a_SYSTEM.hsf" 0
|
||
"SessionM32C_Simulator" "D:\TP_SP4_KIS\sp4b2\SP4b2\SessionM32C_Simulator.hsf" 0
|
||
"DefaultSession" "C:\TP_SP4\sp4b2\SP4b2\DefaultSession.hsf" 0
|
||
"SessionM32C_E8a_SYSTEM" "C:\TP_SP4\sp4b2\SP4b2\SessionM32C_E8a_SYSTEM.hsf" 0
|
||
"SessionM32C_Simulator" "C:\TP_SP4\sp4b2\SP4b2\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" "056a321d6a357d10" 2
|
||
"D:\TP_SP4_KIS\sp4b2\SP4b2\ncrt0.a30" "056a321d6a357d10" 2
|
||
"C:\TP_SP4\sp4b2\SP4b2\ncrt0.a30" "056a321d6a357d10" 2
|
||
[OPTIONS_Debug_Renesas M32C C Compiler]
|
||
"C source file" "056a321d6a357d10" 1
|
||
"D:\TP_SP4_KIS\sp4b2\SP4b2\SP4b2.c" "056a321d6a357d10" 1
|
||
"C:\TP_SP4\sp4b2\SP4b2\SP4b2.c" "056a321d6a357d10" 1
|
||
[OPTIONS_Debug_Renesas M32C Configurator]
|
||
"Single Shot" "056a321d6a357d10" 6
|
||
[OPTIONS_Debug_Renesas M32C Librarian]
|
||
... | ... | |
"[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_KIS\sp4b2\SP4b2\Debug\ncrt0.r30"
|
||
"C:\TP_SP4\sp4b2\SP4b2\Debug\ncrt0.r30"
|
||
[GENERAL_DATA_CONFIGURATION_Debug]
|
||
[OPTIONS_Debug_M32C_E8a_SYSTEM_Renesas M32C Assembler]
|
||
"Assembly source file" "056a321d6a357d10" 2
|
||
"D:\TP_SP4_KIS\sp4b2\SP4b2\ncrt0.a30" "056a321d6a357d10" 2
|
||
"C:\TP_SP4\sp4b2\SP4b2\ncrt0.a30" "056a321d6a357d10" 2
|
||
[OPTIONS_Debug_M32C_E8a_SYSTEM_Renesas M32C C Compiler]
|
||
"C source file" "056a321d6a357d10" 1
|
||
"D:\TP_SP4_KIS\sp4b2\SP4b2\SP4b2.c" "056a321d6a357d10" 1
|
||
"C:\TP_SP4\sp4b2\SP4b2\SP4b2.c" "056a321d6a357d10" 1
|
||
[OPTIONS_Debug_M32C_E8a_SYSTEM_Renesas M32C Configurator]
|
||
"Single Shot" "056a321d6a357d10" 6
|
||
[OPTIONS_Debug_M32C_E8a_SYSTEM_Renesas M32C Librarian]
|
||
... | ... | |
"[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_KIS\sp4b2\SP4b2\Debug_M32C_E8a_SYSTEM\ncrt0.r30"
|
||
"C:\TP_SP4\sp4b2\SP4b2\Debug_M32C_E8a_SYSTEM\ncrt0.r30"
|
||
[GENERAL_DATA_CONFIGURATION_Debug_M32C_E8a_SYSTEM]
|
||
[OPTIONS_Debug_M32C_Simulator_Renesas M32C Assembler]
|
||
"Assembly source file" "056a321d6a357d10" 2
|
||
"D:\TP_SP4_KIS\sp4b2\SP4b2\ncrt0.a30" "056a321d6a357d10" 2
|
||
"C:\TP_SP4\sp4b2\SP4b2\ncrt0.a30" "056a321d6a357d10" 2
|
||
[OPTIONS_Debug_M32C_Simulator_Renesas M32C C Compiler]
|
||
"C source file" "056a321d6a357d10" 1
|
||
"D:\TP_SP4_KIS\sp4b2\SP4b2\SP4b2.c" "056a321d6a357d10" 1
|
||
"C:\TP_SP4\sp4b2\SP4b2\SP4b2.c" "056a321d6a357d10" 1
|
||
[OPTIONS_Debug_M32C_Simulator_Renesas M32C Configurator]
|
||
"Single Shot" "056a321d6a357d10" 6
|
||
[OPTIONS_Debug_M32C_Simulator_Renesas M32C Librarian]
|
||
... | ... | |
"[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_KIS\sp4b2\SP4b2\Debug_M32C_Simulator\ncrt0.r30"
|
||
"C:\TP_SP4\sp4b2\SP4b2\Debug_M32C_Simulator\ncrt0.r30"
|
||
[GENERAL_DATA_CONFIGURATION_Debug_M32C_Simulator]
|
||
[OPTIONS_Release_Renesas M32C Assembler]
|
||
"Assembly source file" "056a321d6a357d10" 2
|
||
"D:\TP_SP4_KIS\sp4b2\SP4b2\ncrt0.a30" "056a321d6a357d10" 2
|
||
"C:\TP_SP4\sp4b2\SP4b2\ncrt0.a30" "056a321d6a357d10" 2
|
||
[OPTIONS_Release_Renesas M32C C Compiler]
|
||
"C source file" "056a321d6a357d10" 1
|
||
"D:\TP_SP4_KIS\sp4b2\SP4b2\SP4b2.c" "056a321d6a357d10" 1
|
||
"C:\TP_SP4\sp4b2\SP4b2\SP4b2.c" "056a321d6a357d10" 1
|
||
[OPTIONS_Release_Renesas M32C Configurator]
|
||
"Single Shot" "056a321d6a357d10" 6
|
||
[OPTIONS_Release_Renesas M32C Librarian]
|
||
... | ... | |
"[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_KIS\sp4b2\SP4b2\Release\ncrt0.r30"
|
||
"C:\TP_SP4\sp4b2\SP4b2\Release\ncrt0.r30"
|
||
[GENERAL_DATA_CONFIGURATION_Release]
|
||
[GENERAL_DATA_CONFIGURATION_SESSION_Debug_DefaultSession]
|
||
[SESSION_DATA_CONFIGURATION_SESSION_Debug_DefaultSession]
|
branch/KIS/sp4b2/SP4b2/SP4b2.c | ||
---|---|---|
|
||
void main(void)
|
||
{
|
||
pd1=0xFF; //port definit en sortie
|
||
|
||
pd3=0xFF; //port definit en sortie
|
||
lcd_init();
|
||
|
||
//TEST LCD_8B
|
||
... | ... | |
lcd_8b(car);
|
||
}
|
||
|
||
void lcd_com(unsigned char car)
|
||
void lcd_com(unsigned char com)
|
||
{
|
||
p3_0=0;
|
||
lcd_8b(car);
|
||
lcd_8b(com);
|
||
}
|
||
|
||
void lcd_8b(unsigned char car)
|
||
... | ... | |
p3_2=1; //E=1
|
||
|
||
if(car & 0x80){
|
||
p1_7=1;
|
||
p3_7=1;
|
||
}
|
||
else {p1_7=0;}
|
||
else {p3_7=0;}
|
||
|
||
if(car & 0x40){
|
||
p1_6=1;
|
||
p3_6=1;
|
||
}
|
||
else {p1_6=0;}
|
||
else {p3_6=0;}
|
||
|
||
if(car & 0x20){
|
||
p1_5=1;
|
||
p3_5=1;
|
||
}
|
||
else {p1_5=0;}
|
||
else {p3_5=0;}
|
||
|
||
if(car & 0x10){
|
||
p1_4=1;
|
||
p3_4=1;
|
||
}
|
||
else {p1_4=0;}
|
||
else {p3_4=0;}
|
||
|
||
p3_2=0; //E=0
|
||
}
|
||
|
||
void lcd_init(void)
|
||
{
|
||
LCD_DC=0;
|
||
p3_0=0; //DC
|
||
//tpo_ms(15);
|
||
lcd_4b(0x30);
|
||
//tpo_ms(5);
|
||
lcd_4b(0x30);
|
||
//tpo_us(100);
|
||
lcd_4b(0x30);
|
||
tpo_us(100);
|
||
//tpo_us(100);
|
||
lcd_4b(0x20);
|
||
lcd_com(0x28);
|
||
lcd_com(0x06);
|
||
lcd_com(0x0E);
|
||
lcd_com(0x01);
|
||
//tpo_ms(5);
|
||
}
|
||
|
||
|
||
|
||
}
|
branch/KIS/sp4b2/SP4b2.hws | ||
---|---|---|
[DATABASE_VERSION]
|
||
"11.0"
|
||
[WORKSPACE_DETAILS]
|
||
"SP4b2" "D:\TP_SP4_KIS\sp4b2" "D:\TP_SP4_KIS\sp4b2\SP4b2.hws" "M16C/80,M32C" "Renesas M32C Standard"
|
||
"SP4b2" "C:\TP_SP4\sp4b2" "C:\TP_SP4\sp4b2\SP4b2.hws" "M16C/80,M32C" "Renesas M32C Standard"
|
||
[SHARED_WORKSPACE_CONTROL_STATUS]
|
||
"" "" ""
|
||
"" "" ""
|
||
[PROJECTS]
|
||
"SP4b2" "D:\TP_SP4_KIS\sp4b2\SP4b2" "D:\TP_SP4_KIS\sp4b2\SP4b2\SP4b2.hwp" 0
|
||
"SP4b2" "C:\TP_SP4\sp4b2\SP4b2" "C:\TP_SP4\sp4b2\SP4b2\SP4b2.hwp" 0
|
||
[INFORMATION]
|
||
"No workspace information available"
|
||
[SCRAP]
|
||
... | ... | |
[MAKEFILE_BUILD_INFO]
|
||
"$(WORKSPDIR)\make\$(PROJECTNAME)_$(CONFIGNAME).mak" "" "$(WORKSPDIR)\make" 0 0 0
|
||
[VD_CONFIGURATION_OPTIONS]
|
||
"ACTIVE_DESKTOP" "0"
|
||
[VD_CONFIGURATIONS]
|
||
"0" "Default1" "1"
|
||
"1" "Default2" "1"
|
||
"2" "Default3" "1"
|
||
"3" "Default4" "1"
|
||
[OPTIONS_DEBUG_TAB]
|
||
0 0 0 0 0
|
||
[VCS]
|
Formats disponibles : Unified diff
Changement des ports p1 en p3