Proposed patch for issue #29 (related to RCM4110 Rev F hardware)#30
Open
Proposed patch for issue #29 (related to RCM4110 Rev F hardware)#30
Conversation
The are multiple reasons to enable early /OE in MTCR, so do so whenever necessary and don't disable it for any reason.
Other products that enable early /OE do so before enabling the clock doubler or the spectrum spreader. The RCM4110 doesn't use a clock doubler and can be configured with a disabled spectrum spreader. Yet it may still need to have early /OE enabled to meet timing requirements of 55ns flash used in RCM4110 (part 20-101-1093) Rev F. This change enables early /OE before writing to MB0CR and disabling wait states. It also ensures we enable the feature even in firmware with a disabled spectrum spreader.
tomlogic
commented
Apr 6, 2021
| #if ENABLE_SPREADER == 0 // spreader disabled | ||
| xor a | ||
| ld (MTCRShadow), a | ||
| ioi ld (MTCR), a // normal /OE0 and /OE1 timing |
Contributor
Author
There was a problem hiding this comment.
Even with the spreader disabled, we should keep the "early /OE" setting on products that have enabled it.
| ld a, 0x0C | ||
| ioi ld (MTCR), a | ||
| #endif | ||
|
|
Contributor
Author
There was a problem hiding this comment.
This change enables "early /OE" on the RCM4110 before reaching code that configures MB0CR for 0 wait states, and therefore will access the RCM4110's 55ns flash at full speed.
| ioi ld (MTCR), a ; first, update /OE0, /OE1 early output enable | ||
| ld (MTCRShadow), a | ||
|
|
||
| .notEarlyOutputEnable: |
Contributor
Author
There was a problem hiding this comment.
This change leaves MTCR unmodified when the clock doubler isn't enabled -- allowing the RCM4110 setting from line 1881 to remain in place.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This branch has the proposed patch to resolve issue #29, and will become part of the
masterbranch once approved for release.