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

Extend BoardSupport.md #118

Merged
merged 6 commits into from
Aug 2, 2021
Merged

Extend BoardSupport.md #118

merged 6 commits into from
Aug 2, 2021

Conversation

pgrawehr
Copy link
Contributor

No description provided.

@pgrawehr pgrawehr self-assigned this Jul 27, 2021
Comment on lines +45 to +59
The RP2040 is supported by ConfigurableFirmata v2.11 or later.

| Property | Value (Logical pin numbers) |
| ----------- | ------------------------------------ |
| Number of Pins | 30 |
| Number of analog inputs | 4 |
| Flash Memory | 2Mb |
| RAM | 264kb |
| PWM capable pins | 16 |
| Built-in LED | Yes, pin 25 |
| I2C, Bus 0 | Pin 6 SDA, Pin 7 SCL |
| I2C, Bus 1 | Not currently supported by ConfigurableFirmata |
| SPI, Bus 0 | Pin 16 MISO, Pin 17 CS, Pin 18 SCK, Pin 19 MOSI |
| SPI, Bus 1 | Not currently supported by ConfigurableFirmata |

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mattjlewis Can you confirm the above is correct for the current implementation? I have created similar tables for a several boards now.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to https://datasheets.raspberrypi.org/pico/Pico-R3-A4-Pinout.pdf and Google.
By "Logical pin numbers" I assume you are referring to "Physical pin numbers".
Number of analog inputs: 3 (the board itself has 4 - 3 are exposed on physical pins 31, 32 & 34, one is used for the internal temperature sensor hence not exposed). Note they are 12-bit resolution.
PWM capable pins - PWM is possible on all 26 GPIOs, can have 16 PWM channels at any one time.
Not sure about the SPI pins. Looking at pins_arduino.h, SPI is MISO: GP4 (physical 6), MOSI: GP3 (physical 5), SCK: GP2 (physical 4), CS: GP5 (physical 7).

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also the Mbed OS tooling defaults Serial to TX: GP0 (physical 1), RX: GP1 (physical 2).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, I meant "logical pin numbers" (the GPXX numbers). You wrote that I2C-0 is on GP6 and GP7 (which is actually weird, because these pins are only for I2C-1, according to the pinout).

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apologies, I should have spotted that. I have no idea what the mbed folks were thinking ignoring default values and using I2C-1. The Wire and Wire1 attributes within the mbed toolchain do not have to correlate with the physical I2C bus numbers, Wire1 can be I2C-0.

@pgrawehr pgrawehr changed the title Create BoardSupport.md Extend BoardSupport.md Jul 27, 2021
@pgrawehr pgrawehr merged commit 055a5a0 into master Aug 2, 2021
@pgrawehr pgrawehr deleted the BoardSupportDocu branch March 1, 2022 13:44
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

Successfully merging this pull request may close these issues.

2 participants