AnsweredAssumed Answered

Is safe lpc11u24 WriteEP simultaniously?

Question asked by Darius Babrauskas on Jan 21, 2019
Latest reply on Jan 21, 2019 by jeremyzhou

Hi,

I

I read UM10462 but not found answer.

 

case1

Is safe lpc11u24 WriteEP simultaniously into different endpoint ?

 

{

uint8_t tmpTxBuf[64];

pUsbApi->hw->WriteEP(pUsbHandle, 84, tmpTxBuf, 64);

pUsbApi->hw->WriteEP(pUsbHandle, 83, tmpTxBuf, 64);

pUsbApi->hw->WriteEP(pUsbHandle, 82, tmpTxBuf, 64);

pUsbApi->hw->WriteEP(pUsbHandle, 81, tmpTxBuf, 64);

pUsbApi->hw->WriteEP(pUsbHandle, 80, tmpTxBuf, 64);

}

 

 

case2

Is safe lpc11u24 WriteEP simultaniously?

I think it not safe, because buffer can bee corrupted. Is it true?

Is occur error interrupt?

{

pUsbApi->hw->WriteEP(pUsbHandle, 82, tmpTxBuf, 64);

pUsbApi->hw->WriteEP(pUsbHandle, 82, tmpTxBuf, 64);

pUsbApi->hw->WriteEP(pUsbHandle, 82, tmpTxBuf, 64);

pUsbApi->hw->WriteEP(pUsbHandle, 82, tmpTxBuf, 64);

pUsbApi->hw->WriteEP(pUsbHandle, 82, tmpTxBuf, 64);

}

 

Maybe exist detailed  information (application notes) about using USB hardware block?

 

BR.

Darius Babrauskas

Outcomes