Hi,
I am just trying to get the 4x4 LED array on this dev board to light up. I don't see anything wrong with the simple few lines of code attached - does anyone know why the LED's arent responding? Thanks!
Simple LED toggle won't work: xCore 200 MC (Multi Channel Au Topic is solved
-
- New User
- Posts: 3
- Joined: Tue Sep 29, 2015 11:45 pm
Simple LED toggle won't work: xCore 200 MC (Multi Channel Au
You do not have the required permissions to view the files attached to this post.
View Solution
-
- Member++
- Posts: 21
- Joined: Mon Dec 16, 2013 1:27 pm
Hi, could you please write all '0' s on rows and '1's on columns for all the leds to glow? On xcore-200-MC board rows of led matrix are active low and columns are active high. Please check the schematics for more information.
Thanks,
Vineela.
Thanks,
Vineela.
-
- XCore Legend
- Posts: 1913
- Joined: Thu Jun 10, 2010 11:43 am
Try again but with the following declaration for the ports:
and your revised code:
printstrln("toggle!");
p_leds_row <: (unsigned) (0x0);
p_leds_col <: (unsigned) (0xF);
while(1);
From the user manual schematics for this development board, the LED matrix is bonded to Tile[1] GPIO pins so this detail must be manually declared otherwise you are tickling the wrong set of GPIO pins which are on Tile[0]. Been there, done that :)
Code: Select all
/* LED grid port */
on tile[1] : out port p_leds_row = XS1_PORT_4C;
on tile[1] : out port p_leds_col = XS1_PORT_4D;
and your revised code:
printstrln("toggle!");
p_leds_row <: (unsigned) (0x0);
p_leds_col <: (unsigned) (0xF);
while(1);
From the user manual schematics for this development board, the LED matrix is bonded to Tile[1] GPIO pins so this detail must be manually declared otherwise you are tickling the wrong set of GPIO pins which are on Tile[0]. Been there, done that :)
Last edited by mon2 on Mon Oct 05, 2015 7:59 pm, edited 1 time in total.