Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timer 1 ELDT1C bit (bit 4 of T1CNT) #8

Open
jvsTSX opened this issue Oct 4, 2024 · 3 comments
Open

Timer 1 ELDT1C bit (bit 4 of T1CNT) #8

jvsTSX opened this issue Oct 4, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@jvsTSX
Copy link
Contributor

jvsTSX commented Oct 4, 2024

when ELDT1C is cleared the PWM still updates, according to the datasheet and some tests it should behave as:
Clear (0): T1 Low will strictly use the value that was last written in T1 Low Compare before the timer was enabled, writing to T1LC afterwards will result in the value being written but not being updated untill T1CNT is cycled on and off
Set (1): T1 Low will update the value automatically after a period (or longer?) completes
This behaviour is present on both mode 1 and mode 3

@gyrovorbis gyrovorbis added the bug Something isn't working label Oct 4, 2024
@gyrovorbis
Copy link
Owner

Will make sure to fix this inaccuracy in the next release... thanks for confirming on real HW... the documentation for ELDT1C is basically worthless... lol.

@gyrovorbis
Copy link
Owner

I believe our own internal HW docs/Doxygen also needs to be updated for this field as well...

@jvsTSX
Copy link
Contributor Author

jvsTSX commented Oct 4, 2024

Further testing results: when on mode 1 the PWM comparator is updated as soon as its respective counter finishes, but on mode 3 both T1L and T1H comparators only update when T1H finishes counting, somewhat like in this diagram
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants