sparkfun / Arduino_Apollo3

Arduino core to support the Apollo3 microcontroller from Ambiq Micro
83 stars 38 forks source link

Servo examples are incorrect #462

Open paulvha opened 2 years ago

paulvha commented 2 years ago

Based on a post on the Sparkfun forum, I looked at the Artemis SERVO library. The examples (either 2.x or 1.x) are incorrect on the pad (8) to select.

In the Apollo3 processor, only a number of PADS can be connected for the output of a counter/timer. It is reflected in the Apollo3 datasheet chapter 13.20, but also in the comments at the top CommonAnalog.cpp : Valid pads for CTx are: 4-7, 11-13, 18-19, 22-33, 35, 37, 39, 42-49.

We all know that PAD's are mapped differently to the PINS on the different Artemis boards.

The instruction in the Servo examples should be updated to reflect that. I have created the attached spreadsheet that maps the valid Servo pad to the board pins for the different Artemis processor boards. servo_map.xlsx

regards, Paul