Search found 7 matches

by proiectsoftcontrol
Sun Oct 08, 2017 9:26 am
Forum: XMOS Devices
Topic: I/O Bi-directional port, SOLVED!
Replies: 10
Views: 10315

Re: I/O Bi-directional port

Thanks for infromations!!! SOLVED with other ports!!!
by proiectsoftcontrol
Sun Oct 08, 2017 7:51 am
Forum: XMOS Devices
Topic: I/O Bi-directional port, SOLVED!
Replies: 10
Views: 10315

Re: I/O Bi-directional port

Trying with XS1_PORT_8B works well...
by proiectsoftcontrol
Sun Oct 08, 2017 7:31 am
Forum: XMOS Devices
Topic: I/O Bi-directional port, SOLVED!
Replies: 10
Views: 10315

Re: I/O Bi-directional port

X0D06 and X0D07 have +2.28V, and other pins from XS1_PORT_8A have +3.33V. In schematic do not see other connection on XS1_PORT_8A!
by proiectsoftcontrol
Tue Oct 03, 2017 6:46 pm
Forum: XMOS Devices
Topic: I/O Bi-directional port, SOLVED!
Replies: 10
Views: 10315

Re: I/O Bi-directional port

Sorry for broken english and many informations, I use "GPIO-Slice" to STAR port connected, and I try without "GPIO-Slice" and I have problem with 0:X0D06, 0:X0D07 pins is always 0 logic, I put pull-up resistor to pin and nothing...
I'll try other ports!
by proiectsoftcontrol
Tue Oct 03, 2017 2:22 pm
Forum: XMOS Devices
Topic: I/O Bi-directional port, SOLVED!
Replies: 10
Views: 10315

Re: I/O Bi-directional port

This code it's ok!!! pin_test :> p_read; // pin possibly still high when you read it delay_microseconds(1); pin_test :> p_read; // pin probably valid now With 0x00 write to port LED ON, I can try step by step in debug mode and stop after write 0x00 to port and led turn ON. Now I see that is fine, bu...
by proiectsoftcontrol
Mon Oct 02, 2017 8:43 pm
Forum: XMOS Devices
Topic: I/O Bi-directional port, SOLVED!
Replies: 10
Views: 10315

Re: I/O Bi-directional port

I try next code and not work ok: #include <xs1.h> #include <platform.h> #include <gpio.h> on tile[0] : port pin_test = XS1_PORT_8A; uint8_t p_read; void Test(){ while(1){ pin_test <: 0x00;//Led ON (GPIO-Slice) delay_milliseconds(500); pin_test :> p_read; delay_milliseconds(500); } } int main() { par...
by proiectsoftcontrol
Mon Oct 02, 2017 2:03 pm
Forum: XMOS Devices
Topic: I/O Bi-directional port, SOLVED!
Replies: 10
Views: 10315

I/O Bi-directional port, SOLVED!

Hello, I have XP-SKC-L2 KIT, and I need 8bites (one port with 8bites) bi-directional example:
Put OUTPUT state this port and PORTX = any value, and after put INPUT state port and read data from this port. How it's possible???
Thanks in advance!
IMG-20170929-WA0007.jpeg
(1.88 MiB) Not downloaded yet
IMG-20170929-WA0007.jpeg
(1.88 MiB) Not downloaded yet