ΣSigmaStudio Ask AI Русский Log in

ADSP-21262 EZ-KIT: LED not blinking when writing to address 0x14000000

Processors & DSP Sugourna Mar 12, 2026 00:00 1 replies Original on forum ↗
Subscribe
Sugourna Question
Mar 12, 2026 00:00

Hello,

I am working with the ADSP-21262 SHARC Processor on the ADSP-21262 EZ-KIT Lite. I am trying to blink the LEDs using a simple C program in VisualDSP++.

According to the Peripherals and Evaluation System Manual, the LEDs are connected to the DSP through a latch on signals AD7–AD0.

From the manual:

LEDs can be accessed either by writing to the flag register or by writing to the memory address.

When LEDs are accessed as flag pins, the latch must be enabled.

The latch enable is controlled by position 6 of switch SW9.

If the latch is ON, the LEDs are controlled using the PPFLGS bit in the SYSCTL register.

If the latch is OFF (default), the LEDs can be controlled by writing to memory location 0x14000000.

The lower 8 bits of the data written to this address set the LED values (connected to AD7–AD0).

Since the latch is in the default OFF position, I tried controlling the LEDs using memory access.

Following is the code:

#include <def21262.h>

#define LED_ADDR 0x14000000

void delay(void)

{

int i;

for(i = 0; i < 1000000; i++);

}

int main(void)

{

volatile unsigned char *led = (unsigned char *)LED_ADDR;

while(1)

{

*led |= 0xFF; // LEDs ON

delay();

*led |= 0x00; // LEDs OFF

delay();

}

}

The program compiles and loads successfully, but the LEDs do not blink.

Could someone please clarify:

Is 0x14000000 the correct address for LED access when the latch is OFF?

Do I need to configure any external memory interface or registers before accessing this address?

21262

software

ADSP-21262 EZ-KIT Lite

processors and dsp

ez kit lite

adsp-21262

Processors and Microcontrollers

Led blinking

Show More

NandiniC Reply
Mar 13, 2026 00:00

Hi,

Please refer to the “EZ-KIT Push Button (C)” example code, which demonstrates how to use the push buttons on the board to blink the on-board LEDs.
Additionally, you can check the Power_On_Self_Test example in the same directory. In particular, please refer to the PBLED_test.c file. You may use this file as a reference and modify it according to your application requirements.
The example can be found at:
C:\Program Files (x86)\Analog Devices\VisualDSP 5.1.2\212xx\examples\ADSP-21262 EZ-KIT Lite

Regarding "Q2"
>>> There is no need to configure any external memory interface registers for this case.

Regards,
Nandini C