MATLAB EMBEDDED IDE LINK 4 - FOR USE WITH TEXAS INSTRUMENTS CODE COMPOSER STUDIO Guia do Utilizador Página 109

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 575
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 108
Schedulers and Timing
Timer Period
CPU Clock Rate Base Sample Time
Low Resolu
_
(_ _)*(_ _)
_
=
ttion Clock Divider
Prescaler
__
*
Thesoftwareconguresthetimersothatthebaseratesampletimeforthe
coded process corresponds to the interrupt rate. Embedded IDE Link CC
calculates and congures the timer period to ensure the desired sample rate.
Different proces sor families use the timer resource and interrupt number
differently. Entrie s in the following table show the resources each family uses.
Processor
Family
Timer R esource
Interrupt
Number
Simulink
Priority
C28x™
Timer 1
6
C55x™
Timer 1
22
C6000
Timer 1
15
C672x
Timer 1
5
40 for all
processors
The minimum base rate sample time you can achieve depends on two
factors—the algorithm complexity and the CPU clock speed. The maximum
value depends on the maximum timer period value and the CPU clock speed.
If all the blocks in the model inherit their sample time value, and you do not
dene the sample time, Simulink assigns a default sample time of 0.2 second.
Using Asynchronous Scheduling
Embedded IDE Link CC enables you to model and automatically generate
code for asynchronous s ystems. To do so, use the following scheduling blocks:
Hardware Interrupt blocks for bare-board code generation mode
Idle Task
The H ard w are Interrupt block operates by
Generating selected hardware interrupts for the processor
Generating corres ponding ISRs for the interrupts
3-19
Vista de página 108
1 2 ... 104 105 106 107 108 109 110 111 112 113 114 ... 574 575

Comentários a estes Manuais

Sem comentários