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

AS3935 Stroke integration threshold does not seem to work. #18

Open
rpbgit opened this issue Feb 15, 2025 · 0 comments
Open

AS3935 Stroke integration threshold does not seem to work. #18

rpbgit opened this issue Feb 15, 2025 · 0 comments

Comments

@rpbgit
Copy link

rpbgit commented Feb 15, 2025

Have 3935 running fine on SPI bus. And most everything seems like its working well.

I am now tuning some parameters and it appears the Strike Theshold does not seem to work.

i have a lightning simulator that indeed generates lightning strokes as expected. however, no matter what i set the strike threshold register bits to (values of 0x00-0x03), the first strike causes the interrupt request to be asserted to the micro.

i would have expected that the INTR line would be negated until the threshold count is exceeded.

Reading the INT source register (ISR) negates the INTR pin as expected. I am waiting 2ms from INTR recognition to reading of the ISR as spec mandates. is clearing of the integration stats require in the ISR? manually doing a clear statistics does not change the bahavior.

i have the Disturber mask set to prevent INTR from that source and the noise floor is set so that no noise events are generated. Yet still, the first strike created by my strike generator board results in the INTR pin being asserted.

why is this not working ? have i mis-interpreted the spec documents?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant