-
Notifications
You must be signed in to change notification settings - Fork 1.3k
broadcom - Pin.c setting of JTAG pins -- should it have pull-down? #5787
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
Comments
I looked at the current state of pins prior to the first reset and they didn't all match the datasheet. So, I'd go by what works rather than what the datasheet says. |
Sounds good. Thanks. |
Actually, one more question... or is it that pull only has meaning if it is set as in input? so it it irrelevant for ALT4 Interesting difference in the BCM2711 data sheet and the BCM2835 datasheeet
BCM2835
|
Ya, we should probably reset it to the state we want. That's good to know about reading pull back. I think I'm doing that now. |
Would you like me to submit a PR for the change I made above to set them to pull-down or since you are likely making other changes do you want to do that yourself? |
Go ahead @jerryneedell. I'm working on Zero support. |
This is done in #5798. Thanks @jerryneedell |
When the Pins are reset in
https://github.com/adafruit/circuitpython/blob/main/ports/broadcom/common-hal/microcontroller/Pin.c#L53
for the JTAG pins 22-27, the Pins it set to ALT4 then it returns without setting a PullDOWN.
Looikng at the Datasheet, these pins are listed as having pull-downs.
section 5.3 https://datasheets.raspberrypi.com/bcm2711/bcm2711-peripherals.pdf
Sould the be set here?
It seem sot be working as it and it and I f set them as Pull-down it still works. I'm just curious if they should be set .
here is the change I made to test it.
The text was updated successfully, but these errors were encountered: