Feb 28, 2019
03:30 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Feb 28, 2019
03:30 AM
Our circuit which wants to come out is PWM display constructed at a counter of the one-shot setting.
The following figures are the circuit and setting information.
In addition, the comparison is set by software as follows.
Counter_1_Start();
Counter_1_WriteCompare(n); /* n=0...255 */
In our environment, COUNTER does not begin to run.
I want us to point out the point where a problem lies hidden in.
Solved! Go to Solution.
Labels
1 Solution
Mar 07, 2019
04:18 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mar 07, 2019
04:18 PM
Hi,
So I think we came as far as we could get with 8bit counter.
And if you really need 255 equality, we need a counter with more than 8bit width.
Probably using a 16bit mode or create a 9~bit UDB one.
Anyway, at least a good news is the counter itself seems working 😉
moto
5 Replies