diff --git a/APP/QualityReport(ECU_APP,DefaultBuild).txt b/APP/QualityReport(ECU_APP,DefaultBuild).txt index 20b0415..4790c33 100644 --- a/APP/QualityReport(ECU_APP,DefaultBuild).txt +++ b/APP/QualityReport(ECU_APP,DefaultBuild).txt @@ -1,25 +1,53 @@ QualityReport -2024年6月22日 15:57:13 +2024年7月13日 20:37:31 ------ Start build(ECU_APP, DefaultBuild) ------ +C:\Program Files (x86)\Renesas Electronics\CS+\CC\CC-RL\V1.11.00\Bin\ccrl.exe r_cg_port.c -cpu=S2 -o DefaultBuild\r_cg_port.obj "-dev=C:\Program Files (x86)\Renesas Electronics\CS+\CC\Device\RL78\Devicefile\DR5F103AA.DVF" -g -g_line -I . -I user -I DataFlash -c -msg_lang=english +C:\Program Files (x86)\Renesas Electronics\CS+\CC\CC-RL\V1.11.00\Bin\ccrl.exe r_cg_serial.c -cpu=S2 -o DefaultBuild\r_cg_serial.obj "-dev=C:\Program Files (x86)\Renesas Electronics\CS+\CC\Device\RL78\Devicefile\DR5F103AA.DVF" -g -g_line -I . -I user -I DataFlash -c -msg_lang=english +C:\Program Files (x86)\Renesas Electronics\CS+\CC\CC-RL\V1.11.00\Bin\ccrl.exe r_cg_cgc_user.c -cpu=S2 -o DefaultBuild\r_cg_cgc_user.obj "-dev=C:\Program Files (x86)\Renesas Electronics\CS+\CC\Device\RL78\Devicefile\DR5F103AA.DVF" -g -g_line -I . -I user -I DataFlash -c -msg_lang=english +C:\Program Files (x86)\Renesas Electronics\CS+\CC\CC-RL\V1.11.00\Bin\ccrl.exe r_systeminit.c -cpu=S2 -o DefaultBuild\r_systeminit.obj "-dev=C:\Program Files (x86)\Renesas Electronics\CS+\CC\Device\RL78\Devicefile\DR5F103AA.DVF" -g -g_line -I . -I user -I DataFlash -c -msg_lang=english +C:\Program Files (x86)\Renesas Electronics\CS+\CC\CC-RL\V1.11.00\Bin\ccrl.exe r_cg_adc.c -cpu=S2 -o DefaultBuild\r_cg_adc.obj "-dev=C:\Program Files (x86)\Renesas Electronics\CS+\CC\Device\RL78\Devicefile\DR5F103AA.DVF" -g -g_line -I . -I user -I DataFlash -c -msg_lang=english +C:\Program Files (x86)\Renesas Electronics\CS+\CC\CC-RL\V1.11.00\Bin\ccrl.exe r_cg_serial_user.c -cpu=S2 -o DefaultBuild\r_cg_serial_user.obj "-dev=C:\Program Files (x86)\Renesas Electronics\CS+\CC\Device\RL78\Devicefile\DR5F103AA.DVF" -g -g_line -I . -I user -I DataFlash -c -msg_lang=english +C:\Program Files (x86)\Renesas Electronics\CS+\CC\CC-RL\V1.11.00\Bin\ccrl.exe r_main.c -cpu=S2 -o DefaultBuild\r_main.obj "-dev=C:\Program Files (x86)\Renesas Electronics\CS+\CC\Device\RL78\Devicefile\DR5F103AA.DVF" -g -g_line -I . -I user -I DataFlash -c -msg_lang=english +C:\Program Files (x86)\Renesas Electronics\CS+\CC\CC-RL\V1.11.00\Bin\ccrl.exe r_cg_cgc.c -cpu=S2 -o DefaultBuild\r_cg_cgc.obj "-dev=C:\Program Files (x86)\Renesas Electronics\CS+\CC\Device\RL78\Devicefile\DR5F103AA.DVF" -g -g_line -I . -I user -I DataFlash -c -msg_lang=english +C:\Program Files (x86)\Renesas Electronics\CS+\CC\CC-RL\V1.11.00\Bin\ccrl.exe r_cg_adc_user.c -cpu=S2 -o DefaultBuild\r_cg_adc_user.obj "-dev=C:\Program Files (x86)\Renesas Electronics\CS+\CC\Device\RL78\Devicefile\DR5F103AA.DVF" -g -g_line -I . -I user -I DataFlash -c -msg_lang=english C:\Program Files (x86)\Renesas Electronics\CS+\CC\CC-RL\V1.11.00\Bin\ccrl.exe user\appTask.c -cpu=S2 -o DefaultBuild\appTask.obj "-dev=C:\Program Files (x86)\Renesas Electronics\CS+\CC\Device\RL78\Devicefile\DR5F103AA.DVF" -g -g_line -I . -I user -I DataFlash -c -msg_lang=english +C:\Program Files (x86)\Renesas Electronics\CS+\CC\CC-RL\V1.11.00\Bin\ccrl.exe r_cg_port_user.c -cpu=S2 -o DefaultBuild\r_cg_port_user.obj "-dev=C:\Program Files (x86)\Renesas Electronics\CS+\CC\Device\RL78\Devicefile\DR5F103AA.DVF" -g -g_line -I . -I user -I DataFlash -c -msg_lang=english +C:\Program Files (x86)\Renesas Electronics\CS+\CC\CC-RL\V1.11.00\Bin\ccrl.exe r_cg_timer.c -cpu=S2 -o DefaultBuild\r_cg_timer.obj "-dev=C:\Program Files (x86)\Renesas Electronics\CS+\CC\Device\RL78\Devicefile\DR5F103AA.DVF" -g -g_line -I . -I user -I DataFlash -c -msg_lang=english +C:\Program Files (x86)\Renesas Electronics\CS+\CC\CC-RL\V1.11.00\Bin\ccrl.exe r_cg_wdt_user.c -cpu=S2 -o DefaultBuild\r_cg_wdt_user.obj "-dev=C:\Program Files (x86)\Renesas Electronics\CS+\CC\Device\RL78\Devicefile\DR5F103AA.DVF" -g -g_line -I . -I user -I DataFlash -c -msg_lang=english +C:\Program Files (x86)\Renesas Electronics\CS+\CC\CC-RL\V1.11.00\Bin\ccrl.exe r_cg_timer_user.c -cpu=S2 -o DefaultBuild\r_cg_timer_user.obj "-dev=C:\Program Files (x86)\Renesas Electronics\CS+\CC\Device\RL78\Devicefile\DR5F103AA.DVF" -g -g_line -I . -I user -I DataFlash -c -msg_lang=english +C:\Program Files (x86)\Renesas Electronics\CS+\CC\CC-RL\V1.11.00\Bin\ccrl.exe r_cg_wdt.c -cpu=S2 -o DefaultBuild\r_cg_wdt.obj "-dev=C:\Program Files (x86)\Renesas Electronics\CS+\CC\Device\RL78\Devicefile\DR5F103AA.DVF" -g -g_line -I . -I user -I DataFlash -c -msg_lang=english C:\Program Files (x86)\Renesas Electronics\CS+\CC\CC-RL\V1.11.00\Bin\ccrl.exe user\hwCtrl.c -cpu=S2 -o DefaultBuild\hwCtrl.obj "-dev=C:\Program Files (x86)\Renesas Electronics\CS+\CC\Device\RL78\Devicefile\DR5F103AA.DVF" -g -g_line -I . -I user -I DataFlash -c -msg_lang=english +W0511106:The folder "DataFlash" specified by the "-I" option is not found. +W0511106:The folder "DataFlash" specified by the "-I" option is not found. +user\appTask.c(41):W0520177:Variable "temp" was declared but never referenced +W0511106:The folder "DataFlash" specified by the "-I" option is not found. C:\Program Files (x86)\Renesas Electronics\CS+\CC\CC-RL\V1.11.00\Bin\ccrl.exe user\MotorCtrl.c -cpu=S2 -o DefaultBuild\MotorCtrl.obj "-dev=C:\Program Files (x86)\Renesas Electronics\CS+\CC\Device\RL78\Devicefile\DR5F103AA.DVF" -g -g_line -I . -I user -I DataFlash -c -msg_lang=english W0511106:The folder "DataFlash" specified by the "-I" option is not found. W0511106:The folder "DataFlash" specified by the "-I" option is not found. -user\hwCtrl.c(214):W0520186:Pointless comparison of unsigned integer with zero -user\appTask.c(41):W0520177:Variable "temp" was declared but never referenced -user\hwCtrl.c(231):W0520186:Pointless comparison of unsigned integer with zero W0511106:The folder "DataFlash" specified by the "-I" option is not found. +W0511106:The folder "DataFlash" specified by the "-I" option is not found. +W0511106:The folder "DataFlash" specified by the "-I" option is not found. +W0511106:The folder "DataFlash" specified by the "-I" option is not found. +W0511106:The folder "DataFlash" specified by the "-I" option is not found. +W0511106:The folder "DataFlash" specified by the "-I" option is not found. +W0511106:The folder "DataFlash" specified by the "-I" option is not found. +W0511106:The folder "DataFlash" specified by the "-I" option is not found. +W0511106:The folder "DataFlash" specified by the "-I" option is not found. +W0511106:The folder "DataFlash" specified by the "-I" option is not found. +W0511106:The folder "DataFlash" specified by the "-I" option is not found. +W0511106:The folder "DataFlash" specified by the "-I" option is not found. +user\hwCtrl.c(214):W0520186:Pointless comparison of unsigned integer with zero +user\hwCtrl.c(231):W0520186:Pointless comparison of unsigned integer with zero user\MotorCtrl.c(14):W0520550:Variable "amCtrl_counter" was set but never used C:\Program Files (x86)\Renesas Electronics\CS+\CC\CC-RL\V1.11.00\Bin\rlink.exe -subcommand=DefaultBuild\ECU_APP.clnk -W0561017:The evaluation period of CC-RL V1 has expired. Please consider purchasing the product. +W0561016:The evaluation version of CC-RL V1 is valid for the remaining 4 days. After that, link size limit (64 Kbyte) will be applied. Please consider purchasing the product. RAMDATA SECTION: 00000069 Byte(s) ROMDATA SECTION: 000000cd Byte(s) -PROGRAM SECTION: 00000e6e Byte(s) -W0561017:The evaluation period of CC-RL V1 has expired. Please consider purchasing the product. +PROGRAM SECTION: 00000e73 Byte(s) +W0561016:The evaluation version of CC-RL V1 is valid for the remaining 4 days. After that, link size limit (64 Kbyte) will be applied. Please consider purchasing the product. Renesas Optimizing Linker Completed ------- Build ended(Error:0, Warning:9)(ECU_APP, DefaultBuild) ------ +------ Build ended(Error:0, Warning:23)(ECU_APP, DefaultBuild) ------ --- CommandFile 1 --- DefaultBuild\ECU_APP.clnk : @@ -71,13 +99,13 @@ DefaultBuild\ECU_APP.clnk : --- SHA1 hash value of output files --- -E:\workspace\M20\CODE\APP\DefaultBuild\ECU_APP.abs: 28274ecb0751ea5d3f279981d191544bf0847d27 -E:\workspace\M20\CODE\APP\DefaultBuild\ECU_APP.mot: fdf5d8c7aebc05b41851fdb5a3d64dc7477cd994 +F:\work\M28\CODE\APP\DefaultBuild\ECU_APP.abs: c19873976d93dbdea6a5cb1d220828fa990624d0 +F:\work\M28\CODE\APP\DefaultBuild\ECU_APP.mot: 49fe3f665fbffb4d6cdbe312f7b0c77841b17afe --- System Information --- *OS Version - Microsoft Windows 10 企业版 LTSC (-, 10.0.17763, WOW64) + Microsoft Windows 10 企业版 LTSC (-, 10.0.19044, WOW64) *Language 中文(中国) *.NET Framework Version @@ -100,11 +128,11 @@ E:\workspace\M20\CODE\APP\DefaultBuild\ECU_APP.mot: fdf5d8c7aebc05b41851fdb5a3d6 C:\Program Files (x86)\Renesas Electronics\CS+\CC *Memory Usage *Private Working Set - 188 MB + 229 MB *Number of GDI Objects - 1967 + 2128 *Number of USER Objects - 1036 + 1132 *Opened Files 4 editors, 4 files, 35 KB @@ -235,7 +263,7 @@ Device Information Common Interface DeviceInformation.dll --- Main Project Information --- -E:\workspace\M20\CODE\APP\ECU_APP.mtpj +F:\work\M28\CODE\APP\ECU_APP.mtpj Microcontroller Information *R5F103AA *File Name: Version diff --git a/APP/function.html b/APP/function.html index 21a5517..3d27807 100644 --- a/APP/function.html +++ b/APP/function.html @@ -87,13 +87,6 @@ void R_UART0_Stop(void) R_UART0_Stop Used MD_STATUS R_UART0_Send(uint8_t * const tx_buf, uint16_t tx_num) R_UART0_Send Used MD_STATUS R_UART0_Receive(uint8_t * const rx_buf, uint16_t rx_num) R_UART0_Receive Used - CSI00 - void R_CSI00_Create(void) R_CSI00_Create Unused - void R_CSI00_Start(void) R_CSI00_Start Unused - void R_CSI00_Stop(void) R_CSI00_Stop Unused - MD_STATUS R_CSI00_Send(uint8_t * const tx_buf, uint16_t tx_num) R_CSI00_Send Unused - MD_STATUS R_CSI00_Receive(uint8_t * const rx_buf, uint16_t rx_num) R_CSI00_Receive Unused - MD_STATUS R_CSI00_Send_Receive(uint8_t * const tx_buf, uint16_t tx_num, uint8_t * const rx_buf) R_CSI00_Send_Receive Unused IICA0 void R_IICA0_Create(void) R_IICA0_Create Unused MD_STATUS R_IICA0_Master_Send(uint8_t adr, uint8_t * const tx_buf, uint16_t tx_num, uint8_t wait) R_IICA0_Master_Send Unused @@ -116,11 +109,6 @@ static void r_uart0_callback_sendend(void) r_uart0_callback_sendend Used static void r_uart0_callback_error(uint8_t err_type) r_uart0_callback_error Used static void r_uart0_callback_softwareoverrun(uint16_t rx_data) r_uart0_callback_softwareoverrun Used - CSI00 - __interrupt static void r_csi00_interrupt(void) r_csi00_interrupt Unused - static void r_csi00_callback_receiveend(void) r_csi00_callback_receiveend Unused - static void r_csi00_callback_error(uint8_t err_type) r_csi00_callback_error Unused - static void r_csi00_callback_sendend(void) r_csi00_callback_sendend Unused IICA0 void R_IICA0_Create_UserInit(void) R_IICA0_Create_UserInit Unused __interrupt static void r_iica0_interrupt(void) r_iica0_interrupt Unused @@ -169,8 +157,8 @@ void R_TAU0_Channel1_Lower8bits_Stop(void) R_TAU0_Channel1_Lower8bits_Stop Unused void R_TAU0_Channel1_Get_PulseWidth(uint32_t * const width) R_TAU0_Channel1_Get_PulseWidth Unused Channel2 - void R_TAU0_Channel2_Start(void) R_TAU0_Channel2_Start Used - void R_TAU0_Channel2_Stop(void) R_TAU0_Channel2_Stop Used + void R_TAU0_Channel2_Start(void) R_TAU0_Channel2_Start Unused + void R_TAU0_Channel2_Stop(void) R_TAU0_Channel2_Stop Unused void R_TAU0_Channel2_Get_PulseWidth(uint32_t * const width) R_TAU0_Channel2_Get_PulseWidth Unused void R_TAU0_Channel2_Set_SoftwareTriggerOn(void) R_TAU0_Channel2_Set_SoftwareTriggerOn Unused Channel3 @@ -182,18 +170,22 @@ void R_TAU0_Channel3_Lower8bits_Stop(void) R_TAU0_Channel3_Lower8bits_Stop Unused void R_TAU0_Channel3_Get_PulseWidth(uint32_t * const width) R_TAU0_Channel3_Get_PulseWidth Unused Channel4 - void R_TAU0_Channel4_Start(void) R_TAU0_Channel4_Start Unused - void R_TAU0_Channel4_Stop(void) R_TAU0_Channel4_Stop Unused + void R_TAU0_Channel4_Start(void) R_TAU0_Channel4_Start Used + void R_TAU0_Channel4_Stop(void) R_TAU0_Channel4_Stop Used + void R_TAU0_Channel4_Set_SoftwareTriggerOn(void) R_TAU0_Channel4_Set_SoftwareTriggerOn Unused Channel5 void R_TAU0_Channel5_Start(void) R_TAU0_Channel5_Start Unused void R_TAU0_Channel5_Stop(void) R_TAU0_Channel5_Stop Unused void R_TAU0_Channel5_Get_PulseWidth(uint32_t * const width) R_TAU0_Channel5_Get_PulseWidth Unused Channel6 - void R_TAU0_Channel6_Start(void) R_TAU0_Channel6_Start Unused - void R_TAU0_Channel6_Stop(void) R_TAU0_Channel6_Stop Unused + void R_TAU0_Channel6_Start(void) R_TAU0_Channel6_Start Used + void R_TAU0_Channel6_Stop(void) R_TAU0_Channel6_Stop Used + void R_TAU0_Channel6_Get_PulseWidth(uint32_t * const width) R_TAU0_Channel6_Get_PulseWidth Unused + void R_TAU0_Channel6_Set_SoftwareTriggerOn(void) R_TAU0_Channel6_Set_SoftwareTriggerOn Unused Channel7 void R_TAU0_Channel7_Start(void) R_TAU0_Channel7_Start Unused void R_TAU0_Channel7_Stop(void) R_TAU0_Channel7_Stop Unused + void R_TAU0_Channel7_Get_PulseWidth(uint32_t * const width) R_TAU0_Channel7_Get_PulseWidth Unused r_cg_timer_user.c r_cg_timer_user.c Used TAU0 void R_TAUn_Create_UserInit(void) R_TAU0_Create_UserInit Unused @@ -203,7 +195,7 @@ __interrupt static void r_tau0_channel1_interrupt(void) r_tau0_channel1_interrupt Used __interrupt static void r_tau0_channel1_higher8bits_interrupt(void) r_tau0_channel1_higher8bits_interrupt Unused Channel2 - __interrupt static void r_tau0_channel2_interrupt(void) r_tau0_channel2_interrupt Used + __interrupt static void r_tau0_channel2_interrupt(void) r_tau0_channel2_interrupt Unused Channel3 __interrupt static void r_tau0_channel3_interrupt(void) r_tau0_channel3_interrupt Unused __interrupt static void r_tau0_channel3_higher8bits_interrupt(void) r_tau0_channel3_higher8bits_interrupt Unused diff --git a/APP/macro.html b/APP/macro.html index 8317f3b..3c07319 100644 --- a/APP/macro.html +++ b/APP/macro.html @@ -11,15 +11,15 @@ Clock Generator Used CGC Used - Pin assignment setting-PIOR0 bit = 1 Unused - Pin assignment setting-PIOR1 bit = 1 Unused + Pin assignment setting-PIOR0 bit = 1 Used + Pin assignment setting-PIOR1 bit = 1 Used Operation mode setting High speed main mode 3.6 (V) VDD 5.5 (V) Main system clock (fMAIN) setting High-speed OCO (fIH) fIH operation Used fIH frequency 24(MHz) fMX operation Unused fIL Frequency 15(kHz) - Interval timer operation clock Stop(kHz) + Interval timer operation clock 15 (fIL)(kHz) CPU and peripheral clock (fCLK) 24000 (fIH)(kHz) On-chip debug operation setting Unused Security ID setting Used @@ -29,15 +29,7 @@ Setting of data flash library Unused Port Used PORT Used - P00 - Mode Out - N-ch Unused - output value 0 - P01 - Mode In - Pull-up Unused - TTL buffer Unused - P10 + P11 Mode Out N-ch Unused output value 0 @@ -53,26 +45,14 @@ Mode Out N-ch Unused output value 0 - P16 - Mode Out - N-ch Unused - output value 0 - P17 - Mode Out - N-ch Unused - output value 0 P23 - Mode Out - N-ch Unused - output value 0 + Mode In + Pull-up Unused + TTL buffer Unused P30 Mode Out N-ch Unused output value 0 - P31 - Mode In - Pull-up Unused - TTL buffer Unused P50 Mode Out N-ch Unused @@ -81,30 +61,14 @@ Mode Out N-ch Unused output value 0 - P60 - Mode In - Pull-up Unused - TTL buffer Unused - P61 - Mode In - Pull-up Unused - TTL buffer Unused - P120 - Mode Out - N-ch Unused - output value 0 - P121 - Mode In - Pull-up Unused - TTL buffer Unused P137 Mode In Pull-up Unused TTL buffer Unused P147 - Mode Out - N-ch Unused - output value 0 + Mode In + Pull-up Unused + TTL buffer Unused Interrupt Unused Serial Used SAU0 Used @@ -115,7 +79,7 @@ Parity setting (Receive function) None Stop bit length setting (Receive function) 1 bit fixed Receive data level setting Normal - Transfer rate setting (Receive function) 19200(bps)(Current error: +0.16% the minimum is -5.14% the maximum is +5.12%) + Transfer rate setting (Receive function) 9600(bps)(Current error: +0.16% the minimum is -5.14% the maximum is +5.12%) Reception end interrupt priority (INTSR0) Low Reception error interrupt priority (INTSRE0) Unused Reception end (Callback function setting) Used @@ -124,9 +88,9 @@ Data length setting (Transmit function) 8 bits Transfer direction setting (Transmit function) LSB Parity setting (Transmit function) None - Stop bit length setting (Transmit function) 2 bits + Stop bit length setting (Transmit function) 1 bit Transmit data level setting Normal - Transfer rate setting (Transmit function) 19200(bps)(Current error: +0.16%) + Transfer rate setting (Transmit function) 9600(bps)(Current error: +0.16%) Transmit end interrupt priority (INTST0) Low Transmission end (Callback function setting) Used IICA0 Unused @@ -139,9 +103,9 @@ VREF(-) setting VSS Trigger mode setting Hardware trigger no wait mode Hardware trigger no wait mode INTTM01 - Operation mode setting One-shot select mode + Operation mode setting Continuous select mode ANI0 - ANI3 analog input selection ANI0 - ANI2 - A/D channel selection ANI0 + A/D channel selection ANI1 Conversion time mode Normal 1 Conversion time 25.33333 (608/fCLK)(s) Conversion result upper/lower bound value setting Generates an interrupt request (INTAD) when ADLL ADCRH ADUL @@ -160,21 +124,35 @@ Channel1 Channel 1 Interval timer Operation mode setting 16 bits - Interval value (16 bits) 500s, (Actual value: 500) + Interval value (16 bits) 1000s, (Actual value: 1000) Generates INTTM01 when counting is started Unused End of timer channel 1 count, generate an interrupt (INTTM01) Used Priority (INTTM01) Low - Channel2 - Channel 2 Interval timer - Interval value (16 bits) 572s, (Actual value: 572) - Generates INTTM02 when counting is started Unused - End of timer channel 2 count, generate an interrupt (INTTM02) Used - Priority (INTTM02) Low + Channel4 + Channel 4 PWM output (master) + Cycle value 1000s, (Actual value: 1000) + End of timer channel 4 count, generate an interrupt (INTTM04) Unused + Duty value 50(%), (Actual value: 50%) + Initial output value 0 + Output level Active-high + End of timer channel 5 count, generate an interrupt (INTTM05) Unused + Channel5 + Channel 5 PWM output (slave) + Channel6 + Channel 6 PWM output (master) + Cycle value 100s, (Actual value: 100) + End of timer channel 6 count, generate an interrupt (INTTM06) Unused + Duty value 50(%), (Actual value: 50%) + Initial output value 0 + Output level Active-high + End of timer channel 7 count, generate an interrupt (INTTM07) Unused + Channel7 + Channel 7 PWM output (slave) Watchdog Timer Used WDT Used Watchdog timer operation setting Used - Operation in HALT/STOP/SNOOZE mode setting Enabled - Overflow time 4369.07 (2^16/fIL)(ms) + Operation in HALT/STOP/SNOOZE mode setting Stopped + Overflow time 136.53 (2^11/fIL)(ms) Window open period 100(%) Enable interval interrupt when 75% + 1/2fIL of overflow time (INTWDTI) Used Priority Low @@ -184,7 +162,7 @@ LVD Used Low voltage detector operation setting Used Operation mode setting Reset mode - Reset generation level (VLVD) 3.67(V) + Reset generation level (VLVD) 2.75(V) diff --git a/APP/r_cg_adc.c b/APP/r_cg_adc.c index 0be39b1..73355cf 100644 --- a/APP/r_cg_adc.c +++ b/APP/r_cg_adc.c @@ -23,7 +23,7 @@ * Device(s) : R5F103AA * Tool-Chain : CCRL * Description : This file implements device driver for ADC module. -* Creation Date: 2024/5/18 +* Creation Date: 2024/7/13 ***********************************************************************************************************************/ /*********************************************************************************************************************** @@ -63,8 +63,8 @@ void R_ADC_Create(void) ADPR1 = 1U; ADPR0 = 1U; /* The reset status of ADPC is analog input, so it's unnecessary to set. */ - /* Set ANI0 - ANI3 pin as analog input */ - PM2 |= 0x0FU; + /* Set ANI0 - ANI2 pin as analog input */ + PM2 |= 0x07U; ADM0 = _08_AD_CONVERSION_CLOCK_32 | _00_AD_TIME_MODE_NORMAL_1 | _00_AD_OPERMODE_SELECT; ADM1 = _80_AD_TRIGGER_HARDWARE_NOWAIT | _00_AD_CONVMODE_CONSELECT | _00_AD_TRIGGER_INTTM01; ADM2 = _00_AD_POSITIVE_VDD | _00_AD_NEGATIVE_VSS | _00_AD_AREA_MODE_1 | _00_AD_RESOLUTION_10BIT; diff --git a/APP/r_cg_adc.h b/APP/r_cg_adc.h index d85b6ae..02e42ca 100644 --- a/APP/r_cg_adc.h +++ b/APP/r_cg_adc.h @@ -23,7 +23,7 @@ * Device(s) : R5F103AA * Tool-Chain : CCRL * Description : This file implements device driver for ADC module. -* Creation Date: 2024/5/18 +* Creation Date: 2024/7/13 ***********************************************************************************************************************/ #ifndef ADC_H diff --git a/APP/r_cg_adc_user.c b/APP/r_cg_adc_user.c index ee6438d..7c616af 100644 --- a/APP/r_cg_adc_user.c +++ b/APP/r_cg_adc_user.c @@ -23,7 +23,7 @@ * Device(s) : R5F103AA * Tool-Chain : CCRL * Description : This file implements device driver for ADC module. -* Creation Date: 2024/5/18 +* Creation Date: 2024/7/13 ***********************************************************************************************************************/ /*********************************************************************************************************************** diff --git a/APP/r_cg_cgc.c b/APP/r_cg_cgc.c index c61f2b6..2b4cce1 100644 --- a/APP/r_cg_cgc.c +++ b/APP/r_cg_cgc.c @@ -23,7 +23,7 @@ * Device(s) : R5F103AA * Tool-Chain : CCRL * Description : This file implements device driver for CGC module. -* Creation Date: 2024/5/18 +* Creation Date: 2024/7/13 ***********************************************************************************************************************/ /*********************************************************************************************************************** diff --git a/APP/r_cg_cgc.h b/APP/r_cg_cgc.h index 2906b5f..a661587 100644 --- a/APP/r_cg_cgc.h +++ b/APP/r_cg_cgc.h @@ -23,7 +23,7 @@ * Device(s) : R5F103AA * Tool-Chain : CCRL * Description : This file implements device driver for CGC module. -* Creation Date: 2024/5/18 +* Creation Date: 2024/7/13 ***********************************************************************************************************************/ #ifndef CGC_H diff --git a/APP/r_cg_cgc_user.c b/APP/r_cg_cgc_user.c index f0164ce..e120008 100644 --- a/APP/r_cg_cgc_user.c +++ b/APP/r_cg_cgc_user.c @@ -23,7 +23,7 @@ * Device(s) : R5F103AA * Tool-Chain : CCRL * Description : This file implements device driver for CGC module. -* Creation Date: 2024/5/18 +* Creation Date: 2024/7/13 ***********************************************************************************************************************/ /*********************************************************************************************************************** diff --git a/APP/r_cg_macrodriver.h b/APP/r_cg_macrodriver.h index 0b2dd27..5c9e326 100644 --- a/APP/r_cg_macrodriver.h +++ b/APP/r_cg_macrodriver.h @@ -23,7 +23,7 @@ * Device(s) : R5F103AA * Tool-Chain : CCRL * Description : This file implements general head file. -* Creation Date: 2024/5/18 +* Creation Date: 2024/7/13 ***********************************************************************************************************************/ #ifndef STATUS_H diff --git a/APP/r_cg_port.c b/APP/r_cg_port.c index 0a7ed38..7d168ff 100644 --- a/APP/r_cg_port.c +++ b/APP/r_cg_port.c @@ -23,7 +23,7 @@ * Device(s) : R5F103AA * Tool-Chain : CCRL * Description : This file implements device driver for PORT module. -* Creation Date: 2024/5/18 +* Creation Date: 2024/7/13 ***********************************************************************************************************************/ /*********************************************************************************************************************** @@ -58,13 +58,14 @@ void R_PORT_Create(void) P1 = _00_Pn1_OUTPUT_0 | _00_Pn3_OUTPUT_0 | _00_Pn4_OUTPUT_0 | _00_Pn5_OUTPUT_0; P3 = _00_Pn0_OUTPUT_0; P5 = _00_Pn0_OUTPUT_0 | _00_Pn1_OUTPUT_0; - P14 = _00_Pn7_OUTPUT_0; PMC14 = _00_PMCn7_DI_ON | _7F_PMC14_DEFAULT; + ADPC = _04_ADPC_DI_ON; PM1 = _01_PMn0_NOT_USE | _00_PMn1_MODE_OUTPUT | _04_PMn2_NOT_USE | _00_PMn3_MODE_OUTPUT | _00_PMn4_MODE_OUTPUT | _00_PMn5_MODE_OUTPUT | _40_PMn6_NOT_USE | _80_PMn7_NOT_USE; + PM2 = _01_PMn0_NOT_USE | _02_PMn1_NOT_USE | _04_PMn2_NOT_USE | _08_PMn3_MODE_INPUT | _F0_PM2_DEFAULT; PM3 = _00_PMn0_MODE_OUTPUT | _02_PMn1_NOT_USE | _FC_PM3_DEFAULT; PM5 = _00_PMn0_MODE_OUTPUT | _00_PMn1_MODE_OUTPUT | _FC_PM5_DEFAULT; - PM14 = _00_PMn7_MODE_OUTPUT | _7F_PM14_DEFAULT; + PM14 = _80_PMn7_MODE_INPUT | _7F_PM14_DEFAULT; } /* Start user code for adding. Do not edit comment generated here */ diff --git a/APP/r_cg_port.h b/APP/r_cg_port.h index 859fbd6..67ef4df 100644 --- a/APP/r_cg_port.h +++ b/APP/r_cg_port.h @@ -23,7 +23,7 @@ * Device(s) : R5F103AA * Tool-Chain : CCRL * Description : This file implements device driver for PORT module. -* Creation Date: 2024/5/18 +* Creation Date: 2024/7/13 ***********************************************************************************************************************/ #ifndef PORT_H diff --git a/APP/r_cg_port_user.c b/APP/r_cg_port_user.c index 0191661..d913bc0 100644 --- a/APP/r_cg_port_user.c +++ b/APP/r_cg_port_user.c @@ -23,7 +23,7 @@ * Device(s) : R5F103AA * Tool-Chain : CCRL * Description : This file implements device driver for PORT module. -* Creation Date: 2024/5/18 +* Creation Date: 2024/7/13 ***********************************************************************************************************************/ /*********************************************************************************************************************** diff --git a/APP/r_cg_serial.c b/APP/r_cg_serial.c index dfe671a..4278f5a 100644 --- a/APP/r_cg_serial.c +++ b/APP/r_cg_serial.c @@ -23,7 +23,7 @@ * Device(s) : R5F103AA * Tool-Chain : CCRL * Description : This file implements device driver for Serial module. -* Creation Date: 2024/5/18 +* Creation Date: 2024/7/13 ***********************************************************************************************************************/ /*********************************************************************************************************************** diff --git a/APP/r_cg_serial.h b/APP/r_cg_serial.h index 002588d..234c298 100644 --- a/APP/r_cg_serial.h +++ b/APP/r_cg_serial.h @@ -23,7 +23,7 @@ * Device(s) : R5F103AA * Tool-Chain : CCRL * Description : This file implements device driver for Serial module. -* Creation Date: 2024/5/18 +* Creation Date: 2024/7/13 ***********************************************************************************************************************/ #ifndef SERIAL_H diff --git a/APP/r_cg_serial_user.c b/APP/r_cg_serial_user.c index 503d7ab..f64cd9f 100644 --- a/APP/r_cg_serial_user.c +++ b/APP/r_cg_serial_user.c @@ -23,7 +23,7 @@ * Device(s) : R5F103AA * Tool-Chain : CCRL * Description : This file implements device driver for Serial module. -* Creation Date: 2024/5/18 +* Creation Date: 2024/7/13 ***********************************************************************************************************************/ /*********************************************************************************************************************** diff --git a/APP/r_cg_timer.c b/APP/r_cg_timer.c index 4e96a67..bf6c8f5 100644 --- a/APP/r_cg_timer.c +++ b/APP/r_cg_timer.c @@ -23,7 +23,7 @@ * Device(s) : R5F103AA * Tool-Chain : CCRL * Description : This file implements device driver for TAU module. -* Creation Date: 2024/5/18 +* Creation Date: 2024/7/13 ***********************************************************************************************************************/ /*********************************************************************************************************************** diff --git a/APP/r_cg_timer.h b/APP/r_cg_timer.h index 1fb3628..23f33a0 100644 --- a/APP/r_cg_timer.h +++ b/APP/r_cg_timer.h @@ -23,7 +23,7 @@ * Device(s) : R5F103AA * Tool-Chain : CCRL * Description : This file implements device driver for TAU module. -* Creation Date: 2024/5/18 +* Creation Date: 2024/7/13 ***********************************************************************************************************************/ #ifndef TAU_H diff --git a/APP/r_cg_timer_user.c b/APP/r_cg_timer_user.c index 7e6415a..91b68d1 100644 --- a/APP/r_cg_timer_user.c +++ b/APP/r_cg_timer_user.c @@ -23,7 +23,7 @@ * Device(s) : R5F103AA * Tool-Chain : CCRL * Description : This file implements device driver for TAU module. -* Creation Date: 2024/5/18 +* Creation Date: 2024/7/13 ***********************************************************************************************************************/ /*********************************************************************************************************************** diff --git a/APP/r_cg_userdefine.h b/APP/r_cg_userdefine.h index 88951a6..5e5110a 100644 --- a/APP/r_cg_userdefine.h +++ b/APP/r_cg_userdefine.h @@ -23,7 +23,7 @@ * Device(s) : R5F103AA * Tool-Chain : CCRL * Description : This file includes user definition. -* Creation Date: 2024/5/18 +* Creation Date: 2024/7/13 ***********************************************************************************************************************/ #ifndef _USER_DEF_H diff --git a/APP/r_cg_wdt.c b/APP/r_cg_wdt.c index bc0444c..87e173d 100644 --- a/APP/r_cg_wdt.c +++ b/APP/r_cg_wdt.c @@ -23,7 +23,7 @@ * Device(s) : R5F103AA * Tool-Chain : CCRL * Description : This file implements device driver for WDT module. -* Creation Date: 2024/5/18 +* Creation Date: 2024/7/13 ***********************************************************************************************************************/ /*********************************************************************************************************************** diff --git a/APP/r_cg_wdt.h b/APP/r_cg_wdt.h index 53f70dc..ce2e6b7 100644 --- a/APP/r_cg_wdt.h +++ b/APP/r_cg_wdt.h @@ -23,7 +23,7 @@ * Device(s) : R5F103AA * Tool-Chain : CCRL * Description : This file implements device driver for WDT module. -* Creation Date: 2024/5/18 +* Creation Date: 2024/7/13 ***********************************************************************************************************************/ #ifndef WDT_H diff --git a/APP/r_cg_wdt_user.c b/APP/r_cg_wdt_user.c index 83828f6..3efaf01 100644 --- a/APP/r_cg_wdt_user.c +++ b/APP/r_cg_wdt_user.c @@ -23,7 +23,7 @@ * Device(s) : R5F103AA * Tool-Chain : CCRL * Description : This file implements device driver for WDT module. -* Creation Date: 2024/5/18 +* Creation Date: 2024/7/13 ***********************************************************************************************************************/ /*********************************************************************************************************************** diff --git a/APP/r_main.c b/APP/r_main.c index 4566acc..cc3b74d 100644 --- a/APP/r_main.c +++ b/APP/r_main.c @@ -23,7 +23,7 @@ * Device(s) : R5F103AA * Tool-Chain : CCRL * Description : This file implements main function. -* Creation Date: 2024/5/18 +* Creation Date: 2024/7/13 ***********************************************************************************************************************/ /*********************************************************************************************************************** diff --git a/APP/r_systeminit.c b/APP/r_systeminit.c index b6d56c0..169c5ff 100644 --- a/APP/r_systeminit.c +++ b/APP/r_systeminit.c @@ -23,7 +23,7 @@ * Device(s) : R5F103AA * Tool-Chain : CCRL * Description : This file implements system initializing function. -* Creation Date: 2024/5/18 +* Creation Date: 2024/7/13 ***********************************************************************************************************************/ /***********************************************************************************************************************