On using single bit and multi-bit ports
Posted: Fri Sep 24, 2021 4:06 pm
Hi there.
I am interested in an application where I need to control more single bit pins than are available on the Tiles. I have a few questions about the different ports.
1. Is there any reason for not using a 4bit or an 8bit port as if it was a single bit port? I.e. only routing one of the pins and only reading/writing to this particular pin?
2. Can I also pass a 4/8bit port to a e.g. the UART peripheral library which expects a single pin, and it will only drive the least significant bit of the port?
3. Is there any conflict in using both XS1_PORT_4A and XS1_PORT_1A at the same time? I.e. is the least significant bit of 4A the same pin as 1A)
Thanks for your help
I am interested in an application where I need to control more single bit pins than are available on the Tiles. I have a few questions about the different ports.
1. Is there any reason for not using a 4bit or an 8bit port as if it was a single bit port? I.e. only routing one of the pins and only reading/writing to this particular pin?
2. Can I also pass a 4/8bit port to a e.g. the UART peripheral library which expects a single pin, and it will only drive the least significant bit of the port?
3. Is there any conflict in using both XS1_PORT_4A and XS1_PORT_1A at the same time? I.e. is the least significant bit of 4A the same pin as 1A)
Thanks for your help