STK600 with the RCUC3A0 routing card header file.
This file contains definitions and services related to the features of the STK600 board with RCUC3A0 routing card. As the STK600 Leds, switches, clocks are configurable through connectors and software through Atmel Studio, the proposed definitions below should be considered as examples and may be modified for a given application.
To use this board, define BOARD=STK600_RCUC3A0.
Copyright (c) 2011-2018 Microchip Technology Inc. and its subsidiaries.
Macros | |
#define | LED_COUNT 8 |
Number of LEDs. More... | |
Oscillator Definitions | |
#define | FOSC32 32768 |
Osc32 frequency: Hz. More... | |
#define | OSC32_STARTUP AVR32_PM_OSCCTRL32_STARTUP_8192_RCOSC |
Osc32 startup time: RCOsc periods. More... | |
#define | FOSC0 12000000 |
Osc0 frequency: Hz. More... | |
#define | OSC0_STARTUP AVR32_PM_OSCCTRL0_STARTUP_2048_RCOSC |
Osc0 startup time: RCOsc periods. More... | |
Board-specific configuration parameters | |
The following definitions must be provided by the board code for all working oscillators on the board. | |
#define | BOARD_OSC0_HZ 12000000 |
Clock frequency of OSC0 in Hz. More... | |
#define | BOARD_OSC0_STARTUP_US 17000 |
Startup time of OSC0 in microseconds. More... | |
#define | BOARD_OSC0_IS_XTAL true |
OSC0 uses a crystal, not an external clock. More... | |
#define | BOARD_OSC32_HZ 32768 |
Clock frequency of OSC32 in Hz. More... | |
#define | BOARD_OSC32_STARTUP_US 71000 |
Startup time of OSC32 in microseconds. More... | |
#define | BOARD_OSC32_IS_XTAL true |
OSC32 uses a crystal, not an external clock. More... | |
SDRAM Definitions | |
#define | SDRAM_PART_HDR "mt48lc16m16a2tg7e/mt48lc16m16a2tg7e.h" |
Part header file of used SDRAM(s). More... | |
#define | SDRAM_DBW 16 |
Data bus width to use the SDRAM(s) with (16 or 32 bits; always 16 bits on UC3). More... | |
GPIO Connections of LEDs. To use these defines, connect the STK600 PORTA | |
PB07-to-PB15 connectors to respectively the LEDs LED0-to-LED3 connectors. Note that when the JTAG is active, it uses pins PA00-to-PA03 of the UC3A. This is why we didn't use pins PA00-to-PA03 for the LEDs LED0-to-LED3. | |
#define | LED0_GPIO AVR32_PIN_PB08 |
#define | LED1_GPIO AVR32_PIN_PB09 |
#define | LED2_GPIO AVR32_PIN_PB10 |
#define | LED3_GPIO AVR32_PIN_PB11 |
#define | LED4_GPIO AVR32_PIN_PB12 |
#define | LED5_GPIO AVR32_PIN_PB13 |
#define | LED6_GPIO AVR32_PIN_PB14 |
#define | LED7_GPIO AVR32_PIN_PB15 |
GPIO Connections of Push Buttons. To use these defines, connect the | |
STK600 PORTH connector to the SWITCHES connector. | |
#define | GPIO_PUSH_BUTTON_SW0 AVR32_PIN_PB24 |
#define | GPIO_PUSH_BUTTON_SW0_PRESSED 0 |
#define | GPIO_PUSH_BUTTON_SW1 AVR32_PIN_PB25 |
#define | GPIO_PUSH_BUTTON_SW1_PRESSED 0 |
#define | GPIO_PUSH_BUTTON_SW2 AVR32_PIN_PB26 |
#define | GPIO_PUSH_BUTTON_SW2_PRESSED 0 |
#define | GPIO_PUSH_BUTTON_SW3 AVR32_PIN_PB27 |
#define | GPIO_PUSH_BUTTON_SW3_PRESSED 0 |
#define | GPIO_PUSH_BUTTON_SW4 AVR32_PIN_PB28 |
#define | GPIO_PUSH_BUTTON_SW4_PRESSED 0 |
#define | GPIO_PUSH_BUTTON_SW5 AVR32_PIN_PB29 |
#define | GPIO_PUSH_BUTTON_SW5_PRESSED 0 |
#define | GPIO_PUSH_BUTTON_SW6 AVR32_PIN_PB30 |
#define | GPIO_PUSH_BUTTON_SW6_PRESSED 0 |
#define | GPIO_PUSH_BUTTON_SW7 AVR32_PIN_PB31 |
#define | GPIO_PUSH_BUTTON_SW7_PRESSED 0 |
SPI Connections of the DIP204 LCD | |
#define | DIP204_SPI (&AVR32_SPI1) |
#define | DIP204_SPI_NPCS 2 |
#define | DIP204_SPI_SCK_PIN AVR32_SPI1_SCK_0_0_PIN |
#define | DIP204_SPI_SCK_FUNCTION AVR32_SPI1_SCK_0_0_FUNCTION |
#define | DIP204_SPI_MISO_PIN AVR32_SPI1_MISO_0_0_PIN |
#define | DIP204_SPI_MISO_FUNCTION AVR32_SPI1_MISO_0_0_FUNCTION |
#define | DIP204_SPI_MOSI_PIN AVR32_SPI1_MOSI_0_0_PIN |
#define | DIP204_SPI_MOSI_FUNCTION AVR32_SPI1_MOSI_0_0_FUNCTION |
#define | DIP204_SPI_NPCS_PIN AVR32_SPI1_NPCS_2_0_PIN |
#define | DIP204_SPI_NPCS_FUNCTION AVR32_SPI1_NPCS_2_0_FUNCTION |
GPIO and PWM Connections of the DIP204 LCD Backlight | |
#define | DIP204_BACKLIGHT_PIN AVR32_PIN_PB18 |
#define | DIP204_PWM_CHANNEL 6 |
#define | DIP204_PWM_PIN AVR32_PWM_6_PIN |
#define | DIP204_PWM_FUNCTION AVR32_PWM_6_FUNCTION |
SPI Connections of the AT45DBX Data Flash Memory | |
#define | AT45DBX_SPI (&AVR32_SPI1) |
#define | AT45DBX_SPI_NPCS 0 |
#define | AT45DBX_SPI_SCK_PIN AVR32_SPI1_SCK_0_0_PIN |
#define | AT45DBX_SPI_SCK_FUNCTION AVR32_SPI1_SCK_0_0_FUNCTION |
#define | AT45DBX_SPI_MISO_PIN AVR32_SPI1_MISO_0_0_PIN |
#define | AT45DBX_SPI_MISO_FUNCTION AVR32_SPI1_MISO_0_0_FUNCTION |
#define | AT45DBX_SPI_MOSI_PIN AVR32_SPI1_MOSI_0_0_PIN |
#define | AT45DBX_SPI_MOSI_FUNCTION AVR32_SPI1_MOSI_0_0_FUNCTION |
#define | AT45DBX_SPI_NPCS0_PIN AVR32_SPI1_NPCS_0_0_PIN |
#define | AT45DBX_SPI_NPCS0_FUNCTION AVR32_SPI1_NPCS_0_0_FUNCTION |
MACB connections to the DP83848 external phy controller | |
#define | MACB_INTERRUPT_PIN AVR32_PIN_PA24 |
GPIO connection of the MAC PHY PWR_DOWN/INT signal for the external phy controller. More... | |
#define | EXTPHY_MACB_INTERRUPT_PIN MACB_INTERRUPT_PIN |
#define | EXTPHY_MACB (&AVR32_MACB) |
#define | EXTPHY_MACB_MDC_PIN AVR32_MACB_MDC_0_PIN |
#define | EXTPHY_MACB_MDC_FUNCTION AVR32_MACB_MDC_0_FUNCTION |
#define | EXTPHY_MACB_MDIO_PIN AVR32_MACB_MDIO_0_PIN |
#define | EXTPHY_MACB_MDIO_FUNCTION AVR32_MACB_MDIO_0_FUNCTION |
#define | EXTPHY_MACB_RXD_0_PIN AVR32_MACB_RXD_0_PIN |
#define | EXTPHY_MACB_RXD_0_FUNCTION AVR32_MACB_RXD_0_FUNCTION |
#define | EXTPHY_MACB_RXD_1_PIN AVR32_MACB_RXD_1_PIN |
#define | EXTPHY_MACB_RXD_1_FUNCTION AVR32_MACB_RXD_1_FUNCTION |
#define | EXTPHY_MACB_TXD_0_PIN AVR32_MACB_TXD_0_PIN |
#define | EXTPHY_MACB_TXD_0_FUNCTION AVR32_MACB_TXD_0_FUNCTION |
#define | EXTPHY_MACB_TXD_1_PIN AVR32_MACB_TXD_1_PIN |
#define | EXTPHY_MACB_TXD_1_FUNCTION AVR32_MACB_TXD_1_FUNCTION |
#define | EXTPHY_MACB_TX_EN_PIN AVR32_MACB_TX_EN_0_PIN |
#define | EXTPHY_MACB_TX_EN_FUNCTION AVR32_MACB_TX_EN_0_FUNCTION |
#define | EXTPHY_MACB_RX_ER_PIN AVR32_MACB_RX_ER_0_PIN |
#define | EXTPHY_MACB_RX_ER_FUNCTION AVR32_MACB_RX_ER_0_FUNCTION |
#define | EXTPHY_MACB_RX_DV_PIN AVR32_MACB_RX_DV_0_PIN |
#define | EXTPHY_MACB_RX_DV_FUNCTION AVR32_MACB_RX_DV_0_FUNCTION |
#define | EXTPHY_MACB_TX_CLK_PIN AVR32_MACB_TX_CLK_0_PIN |
#define | EXTPHY_MACB_TX_CLK_FUNCTION AVR32_MACB_TX_CLK_0_FUNCTION |
#define | EXTPHY_PHY_ADDR 0x01 |
Phy Address (set through strap options) More... | |
#define | PHY_DP83848 |
Configure the ethernet phy component to use the DP83848 phy. More... | |
#define AT45DBX_SPI (&AVR32_SPI1) |
#define AT45DBX_SPI_MISO_FUNCTION AVR32_SPI1_MISO_0_0_FUNCTION |
#define AT45DBX_SPI_MISO_PIN AVR32_SPI1_MISO_0_0_PIN |
#define AT45DBX_SPI_MOSI_FUNCTION AVR32_SPI1_MOSI_0_0_FUNCTION |
#define AT45DBX_SPI_MOSI_PIN AVR32_SPI1_MOSI_0_0_PIN |
#define AT45DBX_SPI_NPCS 0 |
#define AT45DBX_SPI_NPCS0_FUNCTION AVR32_SPI1_NPCS_0_0_FUNCTION |
#define AT45DBX_SPI_NPCS0_PIN AVR32_SPI1_NPCS_0_0_PIN |
#define AT45DBX_SPI_SCK_FUNCTION AVR32_SPI1_SCK_0_0_FUNCTION |
#define AT45DBX_SPI_SCK_PIN AVR32_SPI1_SCK_0_0_PIN |
#define DIP204_BACKLIGHT_PIN AVR32_PIN_PB18 |
#define DIP204_PWM_CHANNEL 6 |
#define DIP204_PWM_FUNCTION AVR32_PWM_6_FUNCTION |
#define DIP204_PWM_PIN AVR32_PWM_6_PIN |
#define DIP204_SPI (&AVR32_SPI1) |
#define DIP204_SPI_MISO_FUNCTION AVR32_SPI1_MISO_0_0_FUNCTION |
#define DIP204_SPI_MISO_PIN AVR32_SPI1_MISO_0_0_PIN |
#define DIP204_SPI_MOSI_FUNCTION AVR32_SPI1_MOSI_0_0_FUNCTION |
#define DIP204_SPI_MOSI_PIN AVR32_SPI1_MOSI_0_0_PIN |
#define DIP204_SPI_NPCS 2 |
#define DIP204_SPI_NPCS_FUNCTION AVR32_SPI1_NPCS_2_0_FUNCTION |
#define DIP204_SPI_NPCS_PIN AVR32_SPI1_NPCS_2_0_PIN |
#define DIP204_SPI_SCK_FUNCTION AVR32_SPI1_SCK_0_0_FUNCTION |
#define DIP204_SPI_SCK_PIN AVR32_SPI1_SCK_0_0_PIN |
#define EXTPHY_MACB (&AVR32_MACB) |
#define EXTPHY_MACB_INTERRUPT_PIN MACB_INTERRUPT_PIN |
#define EXTPHY_MACB_MDC_FUNCTION AVR32_MACB_MDC_0_FUNCTION |
#define EXTPHY_MACB_MDC_PIN AVR32_MACB_MDC_0_PIN |
#define EXTPHY_MACB_MDIO_FUNCTION AVR32_MACB_MDIO_0_FUNCTION |
#define EXTPHY_MACB_MDIO_PIN AVR32_MACB_MDIO_0_PIN |
#define EXTPHY_MACB_RX_DV_FUNCTION AVR32_MACB_RX_DV_0_FUNCTION |
#define EXTPHY_MACB_RX_DV_PIN AVR32_MACB_RX_DV_0_PIN |
#define EXTPHY_MACB_RX_ER_FUNCTION AVR32_MACB_RX_ER_0_FUNCTION |
#define EXTPHY_MACB_RX_ER_PIN AVR32_MACB_RX_ER_0_PIN |
#define EXTPHY_MACB_RXD_0_FUNCTION AVR32_MACB_RXD_0_FUNCTION |
#define EXTPHY_MACB_RXD_0_PIN AVR32_MACB_RXD_0_PIN |
#define EXTPHY_MACB_RXD_1_FUNCTION AVR32_MACB_RXD_1_FUNCTION |
#define EXTPHY_MACB_RXD_1_PIN AVR32_MACB_RXD_1_PIN |
#define EXTPHY_MACB_TX_CLK_FUNCTION AVR32_MACB_TX_CLK_0_FUNCTION |
#define EXTPHY_MACB_TX_CLK_PIN AVR32_MACB_TX_CLK_0_PIN |
#define EXTPHY_MACB_TX_EN_FUNCTION AVR32_MACB_TX_EN_0_FUNCTION |
#define EXTPHY_MACB_TX_EN_PIN AVR32_MACB_TX_EN_0_PIN |
#define EXTPHY_MACB_TXD_0_FUNCTION AVR32_MACB_TXD_0_FUNCTION |
#define EXTPHY_MACB_TXD_0_PIN AVR32_MACB_TXD_0_PIN |
#define EXTPHY_MACB_TXD_1_FUNCTION AVR32_MACB_TXD_1_FUNCTION |
#define EXTPHY_MACB_TXD_1_PIN AVR32_MACB_TXD_1_PIN |
#define EXTPHY_PHY_ADDR 0x01 |
Phy Address (set through strap options)
#define FOSC0 12000000 |
Osc0 frequency: Hz.
#define FOSC32 32768 |
Osc32 frequency: Hz.
#define GPIO_PUSH_BUTTON_SW0 AVR32_PIN_PB24 |
#define GPIO_PUSH_BUTTON_SW0_PRESSED 0 |
#define GPIO_PUSH_BUTTON_SW1 AVR32_PIN_PB25 |
#define GPIO_PUSH_BUTTON_SW1_PRESSED 0 |
#define GPIO_PUSH_BUTTON_SW2 AVR32_PIN_PB26 |
#define GPIO_PUSH_BUTTON_SW2_PRESSED 0 |
#define GPIO_PUSH_BUTTON_SW3 AVR32_PIN_PB27 |
#define GPIO_PUSH_BUTTON_SW3_PRESSED 0 |
#define GPIO_PUSH_BUTTON_SW4 AVR32_PIN_PB28 |
#define GPIO_PUSH_BUTTON_SW4_PRESSED 0 |
#define GPIO_PUSH_BUTTON_SW5 AVR32_PIN_PB29 |
#define GPIO_PUSH_BUTTON_SW5_PRESSED 0 |
#define GPIO_PUSH_BUTTON_SW6 AVR32_PIN_PB30 |
#define GPIO_PUSH_BUTTON_SW6_PRESSED 0 |
#define GPIO_PUSH_BUTTON_SW7 AVR32_PIN_PB31 |
#define GPIO_PUSH_BUTTON_SW7_PRESSED 0 |
#define LED0_GPIO AVR32_PIN_PB08 |
#define LED1_GPIO AVR32_PIN_PB09 |
#define LED2_GPIO AVR32_PIN_PB10 |
#define LED3_GPIO AVR32_PIN_PB11 |
#define LED4_GPIO AVR32_PIN_PB12 |
#define LED5_GPIO AVR32_PIN_PB13 |
#define LED6_GPIO AVR32_PIN_PB14 |
#define LED7_GPIO AVR32_PIN_PB15 |
#define LED_COUNT 8 |
Number of LEDs.
#define MACB_INTERRUPT_PIN AVR32_PIN_PA24 |
GPIO connection of the MAC PHY PWR_DOWN/INT signal for the external phy controller.
#define OSC0_STARTUP AVR32_PM_OSCCTRL0_STARTUP_2048_RCOSC |
Osc0 startup time: RCOsc periods.
#define OSC32_STARTUP AVR32_PM_OSCCTRL32_STARTUP_8192_RCOSC |
Osc32 startup time: RCOsc periods.
#define PHY_DP83848 |
Configure the ethernet phy component to use the DP83848 phy.
#define SDRAM_DBW 16 |
Data bus width to use the SDRAM(s) with (16 or 32 bits; always 16 bits on UC3).
#define SDRAM_PART_HDR "mt48lc16m16a2tg7e/mt48lc16m16a2tg7e.h" |
Part header file of used SDRAM(s).