I use bus CAN for receive data and with this I generate a signal (with ECT)
For this I use interruption but I want 250ns for my signal period and I have 32µs (with PLL clock - 16MHz).
I would like to reduice this period and for do this I want to use semaphore to replace interuption.
But I don't know How do this.
Actualy, I stock receive_data in circualr buffer after to read data and generate signal by interruption. but It's too long.
In the documentation I read that for use semaphore I must use XGSEM, SSEM and CSEM. But I don't find how to use this register.
Thank you in advance,
Original Attachment has been moved to: main_buff.c.zip