2. Editing
Edit the program following the steps listed below.
Double-click "r_main.c" in the Project Tree. |
Copy the following text and paste it to the section of r_main.c shown in the figure below. |
R_TAU0_Channel0_Start(); |
Double-click "r_timer_user.c" in the Project Tree. |
Copy the following texts and paste them to the sections of r_timer_user.c shown in the figure below. |
uint16_t g_count; |
uint16_t inreg = 0,outreg = 0; inreg = P6_bit.no2; outreg = inreg ^ 1; P6_bit.no2 = outreg; P6_bit.no3 = inreg; g_count++; |