polling interrupt flag, without activate interrupt
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-12-03 4:18 PM
I was working with SPI dma transmision. I config two channels for transmit and receive, however I didn't enable interrupt option in dma, however, before each transmision I cleared tc flag, and then enable spi while polling the tc flag. This works really well.
Now I am trying to do the same for usart, I config the dma peripheral before transmission and reception, and I don't activate the interrupt, but I clear the tc flag for each dma channel. This works well the first time, but second time, rx line does not generate tc flag rise.
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-12-04 6:05 AM
The behavior of the TC flag is not dependent on whether or not interrupts are enabled.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-12-04 6:05 AM
The behavior of the TC flag is not dependent on whether or not interrupts are enabled.
