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.

CCS/CC2640R2F: 1us delay in CC2640R2F

Part Number: CC2640R2F

Tool/software: Code Composer Studio

Hi,

How to create 1us delay in project zero for CC2640R2f chip.

  • Hi Pritesh,

    I am not sure you can. That's really low resolution and usually it's recommended to use RTOS clock component for delays.

  • What do you need 1 us delay for? 

  • Hi,

    I want to interface ds18b20 temperature sensor with CC2640r2f. This sensor works on One wire protocol.I want to integrate one wire with project zero.In one wire i need 1 microsecond delay.

  • Unfortunately we can't create a precise 1us delay, but what you can do is to make sure that CC2640r2 uses 2 GPIOs connected to the input of your temp sensor as they provided in their datasheet.

    Once cc2640r2 sends a command to the sensor, the rx is already there to receive the response. Of course you will also receive what you send, but you can discard those commands from application.