Not applicable
Mar 27, 2015
01:35 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mar 27, 2015
01:35 PM
Hello,
I'm writing this thread to call attention to something which I feel is very misleading in the USIC application note.
On page 17, the note specifically states:
In my opinion this is really ambiguous. The correct behavior is to simultaneously write a value to the DPTR field and 0 to the SIZE field (atomically), but the writing implies that one should first write a 0 to the SIZE field and only AFTER that should one write to the DPTR field. This ambiguity took me forever to figure out and I really wish it was specified more clearly. In order to figure out the correct behavior I had to look at the DAVE generated code.
--J
I'm writing this thread to call attention to something which I feel is very misleading in the USIC application note.
On page 17, the note specifically states:
In my opinion this is really ambiguous. The correct behavior is to simultaneously write a value to the DPTR field and 0 to the SIZE field (atomically), but the writing implies that one should first write a 0 to the SIZE field and only AFTER that should one write to the DPTR field. This ambiguity took me forever to figure out and I really wish it was specified more clearly. In order to figure out the correct behavior I had to look at the DAVE generated code.
--J
4 Replies
Mar 29, 2015
07:25 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mar 29, 2015
07:25 PM
Hi jsharf,
Thanks for pointing out. We shall review this point.
Best Regards
Travis
Thanks for pointing out. We shall review this point.
Best Regards
Travis
Mar 30, 2015
03:07 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mar 30, 2015
03:07 AM
Detailed information about FIFO initialization sequence:
- It is recommended to initialize FIFO structure using write value to DPTR and SIZE in one write cycle in application SW.
- When writing DPTR while SIZE = 0, both pointer is updated and the buffer is considered as empty.
- A write access to DPTR while SIZE>0 can’t modify pointer and it will be ignored, also following code must be avoided in FIFO initialization .
TBCTR/RBCTR <= SIZE value
TBCTR/RBCTR <= pointer value
- It is recommended to initialize FIFO structure using write value to DPTR and SIZE in one write cycle in application SW.
- When writing DPTR while SIZE = 0, both pointer is updated and the buffer is considered as empty.
- A write access to DPTR while SIZE>0 can’t modify pointer and it will be ignored, also following code must be avoided in FIFO initialization .
TBCTR/RBCTR <= SIZE value
TBCTR/RBCTR <= pointer value
Apr 02, 2015
01:44 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Apr 02, 2015
01:44 AM
Hi Jsharf,
We shall make the necessary changes in the next version release. Thanks for point out.
Best regards
Travis
We shall make the necessary changes in the next version release. Thanks for point out.
Best regards
Travis
Not applicable
Apr 02, 2015
07:49 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Apr 02, 2015
07:49 AM
Hi Jsharf,
You're right! I also think about it when reading the document.
@Travis: Thanks for notation 🙂
You're right! I also think about it when reading the document.
@Travis: Thanks for notation 🙂