![]() ![]() I should have provided more detail and context. IR_TCx->0 = 1 // enable an interrupt on match condition 1 What is missing - even if it did compile - are: The ninth tells it the value to counto to, which is intended to get 50us as a number of CPU ticks. ![]() The seventh and eighth tell it to be in 16 bit mode and generate a frequency. The fifth resets the timer settings and the sixth sync's. The third line disables the timer and the fourth synchronizes. The second line accounts for the need to synchronize between different clocks in the chip before using the changed value. The first line is telling it to drive the timer from General Clock 0 (CPU clock) and enable the peripheral clock. Since i do not recognize the macro names, i assume that there are headers needed and it may be best to start from scratch. ![]() If you share the specific error messages, I may even be able to help 'fix' it. So I can tell you what it is supposed to be doing.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |