Filip Posted September 6, 2015 Report Share Posted September 6, 2015 Hello, at last I have time to play with FPGAs .. I wanted to connect arduinos trough serial to the Duo which then talks to the PC. I used the DesignLab example for "Multiple serial ports " and looked also in http://gadgetfactory.net/learn/2013/11/15/papilio-schematic-library-10-serial-ports/ the Duo can talk to itself via the UARTS , but when I connect an Arduino (to uart 1 or change the code ..)there is no communication. I have only one Duo can someone else test ? Ediit :int inByte = 4;Serial1.write(inByte);Serial write works only with a constant , but print does not work at all. thanks,Filip Quote Link to comment Share on other sites More sharing options...
Jack Gassett Posted September 7, 2015 Report Share Posted September 7, 2015 It's easy to get the pins backwards, maybe try the other pin? Jack. Quote Link to comment Share on other sites More sharing options...
Filip Posted September 8, 2015 Author Report Share Posted September 8, 2015 Hey Jack, rx,tx were on the right pins ... but : 1. in arduino - one can write "if (Serial.available() >= 2)" , for the ZPUno the available() function is only showing if only one byte has arrived. (this is not documented). That is because the Fifo has only signals for full or empty. When I find time I will try to change that. 2. the 5V tolerant pins produced much interference to the data (first I tried them), and some weird error that I had to reset the FPGA by Hand after power up. 3. with pins 22,23 .... I managed the connections, but due to much interference and not a proper shielded cable I gave up on this Idea. The problem was I can not trust the data and have to implement some checksum . Maybe the UART is also too sensitive ? .. Filip Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.