{"id":380,"date":"2018-03-10T05:53:22","date_gmt":"2018-03-10T05:53:22","guid":{"rendered":"http:\/\/fpganow.com\/?p=380"},"modified":"2018-03-10T14:51:57","modified_gmt":"2018-03-10T14:51:57","slug":"i-need-uart","status":"publish","type":"post","link":"https:\/\/fpganow.com\/index.php\/2018\/03\/10\/i-need-uart\/","title":{"rendered":"I Need Uart"},"content":{"rendered":"<p>Before I go any further and start wiring up my code to use the lwIP on the embedded MicroBlaze, I will need some sort of better method of debugging.\u00a0 All code that I have implemented that uses a MicroBlaze processor via the Xilinx tools makes use of the UART to send and receive standard input and output.<\/p>\n<p>Right now I have been getting around this by writing values to the GPIO and to the host via a FIFO, but I do not want to have to recompile all of my code and move where I have wired the FIFO to for each test.\u00a0 This would result in very long compile-build-run-test cycles.\u00a0 Or to be more accurate, synthesize-build-&#8230; okay, you get the point.<\/p>\n<p>Anyway, I have just finished implementing a UART project that is able to receive the contents of a printf statement from the MicroBlaze in LabVIEW.\u00a0 I am using even parity, even though they say it is no required, 1 stop bit and 8 data bits, all at the 128,000 baud rate.<\/p>\n<p>I pushed my code to github, and am in the process of adding some printf statements to the main &#8211; large project &#8211; also known as &#8220;FPGANic&#8221;.<\/p>\n<p>So for now, see:<\/p>\n<p><a href=\"https:\/\/github.com\/JohnStratoudakis\/LabVIEW_Fpga\/tree\/master\/06_MicroBlaze\/05_UART\">https:\/\/github.com\/JohnStratoudakis\/LabVIEW_Fpga\/tree\/master\/06_MicroBlaze\/05_UART<\/a><\/p>\n<p>and stay tuned as I will be cleaning up this code and coming up with a better way of sending and receiving data inside the MicroBlaze.\u00a0 Perhaps I will make the entire thing &#8220;console&#8221; based, i.e. I send a command to the MicroBlaze via the UART, and the MicroBlaze will then create a UDP, send data, close a session, whatever I want!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Before I go any further and start wiring up my code to use the lwIP on the embedded MicroBlaze, I will need some sort of better method of debugging.\u00a0 All code that I have implemented that uses a MicroBlaze processor via the Xilinx tools makes use of the UART to send and receive standard input &#8230; <a title=\"I Need Uart\" class=\"read-more\" href=\"https:\/\/fpganow.com\/index.php\/2018\/03\/10\/i-need-uart\/\" aria-label=\"Read more about I Need Uart\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_coblocks_attr":"","_coblocks_dimensions":"","_coblocks_responsive_height":"","_coblocks_accordion_ie_support":"","footnotes":""},"categories":[8],"tags":[],"class_list":["post-380","post","type-post","status-publish","format-standard","hentry","category-microblaze","masonry-post","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-50"],"_links":{"self":[{"href":"https:\/\/fpganow.com\/index.php\/wp-json\/wp\/v2\/posts\/380","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fpganow.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fpganow.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fpganow.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fpganow.com\/index.php\/wp-json\/wp\/v2\/comments?post=380"}],"version-history":[{"count":2,"href":"https:\/\/fpganow.com\/index.php\/wp-json\/wp\/v2\/posts\/380\/revisions"}],"predecessor-version":[{"id":383,"href":"https:\/\/fpganow.com\/index.php\/wp-json\/wp\/v2\/posts\/380\/revisions\/383"}],"wp:attachment":[{"href":"https:\/\/fpganow.com\/index.php\/wp-json\/wp\/v2\/media?parent=380"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fpganow.com\/index.php\/wp-json\/wp\/v2\/categories?post=380"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fpganow.com\/index.php\/wp-json\/wp\/v2\/tags?post=380"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}