R0K330290S000BE Renesas Electronics America, R0K330290S000BE Datasheet - Page 16
![KIT EVAL STARTER FOR M16C/29](/photos/9/23/92359/r0k330290s000be_sml.jpg)
R0K330290S000BE
Manufacturer Part Number
R0K330290S000BE
Description
KIT EVAL STARTER FOR M16C/29
Manufacturer
Renesas Electronics America
Series
Renesas Starter Kits (RSK)r
Type
MCUr
Datasheets
1.R0K330290S000BE.pdf
(28 pages)
2.R0K330290S000BE.pdf
(24 pages)
3.R0K330290S000BE.pdf
(6 pages)
4.R0K330290S000BE.pdf
(1 pages)
Specifications of R0K330290S000BE
Contents
CPU Board, LCD Display Module, E8 Emulator, Cable, QuickStart Guide and CD-ROM
Architecture
8/16-bit
For Use With/related Products
M16C/29
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
The code will execute to the selected line and stop. An automatic breakpoint was inserted in the code and then removed after calling the
break.
The code will run and flash the LEDs 200 times. The debugger will not exit until all 200 flashes have completed or a button is pressed on the
RSK.
The code will run to the breakpoint we previously set on the TimerADC function.
The TimerADC function initialises an interrupt on an available internal timer. On a compare match in the timer module an interrupt is
generated. In the TimerADC code version the interrupt reads the last ADC conversion for the external potentiometer and uses the result to
set the next compare match value. The ADC conversion is then re-started.
The interrupt initialisation is completed as part of the hardware setup. This is contained in the file ‘interrupts.c’.
The code will stop in the interrupt routine. It is now possible to step through the interrupt function.
The code will now run to the infinite loop at the end of Main. The user LEDs should now be flashing. You can modify the flashing rate by
adjusting the potentiometer on the board.
•
•
•
•
•
•
•
•
•
Right click on the ‘FlashLEDs(); function and select
‘Go to cursor’.
Press ‘Step Over’ on the Debug Tool Bar.
If the LEDs are still flashing press the SW1 button on the RSK to exit the flashLEDs() function.
Open the file ‘interrupts.c’ by double clicking on the file in the workspace view.
Review this file and find the interrupt function that changes the LED pins, TimerA0Handler(void).
Set a breakpoint on the line where the LED pins are modified.
Press <Go> or <F5> to run the code from the
current PC position.
Remove the breakpoint in the interrupt by double clicking again before exiting the function.
Press <Go’>to run the code from the current PC
position.
12