This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

UPP driver OMAP6478 Transmission

Hi,

I have downloaded UPP_BIOS_Driver_Install_v10.zip from Wiki

I need to configure this driver for A transmit mode and B Recieve mode(Duplex1)

I have done the following changes in UPP_Config()

// start with default settings
*upp_setup = UPP_USERPARAMS;

// apply common settings
upp_setup->params.A.clock_div = upp_clock_div;
upp_setup->params.A.fxn_eow = (upp_CbFxn)Upp_Complete_CB;
upp_setup->params.A.fxn_dpe = (upp_CbFxn)Upp_Error_CB;
upp_setup->params.A.fxn_err = (upp_CbFxn)Upp_Error_CB;
upp_setup->params.A.fxn_uor = (upp_CbFxn)Upp_Error_CB;
upp_setup->params.A.idle_value = 0xAAAA;

//
upp_setup->params.B.clock_div = upp_clock_div;
upp_setup->params.B.fxn_eow = (upp_CbFxn)LOCAL_upp_complete_cb;
upp_setup->params.B.fxn_eol = (upp_CbFxn)LOCAL_upp_complete_EOL;
upp_setup->params.B.en_enable = TRUE;
upp_setup->params.B.en_wait = TRUE;
upp_setup->params.B.en_start = FALSE;
upp_setup->params.B.inv_clock =TRUE;
upp_setup->params.A.width = 16;
upp_setup->params.B.width = 16;
upp_setup->params.A.direction = upp_dir_xmit;
upp_setup->params.B.direction = upp_dir_rcv;
upp_setup->params.channels = 2;

 

I am able to recieve data bytes with this configuration.

It would be of help if you could help me configure UPP driver in Transmit mode

 

Thanks and regards

Veena

 

 

 

  • Veena,

    This configuration looks correct for duplex mode 1.  The important thing is to set the "direction" fields appropriately for both channels, and to set the peripheral in 2-channel mode.  It looks like you've done that, so this configuration should work.  Do you run in to some problem at run time?  If so, please describe what happens.