Changes between Version 10 and Version 11 of HardwareUsersGuides/RadioBoard_v1.4/RadioController


Ignore:
Timestamp:
Jul 18, 2006, 1:22:52 AM (18 years ago)
Author:
sgupta
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • HardwareUsersGuides/RadioBoard_v1.4/RadioController

    v10 v11  
    3737    If the project has been created with the Base System Builder, generally the base address of the radio controller is XPAR_RADIO_CONTROLLER_0_BASEADDR. Be sure to check this to be certain.
    3838 1. {{{radios}}}/{{{dacs}}}: This refers to the Radios or the DACs that are to be affected by the function call. Each radio and DAC on the Radio Board can be selected by {{{RADIO1}}} or {{{DAC1}}} if the Radio Board is in slot 1, {{{RADIO2}}} or {{{DAC2}}} if in slot 2, etc. To call the function on multiple boards at the same time, OR (|) the values with each other. For example, {{{RADIO1|RADIO2}}} would affect both the radios in slot 1 and 2.
     39
     40Any other inputs are explained at the top of that function in {{{radio_controller.h}}}.
     41
     42=== Initialization ===
     43
     44The core uses just one Serial Peripheral Interface (SPI) to control both the Maxim Radio as well DAC. Hence certain changes need to be made to the SPI core before addressing one or the other. Before calling any {{{WarpRadio_}}} functions be sure to call {{{WarpRadio_InitializeSPI}}}. This must be done before any call to the radios after just calling a function on the DACs. Similarly {{{WarpDac_InitializeSPI}}} must be called before accessing any of its functions.
     45
     46A good rule of thumb for intialization at the start of time is to execute the following statements in order:
     47{{{
     48 WarpDac_InitializeSPI(...)
     49 WarpDac_Reset(...)
     50 WarpDac_InitializeDAC(...)
     51 WarpRadio_InitializeSPI(...)
     52 WarpRadio_Reset(...)
     53 WarpRadio_InitializeRadio(...)
     54}}}
     55Just to reiterate, notice how the InitializeSPI functions of both the radio and DAC are called before a function call of that type.