cjcj1949 0 Posted April 25, 2018 Share Posted April 25, 2018 The attach interrupt function works with GPIO pins. I have been able to read and write to the RTC registers. Is it possible to use the attach function to declare isrs for the RTC counter. Quote Link to post Share on other sites
zeke 693 Posted April 27, 2018 Share Posted April 27, 2018 I am not sure what the attach function is but a quick googling suggests that it is a function in the R language. Can you provide more context for your question please? Quote Link to post Share on other sites
Fmilburn 445 Posted April 27, 2018 Share Posted April 27, 2018 I think they may be referring to the attachment of an ISR in Energia: http://energia.nu/reference/attachinterrupt/ I believe Rei Vilo has posted an Energia library here on 43oh so do a search for that. I remember posting something for the F5529 using driverlib also. Quote Link to post Share on other sites
cjcj1949 0 Posted April 28, 2018 Author Share Posted April 28, 2018 The post does refer to Energia. Perhaps I should have posted elsewhere. The question is really about the limitations of using interrupts in Energia. I have code that uses the 3768 crystal in Code Composer Studio and hoped that it was possible to use the 32768Hz crystal with the Real Time Counter in Energia. If a separate library is needed then I suppose RTC counter support is not supported in Energia. Quote Link to post Share on other sites
Fmilburn 445 Posted April 29, 2018 Share Posted April 29, 2018 I think that for the most part Energia maintains the same functions and API as found in Arduino which does not have a RTC interrupt listed in the base reference. And while it might be possible to add it to Energia, I don’t believe it has been done. Nonetheless, the RTC can be accessed as mentioned above. I don’t use Energia much anymore but In the LaunchPads I have the crystal is active. If you really want control of such things however it is probably best to use CCS. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.