Silicon Laboratories Stepper Machine Manual do Utilizador Página 6

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 40
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 5
AN428
6 Rev. 0.6
4.3. Using the Header File Generation Function (Save C Code Header File)
Starting in version 2.5 of the ClockBuilder Desktop software, there is a function to automatically generate the
header file for use with the JumpStart project that includes the register map addresses, masks, and values. This
function uses the current frequency plan information present in the Programmer and converts it to the format
described in the previous section. To create this file, click on Options Save C Code Header File in the software.
Figure 5. Selecting the Save C Code Header File Function
After it is generated, the header file should be compiled with the latest version of the JumpStart firmware project for
use in the MCU, replacing whatever register_map.h file was there previously. The main Jumpstart code includes
the header file already.
The generated header file contains the following:
All the output driver, Multisynth, input configuration, spread spectrum, and phase and frequency adjustment
register information
Page bit and special register addressing (to deal with register locations greater than address 255)
NUM_REGS_MAX calculation
Correct C code syntax
Note that the header file is not optimized compared to one created manually, where a subset of the registers is
used. For example, if spread spectrum and phase adjustment are not needed in a frequency plan, the generated
file will use more flash memory space and take slightly longer to program the device since the registers related to
those unused features are included in the file.
Vista de página 5
1 2 3 4 5 6 7 8 9 10 11 ... 39 40

Comentários a estes Manuais

Sem comentários