Hello
Posted: Sun Nov 20, 2016 4:19 am
Hello
Just bought me a https://www.xmos.com/support/boards?product=18334 .. and this forum seemed to be not a bad place .. so signed up for it.
I don't understand fuck of it all, but at least I've got me some nicely blinking LEDs on it now - after all it's Christmas soon :-)
Hmm .. can't find any code tag things .. ok .. as text then :
-- -- -- --
#include <platform.h>
#include <xs1.h>
#include <timer.h>
on tile [ 1] : out port row = XS1_PORT_4C;
on tile [ 1] : out port col = XS1_PORT_4D;
#define TIME 1
int seed = 123874;
int random_or_maybe_not_so( void)
{
seed = ( seed * 1108122346 + 12543) >> ((( seed & 1) == 1) * ( seed & 0x0f));
return seed;
}
void task( void)
{
int i = 0;
int c = 0;
int r = 0;
int p;
while( 1)
{
col <: ( c & ( i * 13)) & 0x0f;
row <: ( r | ( i * 37)) & 0x0f;
p = ( random_or_maybe_not_so() & 0x7f) + 1;
delay_milliseconds( TIME * p);
row <: ~ r;
p = ( random_or_maybe_not_so() & 0x7f) + 1;
delay_milliseconds( TIME * p);
if(( i % 5) == 0)
{
c ++;
}
if(( i % 11) == 0 )
{
r ++;
}
if(( i % 17) == 0 )
{
r >>= 1;
}
if(( i % 131) == 0 )
{
c >>= 1;
}
i ++;
}
}
int main( void)
{
par
{
on tile [ 1] : task();
}
return 0;
}
-- -- -- --
Still here? great! What I would like to accomplish is something like the Windows modular soft synth I've made : http://bluehell.electro-music.com/modules/index.php but the architecture is a bit strange to me and so is the platform support right now .. for one there are libs and modules .. I've found some xmos based synthesizer software needing modules that I do not seem to have (for i2s), but that was for another platform .. puzzles . but that's ok.
After receiving the the evaluation kit the first thing I did was to break the debug thingie, the USB connector on it was soldered badly and broke off immediately ... had that fixed at work .. some golden hands there, myself I'm too bad sighted to fix stuff like that .. anyways . .this is not a work thing for me but a hobby.
Jan.
Just bought me a https://www.xmos.com/support/boards?product=18334 .. and this forum seemed to be not a bad place .. so signed up for it.
I don't understand fuck of it all, but at least I've got me some nicely blinking LEDs on it now - after all it's Christmas soon :-)
Hmm .. can't find any code tag things .. ok .. as text then :
-- -- -- --
#include <platform.h>
#include <xs1.h>
#include <timer.h>
on tile [ 1] : out port row = XS1_PORT_4C;
on tile [ 1] : out port col = XS1_PORT_4D;
#define TIME 1
int seed = 123874;
int random_or_maybe_not_so( void)
{
seed = ( seed * 1108122346 + 12543) >> ((( seed & 1) == 1) * ( seed & 0x0f));
return seed;
}
void task( void)
{
int i = 0;
int c = 0;
int r = 0;
int p;
while( 1)
{
col <: ( c & ( i * 13)) & 0x0f;
row <: ( r | ( i * 37)) & 0x0f;
p = ( random_or_maybe_not_so() & 0x7f) + 1;
delay_milliseconds( TIME * p);
row <: ~ r;
p = ( random_or_maybe_not_so() & 0x7f) + 1;
delay_milliseconds( TIME * p);
if(( i % 5) == 0)
{
c ++;
}
if(( i % 11) == 0 )
{
r ++;
}
if(( i % 17) == 0 )
{
r >>= 1;
}
if(( i % 131) == 0 )
{
c >>= 1;
}
i ++;
}
}
int main( void)
{
par
{
on tile [ 1] : task();
}
return 0;
}
-- -- -- --
Still here? great! What I would like to accomplish is something like the Windows modular soft synth I've made : http://bluehell.electro-music.com/modules/index.php but the architecture is a bit strange to me and so is the platform support right now .. for one there are libs and modules .. I've found some xmos based synthesizer software needing modules that I do not seem to have (for i2s), but that was for another platform .. puzzles . but that's ok.
After receiving the the evaluation kit the first thing I did was to break the debug thingie, the USB connector on it was soldered badly and broke off immediately ... had that fixed at work .. some golden hands there, myself I'm too bad sighted to fix stuff like that .. anyways . .this is not a work thing for me but a hobby.
Jan.