TI E2E Community
Low Power RF & Wireless Connectivity
Low Power RF Bluetooth® Low Energy & ANT Forum
Timer in us
i need a timer to count in us not ms for the cc2540.
How can i realize that ?
I know the source code but i see no way to change that.
Ok, in buzzer.c i found what i need to create a pwm Signal.
But, isn't there a problem with osal, because it uses the timers too ? Because if i use a timer, osal doesn't know it ?
Have you tried using the Alt functions of timer 3? see table 7-1 Peripheral I/O Pin Mapping, which is as you indicated it is currently being used by Buzzer. I think OSAL is using other timers.
You can also route the internal/external 32khz clock to p0.0 or p0.1. (I have not done that but did read about it in manual).
both references are from swru191c - CC254x User's Guide.pdf
Will there be no crash because i use 2 timers in osal ? (if i use timer 3)
OSAL only uses the MAC Timer (Timer2) and SleepTimer, you should be able to use Timer1,3 & 4 with no problems unless another hardware library is also using them
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.