Hi i try to make 2 MHZ frq on DIO6 by GPIO_toggle() but i get 250 khz . can you explain reason of this ?
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.
Hi i try to make 2 MHZ frq on DIO6 by GPIO_toggle() but i get 250 khz . can you explain reason of this ?
Hello Vahid,
Can you please provide more information on how you are using GPIO_toggle()? What code base are you starting with and could you also provide a code snippet that shows your implementation?
Similarly, if the goal is only to get a 2MHZ frequency on the DIO6 pin, you can also use a PWM for more accurate results.
Here is the PWMTimer reference: https://dev.ti.com/tirex/explore/node?node=A__APBcuxJTKKNMz9zTKL4.9A__com.ti.SIMPLELINK_CC2640R2_SDK__krol.2c__LATEST
Here is a example reference for modifying PWMTimer: https://dev.ti.com/tirex/explore/node?node=A__AC9I8JZi0XGr4s.0Gqwnug__com.ti.SIMPLELINK_CC2640R2_SDK__krol.2c__LATEST
Best,
David
Hi thank you David but i need generate just 4 pulse . I solve my problem by usig :
GPIO_setDio(IOID_7);
ASM_NOP;
GPIO_clearDio(IOID_7);