Configuring components

  1. In the Components view, double-click GPIO1:GPIO_LDD component to open it in Component Inspector view.
  2. In the Component Inspector view, set the property Field name in the first Bit field group to LedPin. From the drop-down menu, select the value for Pin as PTA10 (it corresponds to LED17 on the tower board). Set the Initial pin direction property to Output. Set Auto initialization to yes.
    Figure 1. Component Inspector
    Component Inspector
  3. In the Components view, click TU1:TimerUnit_LDD component to open it in the Component Inspector.
  4. Set the following properties:
    • Counter: PIT_CVAL0
    • Counter direction: Down
    • Counter restart: On-match - allows to set desired period of interrupt, otherwise interrupt invocation period is fixed to counter overflow.
    • Period: 500 ms
    • Interrupt: Enabled
    • Auto initialization: yes
      Figure 2. Component Inspector - enabled interrupt
      Component Inspector - Enabled Interrupt

For code generation, see Code generation topic.