XU208 questions about port usage
Posted: Thu May 03, 2018 1:25 pm
Hi,
I honestly don't have much previous C++ or xcore programming experience so everything is somewhat new to me, my bad if I ask a stupid question :)
Anyways, since the discontinuing of the XHRA-2HPA I've been working with the project to migrate this to a XU208-128-TQ64 and I feel like I'm getting close to having all my changes with the GPIO and I2C moved over.
There are just a few things I'm having some questions about that I can't figure out. Could anyone help me out?
1. In xhra_core.xn port "XS1_PORT_16B" is being used and named as "PORT_MCLK_COUNT". However port 1L, 1M, 1N, 1O and 1P are also being used while these overlap. Is this normal? What is the purpose of PORT_MCLK_COUNT?
2. in addition to the question above, would I be able to use XS1_PORT_4F, which also does overlap with XS1_PORT_16B? I would love having some more I/O Avaliable
3. Probably simple for those who know, but how do I make this device use UAC1 as fallback when a system doesn't support UAC2 (Especially windows XP/7/8 which do not include UAC2 drivers by default). In my XHRA-2HPA PCB setup I had a little switch users could flip to switch between those. Is the UAC code in this project smart enough to regognize when a device can support UAC2, if not, what would be the best way to read out the HIGH/LOW value of a pin on boot and changing UAC modes?
4. Is modifying the HIGH/LOW value of a 1-bit pin like this ok?:
Thank you in advance.
I honestly don't have much previous C++ or xcore programming experience so everything is somewhat new to me, my bad if I ask a stupid question :)
Anyways, since the discontinuing of the XHRA-2HPA I've been working with the project to migrate this to a XU208-128-TQ64 and I feel like I'm getting close to having all my changes with the GPIO and I2C moved over.
There are just a few things I'm having some questions about that I can't figure out. Could anyone help me out?
1. In xhra_core.xn port "XS1_PORT_16B" is being used and named as "PORT_MCLK_COUNT". However port 1L, 1M, 1N, 1O and 1P are also being used while these overlap. Is this normal? What is the purpose of PORT_MCLK_COUNT?
2. in addition to the question above, would I be able to use XS1_PORT_4F, which also does overlap with XS1_PORT_16B? I would love having some more I/O Avaliable
3. Probably simple for those who know, but how do I make this device use UAC1 as fallback when a system doesn't support UAC2 (Especially windows XP/7/8 which do not include UAC2 drivers by default). In my XHRA-2HPA PCB setup I had a little switch users could flip to switch between those. Is the UAC code in this project smart enough to regognize when a device can support UAC2, if not, what would be the best way to read out the HIGH/LOW value of a pin on boot and changing UAC modes?
4. Is modifying the HIGH/LOW value of a 1-bit pin like this ok?:
Code: Select all
out port p_gpo_stream_LED = on tile[0] : XS1_PORT_1D;
p_gpo_stream_LED <: 1;