Comet Labs 48-Port 10 Guía de usuario Pagina 8

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 132
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 7
Contents
iv CoMET Version 5.9 – Tutorial
Determining When a Match Occurs...................................................................94
The CIF Peripheral Model Template......................................................................95
Template Functions............................................................................................95
Additional Callback and Helper Functions........................................................96
Events and Responses in Behavioral Code.............................................................97
Declarations, Definitions and Instance Data ..........................................................98
Defining Macros ................................................................................................98
Defining the Callback Data Structure................................................................99
Adding the Callback and Helper Function Prototypes.......................................99
Declaring Instance Data Input and Output Port Handles...................................99
Declaring Instance Data Registers...................................................................100
Declaring Instance Data Callback Handles and Callback Data Structures......101
Declaring Instance Data State Variables..........................................................101
Building the Project..............................................................................................101
Creating the Behavioral Functions .......................................................................102
Creating the SetupNextMatch, ClearMatchInterrupts, Match and UnMatch
functions 102
Modifying the Task Initialization Function .....................................................106
Modify Reset function .....................................................................................108
Modifying the ReadRegister Function - Respond to Register Reads ..............109
Modifying the WriteRegister Function - Respond to Register Writes............111
Adding the SimpleTimer Device to the Virtual Platform........................................114
VSP and SimpleTimer Block Diagram.................................................................115
Creating the SimpleTimer1 instance in the Virtual Platform ...............................116
Creating the IrqNet...............................................................................................117
Adding and Modifying Connections ....................................................................117
Setting the SimpleTimer1 Base Address with a pcx Parameter Override............120
Creating Target Code............................................................................................120
Adding the Target Image .........................................................................................125
Simulating SimpleVSP1 with SimpleTimer ............................................................125
Output ......................................................................................................................125
SimpleTimer Debug Configuration Software Window Output............................125
SimpleTimer Release Configuration Software Window Output..........................127
Vista de pagina 7
1 2 3 4 5 6 7 8 9 10 11 12 13 ... 131 132

Comentarios a estos manuales

Sin comentarios