how to simulate a serialized output

New to XMOS and XCore? Get started here.
moh_algoblan
Member
Posts: 13
Joined: Tue Jun 18, 2019 11:39 am

how to simulate a serialized output

Postby moh_algoblan » Tue Jun 18, 2019 12:32 pm

Hi, I'm new to Xmos microcontrollers, I started reading the data sheet of xCORE-200 Series, and writing some basic codes. currently I'm working on a small project which consists of serializing data and then driving it to a port. so I tried to simulate one of the example called "How to serialize output data to a port" but the IDE stuck when I ran it. I tried it with my code and nothing changes, so I though there's another way to simulate a code that consists a buffered port.
the example:

Code: Select all

int main(void) {

  unsigned int x = 0xAA00FFFF;
  configure_clock_src(clk, inClock);
  configure_out_port(outP, clk, 0);
  start_clock(clk);
  while (1) {
    outP <: x;
    x = x + 1;
  }
  return 0;
}
User avatar
mon2
XCore Legend
Posts: 1514
Joined: Thu Jun 10, 2010 11:43 am

Postby mon2 » Tue Jun 18, 2019 1:59 pm

Hi and welcome.

Please review this webpage and documentation:

https://www.xmos.com/developer/publishe ... r-tutorial
moh_algoblan
Member
Posts: 13
Joined: Tue Jun 18, 2019 11:39 am

Postby moh_algoblan » Wed Jun 19, 2019 7:45 am

mon2 wrote:
Tue Jun 18, 2019 1:59 pm
Hi and welcome.

Please review this webpage and documentation:

https://www.xmos.com/developer/publishe ... r-tutorial
I built and ran the project as section 2.4 shows but nothing changes ...

Who is online

Users browsing this forum: No registered users and 0 guests