Run LED-Matrix on MC Platform

If you have a simple question and just want an answer.
User avatar
xaerox
Active Member
Posts: 43
Joined: Thu Apr 30, 2015 6:12 pm

Run LED-Matrix on MC Platform

Post by xaerox »

Hello everybody,
I have the following problem, checking out the code for driving the LED-Matrix on Multichannel Audio Platform which I dont understand.

Looking at the Hardware Manual the LEDs are connected to the Ports X1D14...X1D21 which means the 8-Bit Ports "XS1_PORT_8B" in my xn-File.
Looking into the XN-File, I'll find the line

Code: Select all

            <Port Location="XS1_PORT_8B"  Name="PORT_USB_RXD"/>
In the customdefines I also see, that the USB-Tile is on Tile 1

Code: Select all

#define XUD_TILE 1
Up to here it means, the LEDs are connected to USB RXD hardly.

After using the searching function by searching "PORT_USB_RXD" if found an entry in "xud.h"

Code: Select all

    #define PORT_USB_RXD         on USB_TILE: XS1_PORT_8C
where USB_TILE is defined here:

Code: Select all

#if !defined(USB_TILE)
  #define USB_TILE tile[0]
#endif
and nowhere before.
That means the USB_TILE is on Tile 0 instead of Tile 1 which is defined in the application.

My Question is: Where is the USB-Tile really now? And where can I see the GPIO-Ports, where the LED-Matrix is connected? Or the easier way: where can I drive the LEDs?

I will thank you for your answers.

kind regards
Thomas.
User avatar
mon2
XCore Legend
Posts: 1913
Joined: Thu Jun 10, 2010 11:43 am

Post by mon2 »

User avatar
xaerox
Active Member
Posts: 43
Joined: Thu Apr 30, 2015 6:12 pm

Post by xaerox »

Oh I didn't see that. Thank you!
User avatar
infiniteimprobability
Verified
XCore Legend
Posts: 1171
Joined: Thu May 27, 2010 10:08 am

Post by infiniteimprobability »

And another one... If you want a simple server that scans and allows individually addressable LEDs.
It uses a while(1) select task running on a logical core, but is combinable so can share that core with other non-critical stuff..

http://www.xcore.com/forum/viewtopic.ph ... led+matrix
User avatar
xaerox
Active Member
Posts: 43
Joined: Thu Apr 30, 2015 6:12 pm

Post by xaerox »

Ah thank you. That I need finally. I tried it solving with sending binary formats/bits with masking.

An it doesn't matter, that the Port is connected to a Pin, where the Port for USB is defined?

kind regards
Thomas