XHRA-2HPA-TQ64 - Events for GPI pins? How to use them even?

Technical discussions around xCORE processors (e.g. xcore-200 & xcore.ai).
smiba
Member++
Posts: 22
Joined: Sat Nov 05, 2016 2:22 am

XHRA-2HPA-TQ64 - Events for GPI pins? How to use them even?

Post by smiba »

I feel like I'm overlooking something, but how do I actually make use of the GPI pins?

In my case I want to have a event where if GPI7 becomes high or low I can send some I2C commands.

As GPI6/7 are not used by the HID feature, there should be a way to use them right? I don't understand why they're there if they coudn't be used?

Kind regards,


smiba
Member++
Posts: 22
Joined: Sat Nov 05, 2016 2:22 am

Post by smiba »

Anyone? Maybe I missed something but I can't seem to find any additional information on it in the datasheet
User avatar
Caleb
Experienced Member
Posts: 82
Joined: Thu Apr 04, 2013 10:14 pm
Contact:

Post by Caleb »

You will need to study and cross-reference many docs (least often I reference the IC datasheet):
http://www.xmos.com/download/private/Pr ... ces(1).pdf
http://www.xmos.com/download/private/XC ... -M%5d).pdf
https://www.xmos.com/download/private/X ... 65A%29.pdf
https://www.xmos.com/download/private/X ... .02%29.pdf
http://www.xmos.com/download/private/Pr ... ces(1).pdf
https://www.xmos.com/download/private/X ... on)(E).pdf

You'lll need to copy and paste the entire link. Somehow this editor / message display doesn't create complete links.
User avatar
Caleb
Experienced Member
Posts: 82
Joined: Thu Apr 04, 2013 10:14 pm
Contact:

Post by Caleb »

Perhaps I don't understand what you're looking for but maybe this is a useful example.

An example snip of code from a homemade UART - enough to get you going. A change of data on the port begins execution of the blocked thread. The case begins execution when data is different from the current value and then stores the new value.

(various includes needed)
on stdcore[ 1 ] : buffered in port:4 p_uart_rx = XS1_PORT_4D;
...

void my_function( void )
{
unsigned uart_rx_data = 0;

while ( 1 )
{
select
{
case p_uart_rx when pinsneq( uart_rx_data ) :> uart_rx_data:
...
break;
...

}
}

}
smiba
Member++
Posts: 22
Joined: Sat Nov 05, 2016 2:22 am

Post by smiba »

I don't think the XHRA-2HPA supports running self compiled code, only its encrypted firmware with a modifiable configuration.

I could be wrong though?
User avatar
Caleb
Experienced Member
Posts: 82
Joined: Thu Apr 04, 2013 10:14 pm
Contact:

Post by Caleb »

Ah - sorry my stupid reading; yes I felt like there must be something I was missing in your question - sorry.
smiba
Member++
Posts: 22
Joined: Sat Nov 05, 2016 2:22 am

Post by smiba »

No problem, it happens

Thanks though
User avatar
Caleb
Experienced Member
Posts: 82
Joined: Thu Apr 04, 2013 10:14 pm
Contact:

Post by Caleb »

We'd considered using this part for a product and then thought otherwise. I think it's pin-compatible with a regular programmable part right? - that costs less. I studied the configuration documents for the canned-program part and it seemed to be complicated-enough, enough of a learning curve (and fear of too many limitations) that we decided to use the programmable part. Of course perspectives are different; I've already made several products based on the XMOS USB audio reference software. But it really is easy to get it going. If the programmable chip is pin-compatible then you could give it a try on your PCB and fall back on the canned chip if necessary.
We were wondering also if it's really just the same chip with a different datasheet.
User avatar
mon2
XCore Legend
Posts: 1913
Joined: Thu Jun 10, 2010 11:43 am
Contact:

Post by mon2 »

No, the pinout appears to be unique. Orginally thought to use JTAG interface with this controller to reach out to the blank flash devices for programming but no such luck. No documented JTAG on this device and the pinouts do not match those of other programmable devices. None that we could find to date.
User avatar
Caleb
Experienced Member
Posts: 82
Joined: Thu Apr 04, 2013 10:14 pm
Contact:

Post by Caleb »

Not the XU208-256-TQ64 ? (or XU208-128-TQ64)
Post Reply