Software › Timer Blink (GPT1)

Timer Blink (GPT1)

demo Open · freely redistributable

An original CC0 bare-metal i.MX RT1062 program. It gates GPIO and GPT1 in CCM, configures pin 13 as an output, programs the GPT1 prescaler (PR) and output-compare (OCR1), starts the counter (CR.EN in restart mode), then polls the output-compare flag (SR.OF1) and toggles the LED once per timer period. Exercises the real GPT1 counter/prescaler/compare path.

Download ↓

Format: i.MX RT1062 FlexSPI flash image (bare-metal, compiled C)  ·  By: emulators.org  ·  Licence: Public domain (CC0)

Runs on