Spanish Italian
17454 Users    

How Does Erika Enterprise support Flex Board?

  Download PDF version of the Article

Introduction

This article describes the support done in Erika Enterprise for the Evidence/Embedded solutions Flex Board. Flex is an embedded board which can be used by all the developers who want to fully exploit the potential of the latest Microchip micro-controllers: the dsPIC (R) DSC family. Flex is born as a development board where to easily develop and test real-time applications for the dsPIC (R) DSC micro-controller. The main features of Flex are:

    • robust electronic design;
    • modular architecture;
    • availability of a growing number of application notes;
    • the full support of Erika Enterprise.

To configure the usage of the Flex Board, the user has to specify an appropriate BOARD_DATA, as in the following example:

...
BOARD_DATA = EE_FLEX {
...
}
...

The Flex board supports a set of devices which are directly mounted on it, plus a set of additional devices mounted on specific add-on boards. These devices can be configured by adding attributes inside the BOARD_DATA section. The supported devices and the API functions needed to use them are described in the following sections.
Warning:
The current version of the board support for Flex only supports the dsPIC (R) DSC model 33FJ256GP710.

System LED
The Flex Board has a system LED attached to a GPIO pin of the microcontroller. To use the system LED on the Flex Board, the developer should specify the USELEDS attribute as TRUE, as in the following example:

...
BOARD_DATA = EE_FLEX {
USELEDS = TRUE;
...
}
...

The following subsections will describe the functions available to control the Flex System LED.

1 EE_leds_init

Synopsis
void EE_leds_init(void);

Description
The function configures the GPIO pin. The LED starts turned off.

2 EE_led_sys_on

Synopsis
void EE_led_sys_on(void);

Description
The function turns on the LED.

3 EE_led_sys_off

Synopsis
void EE_led_sys_off(void);

Description
The function turns off the LED.

4 EE_led_on

Synopsis
void EE_led_on(void);

Description
The function turns on the LED.

5 EE_led_off

Synopsis
void EE_led_off(void);

Description
The function turns off the LED.

See also:
http://dev.emcelettronica.com/erika-enterprise
http://dev.emcelettronica.com/writing-software-dspic-r-dsc-using-erika-e...
http://dev.emcelettronica.com/how-to-configure-edf-scheduler

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
5 + 11 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.

Who's new

  • fernand
  • Ligrock
  • paolo_0665
  • chanuei
  • JM
  • samsilva77
  • araghube
  • stoll
  • mt
  • orionkw

Who's online

There are currently 0 users and 38 guests online.