xc-1a port mapping

New to XMOS and XCore? Get started here.
Posts: 27
Joined: Fri Jan 06, 2012 3:55 pm

xc-1a port mapping

Postby aortiz557 » Wed Feb 01, 2012 9:21 am

So i've just started messing around with my xc-1a dev board, and i have become very confused with the port mapping. looking at the hardware manual, i see labels such as x3d0, or p1a0. in the programming tutorial, the example for an out port uses the label XS1_PORT_1a. what is the syntax for declaring out ports? if somebody could make an example just pushing out a 4 bit and then an 8 bit value to a port on the board, that would help immensely. also, one more thing. how does one specify which processor they are declaring the port on? - any help is appreciated , thanks.
Posts: 27
Joined: Fri Jan 06, 2012 3:55 pm

Postby aortiz557 » Thu Feb 02, 2012 5:55 am

aha! i found some documentation that i think answers my questions

"The port identifier XS1_PORT_1P refers to the XS1-architecture; a port that comprises
1 pins (the port width); and the P identifies the particular 1-bit wide port of
the processor. In assembly code this is translated into 0x00010F00, where the
01 is the port width, and 0F identifies the particular 1-bit wide port. Physically,
port 1P on the XS1 is connected to pin X0D39 where the 0 identifies the core
that the pin is connected to (core 0) and the digits are a logical pin number between
0 and 63 inclusive. The physical position of pin X0D39 on depends on the
packaging. A list of all ports and the mapping between pins and ports is listed in
Table 1 near the end of this document. The mapping of pins onto locations on
the package is provided in the data-sheet for your package."

This comes from the document:
https://www.xmos.com/download/public/XS ... 73A%29.pdf

i hope this helps anyone else who has been having the same problem.
User avatar
Respected Member
Posts: 298
Joined: Thu May 12, 2011 11:14 am

Postby phalt » Thu Feb 02, 2012 11:16 am

Thanks for posting a solution to your problem - I'm sure it will help people in the future as I've seen this question before!

Who is online

Users browsing this forum: No registered users and 4 guests