How to set drive strength of I/O pins for XU316 processors? Topic is solved

Technical questions regarding the XTC tools and programming with XMOS.
michaelf
Member
Posts: 8
Joined: Thu Mar 14, 2024 7:44 pm

How to set drive strength of I/O pins for XU316 processors?

Post by michaelf »

As far as I can see, my options would be to use the `setc` assembly instruction, or there seems to be numerous references to drive strength on this page: https://www.xmos.com/documentation/XM-0 ... 1-api.html

I'm not versed in assembly and haven't quite got my head around how to achieve this, having referenced the above materials and the XS3 architecture guide.

Can anyone give some example code of exactly how to set the drive strength of a pin?
View Solution
Joe
Verified
Experienced Member
Posts: 68
Joined: Sun Dec 13, 2009 1:12 am

Post by Joe »

Hi,

Thanks for the question. I've attached some sample code for configuring the pad settings for a given port on xcore.ai. Note all pins on a given port will be set the same. Each port can have its own setting.

The sample code drives a 10MHz clock on port 1A on tile 0 (X0D00).
port_pad_ctrl.xc
Cheers,
Joe
You do not have the required permissions to view the files attached to this post.
XMOS hardware grey beard.
michaelf
Member
Posts: 8
Joined: Thu Mar 14, 2024 7:44 pm

Post by michaelf »

Joe wrote: Thu Oct 10, 2024 6:57 pm Hi,

Thanks for the question. I've attached some sample code for configuring the pad settings for a given port on xcore.ai. Note all pins on a given port will be set the same. Each port can have its own setting.

The sample code drives a 10MHz clock on port 1A on tile 0 (X0D00).

port_pad_ctrl.xc

Cheers,
Joe
That's perfect, thanks for such a quick reply. I think it was the "pad" terminology that was throwing me when I was looking through all the #defines.