- Sun Oct 15, 2023 7:36 pm
#244571
I apologize in advance. I have been searching for an answer to my questions through the documentation and the various forums, and I'm still not finding it. The answer is probably under my nose, but I'm just not seeing it.
I have an Artemis Micro Mod installed in a Micro Mod ATP carrier board. I am using the Ambiq SDK, and I can build the code and flash the board and that stuff seems to work fine. When I have that tiny SWD header soldered in (I'm too old for that mostly) I can even use pyocd to launch gdbserver, and I can debug my code with gdb. It's very nice!
However, what I'd like to do is connect an external signal to a pin on the ATP and trigger on and digitize the signal - like an oscilloscope. So I need to figure out how to configure an ADC Slot to connect to a pad that is routed out to a pin on the ATP board, and how to trigger on that same signal.
I'll try to turn this rambling note into concrete questions:
1. I've been assuming that the posts on the ATP board that are labeled A0 and A1, are connected to pad 16 and pad 29 on the Apollo, so I should use the Ambiq HAL to configure these pads as ADCSE0 and ADCSE1 (in Ambiq talk) getting me two channels/slots to use. Is this correct? Not the "should I" part, just the connectivity.
2. The documentation seems to be contradictory on the G0-G7 pins. I'm probably misreading it, but it's not clear to me which of these, if any, can be configured as an ADC input. It's also not clear to me exactly which pins in the Apollo3 datasheet these Artemis pins connect to. Is there a document that translates the Artemis names to Apollo names? That would really help. And I can read a schematic if that's available.
3. And what about the trigger signals? The Apollo3 data sheet seems to say that one cannot configure one pad to be an ADC input and an ADC trigger at the same time. But I also don't see any ADC trigger listed in the Artemis pin out. How am I supposed to trigger the ADC on a Micro Mod ATP? Or is it just not supported?
Just a pointer to the correct documentation will make me happy. Anyway, thank you for your time.
I have an Artemis Micro Mod installed in a Micro Mod ATP carrier board. I am using the Ambiq SDK, and I can build the code and flash the board and that stuff seems to work fine. When I have that tiny SWD header soldered in (I'm too old for that mostly) I can even use pyocd to launch gdbserver, and I can debug my code with gdb. It's very nice!
However, what I'd like to do is connect an external signal to a pin on the ATP and trigger on and digitize the signal - like an oscilloscope. So I need to figure out how to configure an ADC Slot to connect to a pad that is routed out to a pin on the ATP board, and how to trigger on that same signal.
I'll try to turn this rambling note into concrete questions:
1. I've been assuming that the posts on the ATP board that are labeled A0 and A1, are connected to pad 16 and pad 29 on the Apollo, so I should use the Ambiq HAL to configure these pads as ADCSE0 and ADCSE1 (in Ambiq talk) getting me two channels/slots to use. Is this correct? Not the "should I" part, just the connectivity.
2. The documentation seems to be contradictory on the G0-G7 pins. I'm probably misreading it, but it's not clear to me which of these, if any, can be configured as an ADC input. It's also not clear to me exactly which pins in the Apollo3 datasheet these Artemis pins connect to. Is there a document that translates the Artemis names to Apollo names? That would really help. And I can read a schematic if that's available.
3. And what about the trigger signals? The Apollo3 data sheet seems to say that one cannot configure one pad to be an ADC input and an ADC trigger at the same time. But I also don't see any ADC trigger listed in the Artemis pin out. How am I supposed to trigger the ADC on a Micro Mod ATP? Or is it just not supported?
Just a pointer to the correct documentation will make me happy. Anyway, thank you for your time.