STK600 with the RCUC3B0 routing card header file.
This file contains definitions and services related to the features of the STK600 board with RCUC3B0 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_UC3B0.
Copyright (c) 2011-2018 Microchip Technology Inc. and its subsidiaries.
Macros | |
#define | LED_COUNT 4 |
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... | |
GPIO Connections of LEDs. To use these defines, connect the STK600 PORTA | |
PB08-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 |
SPI Connections of the AT45DBX Data Flash Memory | |
#define | AT45DBX_SPI (&AVR32_SPI) |
#define | AT45DBX_SPI_NPCS 0 |
#define | AT45DBX_SPI_SCK_PIN AVR32_SPI_SCK_0_0_PIN |
#define | AT45DBX_SPI_SCK_FUNCTION AVR32_SPI_SCK_0_0_FUNCTION |
#define | AT45DBX_SPI_MISO_PIN AVR32_SPI_MISO_0_0_PIN |
#define | AT45DBX_SPI_MISO_FUNCTION AVR32_SPI_MISO_0_0_FUNCTION |
#define | AT45DBX_SPI_MOSI_PIN AVR32_SPI_MOSI_0_0_PIN |
#define | AT45DBX_SPI_MOSI_FUNCTION AVR32_SPI_MOSI_0_0_FUNCTION |
#define | AT45DBX_SPI_NPCS0_PIN AVR32_SPI_NPCS_0_0_PIN |
#define | AT45DBX_SPI_NPCS0_FUNCTION AVR32_SPI_NPCS_0_0_FUNCTION |
#define AT45DBX_SPI (&AVR32_SPI) |
#define AT45DBX_SPI_MISO_FUNCTION AVR32_SPI_MISO_0_0_FUNCTION |
#define AT45DBX_SPI_MISO_PIN AVR32_SPI_MISO_0_0_PIN |
#define AT45DBX_SPI_MOSI_FUNCTION AVR32_SPI_MOSI_0_0_FUNCTION |
#define AT45DBX_SPI_MOSI_PIN AVR32_SPI_MOSI_0_0_PIN |
#define AT45DBX_SPI_NPCS 0 |
#define AT45DBX_SPI_NPCS0_FUNCTION AVR32_SPI_NPCS_0_0_FUNCTION |
#define AT45DBX_SPI_NPCS0_PIN AVR32_SPI_NPCS_0_0_PIN |
#define AT45DBX_SPI_SCK_FUNCTION AVR32_SPI_SCK_0_0_FUNCTION |
#define AT45DBX_SPI_SCK_PIN AVR32_SPI_SCK_0_0_PIN |
#define FOSC0 12000000 |
Osc0 frequency: Hz.
#define FOSC32 32768 |
Osc32 frequency: Hz.
#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 LED_COUNT 4 |
Number of LEDs.
#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.