How Does Erika Enterprise support Flex Board?
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
- Chris's blog
- 1082 reads





Post new comment