Renesas Single-Chip Microcomputer SH7203 Informations techniques Page 15

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 22
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 14
There are several versions of the timer function depending upon the peripherals available in the device. The default function is TimerADC
which we shall demonstrate here.
The timer 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 from the external potentiometer and uses the result to set the
next compare match value. The ADC conversion is then re-started.
Clear all Event Points.
The interrupt initialisation is performed as part of the hardware setup. This is located in the file ‘interrupts.c’.
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, INT_MTU2_MTU2_TGI2A(void)
Set a event point on the line where the LED pins are modified.
Press ‘Go’ or ‘F5’ to run the code from the current
PC position.
The code will stop in the interrupt routine. It is now possible to step through the interrupt function.
Remove the event point in the interrupt by double clicking again before exiting the function.
Press ‘Step Over’ to step over the instruction and observe the LEDs turn off.
Press ‘Go’ to run the code from the current PC
position.
The code will now run to the infinite loop at the end of Main(). The user LEDs should now be flashing. If the RSK supports an ADC you can
modify the flashing rate by adjusting the potentiometer on the board.
Press ‘Stop’ on the debug tool bar.
Clear all event points
Open the file ‘main.c’ and insert an event point on ‘StaticsTest();’.
The statics test is used to demonstrate that the initialisation has successfully copied all initialised variables from storage in flash to RAM.
Press ‘Reset Go’ on the Debug Tool Bar.
The code will stop at the event point. (Press a button to bypass the flashing LED test.)
Press ‘Step In’ on the Debug Tool Bar.
It is possible to monitor variables during debugging of the code. To set up a ‘watch’ on a variable place the mouse over the variable. If the
variable is available in the current context a tool-tip will be displayed with the current value of the variable.
Hover the mouse over the ‘ucStr’ variable to see the tooltip value. Then Right click on the variable name and select ‘Instant
Watch’.
13
Vue de la page 14
1 2 ... 10 11 12 13 14 15 16 17 18 19 20 21 22

Commentaires sur ces manuels

Pas de commentaire

Renesas REG10J0083-0100 Handbücher

Bedienungsanleitungen und Benutzerhandbücher für Nein Renesas REG10J0083-0100.
Wir stellen 1 PDF-Handbücher Renesas REG10J0083-0100 zum kostenlosen herunterladen nach Dokumenttypen zur Verfügung Technical Information






Weitere Produkte und Handbücher für Nein Renesas

Modelle Dokumententyp
SH7211 Bedienungsanleitung   Renesas SH7211 User`s manual [tr] , 64 Seiten
PCA7401 Technical Information   Renesas PCA7401 Technical information, 20 Seiten
SH7286 Technical Information   Renesas SH7286 Technical information, 23 Seiten
SH7211 Technical Information   Renesas SH7211 Technical information, 20 Seiten
M3A-2152 Bedienungsanleitung   M32R/ECU Series Correction of extension connector dimension, 3 Seiten
H8S/2237 Series Technical Information   Renesas H8S/2237 Series Technical information, 26 Seiten
SH7206 Bedienungsanleitung   PDF document - EE Times Asia, 23 Seiten
SH7149 Technical Information   Renesas SH7149 Technical information, 48 Seiten
M16C/26A Technical Information   Renesas M16C/26A Technical information, 28 Seiten
32192 Bedienungsanleitung   M32192T2-PTC User`s Manual [en] [es] , 8 Seiten
H8/3637 Series Bedienungsanleitung   Renesas Global Navigation: Search the Renesas Site, 1 Seiten
FP-80Q Technical Information   Renesas FP-80Q Technical information, 28 Seiten
DP-64S Technical Information   Renesas DP-64S Technical information, 17 Seiten
H8/36037 Technical Information   Renesas H8/36037 Technical information, 22 Seiten
H8/350 Technical Information   Renesas H8/350 Technical information, 21 Seiten
FP-112B Technical Information   Renesas FP-112B Technical information, 28 Seiten
H8S/2128 Series Bedienungsanleitung   Renesas H8S/2128 Series Product data, 171 Seiten
TFP-100G Bedienungsanleitung   Renesas TFP-100G User`s manual, 22 Seiten
H8/3257 Series Bedienungsanleitung   Renesas H8/3257 Series User`s manual, 18 Seiten