Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

TMS320F28377S: Where is hardware detected "counter = 0"?

$
0
0

Part Number: TMS320F28377S

Hi Vasudha-san,

I ask additional questions about the following threads:

https://e2e.ti.com/support/microcontrollers/c2000/f/171/p/812087/3024935#3024935

[quote user="Vasudha Bhadoria"]
We discussed over this and concluded that making TBCTR = 0 or TBCTR = PRD through software can lead to inconsistent behaviour.

When the interrupt gets generated. counter is incrementing and when we write TBCTR = 0 or PRD in ISR this leads to counter load with specific value. Since the increment and load are not synchronized with TBCLK much slower than SYSCLK, this leads to inconsistent behaviour wherein counter = 0 is not getting detected by hardware.
[/quote]

Where is hardware detected "counter = 0"?

Is it a falling edge from PRD to "0"?

[quote user="Vasudha Bhadoria"]
Hence it is better to make counter = PRD - 1, to get consistent behaviour.
[/quote]

Why use "counter = PRD - 1" instead of "counter = PRD"?


Viewing all articles
Browse latest Browse all 262198
<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>