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

Technical discussions around xCORE processors (e.g. General Purpose (L/G), xCORE-USB, xCORE-Analog, xCORE-XA).
smiba
Member++
Posts: 18
Joined: Sat Nov 05, 2016 2:22 am

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

Postby smiba » Sun Apr 09, 2017 9:12 pm

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: 18
Joined: Sat Nov 05, 2016 2:22 am

Postby smiba » Tue Apr 11, 2017 1:47 pm

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

Postby Caleb » Tue Apr 11, 2017 10:48 pm

You will need to study and cross-reference many docs (least often I reference the IC datasheet):
http://www.xmos.com/download/private/Pr ... -Devices(1).pdf
http://www.xmos.com/download/private/XC ... -%5bY-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 ... -Devices(1).pdf
https://www.xmos.com/download/private/X ... umentation)(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
Active Member
Posts: 55
Joined: Thu Apr 04, 2013 10:14 pm
Contact:

Postby Caleb » Tue Apr 11, 2017 10:57 pm

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: 18
Joined: Sat Nov 05, 2016 2:22 am

Postby smiba » Wed Apr 12, 2017 12:27 am

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
Active Member
Posts: 55
Joined: Thu Apr 04, 2013 10:14 pm
Contact:

Postby Caleb » Wed Apr 12, 2017 9:26 pm

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

Postby smiba » Thu Apr 13, 2017 12:59 pm

No problem, it happens

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

Postby Caleb » Thu Apr 13, 2017 6:58 pm

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 Expert
Posts: 743
Joined: Thu Jun 10, 2010 11:43 am
Contact:

Postby mon2 » Thu Apr 13, 2017 9:57 pm

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
Active Member
Posts: 55
Joined: Thu Apr 04, 2013 10:14 pm
Contact:

Postby Caleb » Thu Apr 13, 2017 11:37 pm

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

Return to “Processors”

Who is online

Users browsing this forum: No registered users and 11 guests