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

On how to use HVPULSE manually while still connected to the RP #19

Open
doegox opened this issue May 13, 2022 · 3 comments
Open

On how to use HVPULSE manually while still connected to the RP #19

doegox opened this issue May 13, 2022 · 3 comments

Comments

@doegox
Copy link

doegox commented May 13, 2022

Hello

From the schematics and the code it seems HVPULSE is constantly driven by the RP gpio so it seems a bit dangerous to overwrite the signal with an external trigger source without disconnecting first the RP.
Would it make sense to modify the RP firmware such that:

  • picoemp_configure_pulse_output configure it with a pull-down, idle state is HiZ + pull-down
  • picoemp_pulse set to high then back to HiZ

So we could overwrite HVPULSE with an external source without worry.

@colinoflynn
Copy link
Contributor

There's no theoretical issue with doing that - I think the external usage was discourage as a "regular user" because there is a risk of blowing up T1 or R3 (this isn't validated though). Basically if you turn on Q4 I'm not sure if you'll burn up T1/R3, since it's not designed for continuous drive. External triggering made sense to go via the RPi so that it served as a safety against turning on Q4 for more than a few mS.

So I think I'd prefer not to have such options enabled by default, but if someone e.g. uncomments/redefines something that means they enable that feature I think it makes sense. Just want users to be aware there is a high risk that they'll damange hardware when doing that (if e.g., they accidently plug the HVPULSE line into a constant 3.3V source, or if they are debugging code that drives that line high).

@LennertW
Copy link
Collaborator

You should be able to use the external_hvp command to configure the HVPULSE pin as an input (but currently without a pull-down). This does mean that you have to activate the mode, which is probably less convenient compared to what @doegox describes.

This can probably be improved, but it worked well during my (limited) testing. I used that external hvp mode for this example: https://github.com/KULeuven-COSIC/SimpleLink-FI/blob/main/notebooks/5_ChipSHOUTER-PicoEMP.ipynb

@doegox
Copy link
Author

doegox commented May 13, 2022

Thank you for sharing your notes @LennertW !

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

3 participants