EXAMPLE: BLINK WITH TIMER!!

Here’s an example that might help someone else learn the counter timer’s capability to interface directly with GPIO. This example causes the builtin LED to blink without writing anything in the loop routine.

CODE: SELECT ALL

//

// Author: Nic Ivy

// Created: February 23, 2020

// License: MIT

//

// This example demonstrates how to pulse an output pin using a counter timer

// (i.e. CTIMER) on the Apollo3. The example uses the Ambiq Micro hardware

// abstraction layer provided with the SparkFun Arduino core for their Artemis

// line of microcontrollers.

//

//

// On the Artemis ATP, the builtin LED is on pad 5. If you change the pad number,

// you probably need to change the timer number too. See Table 813 in the

// Apollo3 Blue MCU data sheet. Timer A2C0 can be mapped to pad 5.

//

Nic, thanks for the code example! I hope some folks on here find it useful!

ere’s an example that might help someone else learn the counter timer’s capability to interface directly with GPIO. This example causes the builtin LED to blink without writing anything in the loop routine.

CODE: SELECT ALL

//

// Author: Nic Ivy

// Created: February 23, 2020

// License: MIT

//

// This example demonstrates how to pulse an output pin using a counter timer

// (i.e. CTIMER) on the Apollo3. The example uses the Ambiq Micro hardware

// abstraction layer provided with the SparkFun Arduino core for their Artemis

// line of microcontrollers.[https://19216811.cam/ [https://1921681001.id/

//

//

// On the Artemis ATP, the builtin LED is on pad 5. If you change the pad number,

// you probably need to change the timer number too. See Table 813 in the

// Apollo3 Blue MCU data sheet. Timer A2C0 can be mapped to pad 5.

//

issue got solved](https://1921681001.id/)](https://19216811.cam/)

Interesting. Where can we find the code itself? I can only see the first lines which are comments.