{"id":587,"date":"2014-12-19T12:10:12","date_gmt":"2014-12-19T12:10:12","guid":{"rendered":"https:\/\/ibex.tech\/embedded\/?p=587"},"modified":"2022-02-18T15:37:49","modified_gmt":"2022-02-18T15:37:49","slug":"non-interrupt-spi","status":"publish","type":"post","link":"https:\/\/ibex.tech\/embedded\/microchip\/pic32\/xc32-v2-old\/spi-xc32\/non-interrupt-spi","title":{"rendered":"Non interrupt SPI"},"content":{"rendered":"<h4>\nSimple Example<br \/>\n<\/h4>\n<pre>\r\n<code>\r\n\tWORD rx_data;\r\n\r\n\tSpiChnOpen(2, (SPI_CON_MSTEN | SPI_CON_MODE8 | SPI_CKE_ON), 10);    \/\/20MHz fpb \/ 10 = 2MHz.  Clock idles low, SDO changes on falling edge of clock\r\n\r\n\tDAC_CS(0);\r\n\tSpiChnPutC(2, (int)(0xff));\r\n\trx_data = SpiChnGetC(2);\r\n\tDAC_CS(1);\r\n<\/code><\/pre>\n<p>\n&nbsp;\n<\/p>\n<p>\n&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Simple Example WORD rx_data; SpiChnOpen(2, (SPI_CON_MSTEN | SPI_CON_MODE8 | SPI_CKE_ON), 10); \/\/20MHz fpb \/ 10 = 2MHz. Clock idles low, SDO changes on falling edge of clock DAC_CS(0); SpiChnPutC(2, (int)(0xff)); rx_data = SpiChnGetC(2); DAC_CS(1); &nbsp; &nbsp;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[57],"tags":[],"class_list":["post-587","post","type-post","status-publish","format-standard","hentry","category-spi-xc32"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/embedded\/wp-json\/wp\/v2\/posts\/587","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibex.tech\/embedded\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibex.tech\/embedded\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibex.tech\/embedded\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ibex.tech\/embedded\/wp-json\/wp\/v2\/comments?post=587"}],"version-history":[{"count":1,"href":"https:\/\/ibex.tech\/embedded\/wp-json\/wp\/v2\/posts\/587\/revisions"}],"predecessor-version":[{"id":588,"href":"https:\/\/ibex.tech\/embedded\/wp-json\/wp\/v2\/posts\/587\/revisions\/588"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/embedded\/wp-json\/wp\/v2\/media?parent=587"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/embedded\/wp-json\/wp\/v2\/categories?post=587"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/embedded\/wp-json\/wp\/v2\/tags?post=587"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}