<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-9125312181721201439</id><updated>2020-08-12T10:57:06.189-03:00</updated><category term="Engenharia"/><category term="Automação"/><category term="Eletrônica"/><category term="PIC"/><category term="Linguagem C"/><category term="Tecnologia"/><category term="Microchip"/><category term="Aplicativos"/><category term="Robótica"/><category term="Utilidades"/><category term="Controle Remoto"/><category term="LCD"/><category term="PID"/><category term="Serial"/><category term="Bobagens"/><category term="Internet embarcada"/><category term="MOSFET"/><category term="Microsoft Tag"/><category term="PWM"/><category term="TCC"/><category term="TCP/IP"/><title type='text'>O blog do Marcelo</title><subtitle type='html'>Este Blog foi criado para compartilhar conhecimento, projetos eletrônicos e microcontrolados.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.marcelomaciel.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9125312181721201439/posts/default?max-results=3&amp;redirect=false'/><link rel='alternate' type='text/html' href='http://www.marcelomaciel.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/9125312181721201439/posts/default?start-index=4&amp;max-results=3&amp;redirect=false'/><author><name>Marcelo Maciel</name><uri>http://www.blogger.com/profile/13218035075532390512</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://1.bp.blogspot.com/-dTse92D2iPg/UUIE2LSQTYI/AAAAAAAABak/NacpBnV6yB4/s220/1268234745.2444.128757530.png'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>18</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>3</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-9125312181721201439.post-5389379636190955910</id><published>2013-03-30T20:10:00.000-03:00</published><updated>2013-03-30T20:13:57.838-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Eletrônica"/><category scheme="http://www.blogger.com/atom/ns#" term="Engenharia"/><category scheme="http://www.blogger.com/atom/ns#" term="LCD"/><category scheme="http://www.blogger.com/atom/ns#" term="Linguagem C"/><category scheme="http://www.blogger.com/atom/ns#" term="Microchip"/><category scheme="http://www.blogger.com/atom/ns#" term="PIC"/><category scheme="http://www.blogger.com/atom/ns#" term="Utilidades"/><title type='text'>LCD no PIC16F628a</title><content type='html'>&lt;div class=&quot;&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;a href=&quot;http://1.bp.blogspot.com/-n8moPCaK2ck/UVDfi07RY2I/AAAAAAAABgM/X1MAHOTOsKQ/s1600/lcd+pic16f628a.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;200&quot; src=&quot;http://1.bp.blogspot.com/-n8moPCaK2ck/UVDfi07RY2I/AAAAAAAABgM/X1MAHOTOsKQ/s200/lcd+pic16f628a.jpg&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;A&lt;/span&gt;tendendo à pedidos de leitores do blog vou mostrar como é realizada a configuração da biblioteca Display LCD para funcionar em um PIC16F628a. &amp;nbsp;Todo o funcionamento da biblioteca assim como sua construção pode ser vista no primeiro post -&amp;nbsp;&lt;a href=&quot;http://www.marcelomaciel.com/2012/03/configuracao-display-lcd-no-pic.html&quot; target=&quot;_blank&quot;&gt;Conectando um display LCD no PIC&lt;/a&gt;.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Para visualizar o resultado vamos simular o circuito com a utilização do Software Proteus Isis. Em primeiro lugar montamos o circuito eletrônico &amp;nbsp;dentro do Proteus Isis conforme a figura abaixo:&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://4.bp.blogspot.com/-EH3wH0vzbt0/UVdl-GaWBOI/AAAAAAAABnk/ZQhHlTZp4bQ/s1600/ScreenHunter_44.bmp&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;394&quot; src=&quot;http://4.bp.blogspot.com/-EH3wH0vzbt0/UVdl-GaWBOI/AAAAAAAABnk/ZQhHlTZp4bQ/s640/ScreenHunter_44.bmp&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Agora vamos criar o software do projeto, para isso vamos utilizar a IDE Mplab da Microchip e o compilador CCS já que o programa será escrito em linguagem C.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Com a IDE Mplab aberta escolhemos a opção &quot;Project&quot;e, em seguida, &quot;Project Wizard&quot;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://2.bp.blogspot.com/-WHubl1vNdgw/UVcnGibxH6I/AAAAAAAABmE/0Mg7-uz8m4w/s1600/ScreenHunter_32.bmp&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;243&quot; src=&quot;http://2.bp.blogspot.com/-WHubl1vNdgw/UVcnGibxH6I/AAAAAAAABmE/0Mg7-uz8m4w/s320/ScreenHunter_32.bmp&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;É aberta a interface de configuração do projeto, na primeira tela clicamos em &quot;avançar&quot;;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/-Lo50qA_zVB8/UVcnrF9Yd9I/AAAAAAAABmc/44ZJ2hKvq2c/s1600/ScreenHunter_33.bmp&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;248&quot; src=&quot;http://3.bp.blogspot.com/-Lo50qA_zVB8/UVcnrF9Yd9I/AAAAAAAABmc/44ZJ2hKvq2c/s320/ScreenHunter_33.bmp&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;No primeiro passo escolhemos o modelo do microcontrolador, neste caso o PIC 16F628a;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://4.bp.blogspot.com/-iUlrY52RAtY/UVcnpeL3GaI/AAAAAAAABmM/vTNnFXJVjS8/s1600/ScreenHunter_34.bmp&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;248&quot; src=&quot;http://4.bp.blogspot.com/-iUlrY52RAtY/UVcnpeL3GaI/AAAAAAAABmM/vTNnFXJVjS8/s320/ScreenHunter_34.bmp&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;No segundo passo escolhemos a compilador adequado a linguagem de programação utilizada, neste caso o CCS C Compiler;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://1.bp.blogspot.com/-lKr3rLevPhI/UVcnqGdYNHI/AAAAAAAABmU/OmcoRN7tv4I/s1600/ScreenHunter_35.bmp&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;248&quot; src=&quot;http://1.bp.blogspot.com/-lKr3rLevPhI/UVcnqGdYNHI/AAAAAAAABmU/OmcoRN7tv4I/s320/ScreenHunter_35.bmp&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;No terceiro passo escolhemos onde o projeto será gravado e o nomeamos;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/-su1zcNpf1Qs/UVcnrgqjC6I/AAAAAAAABmk/UD5WKmdWVXk/s1600/ScreenHunter_36.bmp&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;248&quot; src=&quot;http://3.bp.blogspot.com/-su1zcNpf1Qs/UVcnrgqjC6I/AAAAAAAABmk/UD5WKmdWVXk/s320/ScreenHunter_36.bmp&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Com isso o projeto está pronto para ser utilizado, clicamos em &quot;concluir&quot; para acessá-lo;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://2.bp.blogspot.com/-koQCO5juoCE/UVcnsZ3j3gI/AAAAAAAABms/vifFBY_z8qk/s1600/ScreenHunter_38.bmp&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;248&quot; src=&quot;http://2.bp.blogspot.com/-koQCO5juoCE/UVcnsZ3j3gI/AAAAAAAABms/vifFBY_z8qk/s320/ScreenHunter_38.bmp&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;De volta a tela inicial da IDE Mplab, acessamos a opção &quot;file&quot; e em seguida &quot;new&quot; para criar o arquivo onde o programa será escrito.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;http://4.bp.blogspot.com/-6HKP5uho-4E/UVcogJlcM2I/AAAAAAAABm8/UArz_9TIoZk/s1600/ScreenHunter_39.bmp&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;243&quot; src=&quot;http://4.bp.blogspot.com/-6HKP5uho-4E/UVcogJlcM2I/AAAAAAAABm8/UArz_9TIoZk/s320/ScreenHunter_39.bmp&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Estando ele aberto, salvamos na mesma pasta onde foi criado o projeto. O arquivo pode ser nomeado como quiser, lembrando de definir sua extensão como &quot;.C&quot;.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://1.bp.blogspot.com/-wMvF12HzT8A/UVcoea0xcXI/AAAAAAAABm0/9AbO58SmdCM/s1600/ScreenHunter_40.bmp&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;295&quot; src=&quot;http://1.bp.blogspot.com/-wMvF12HzT8A/UVcoea0xcXI/AAAAAAAABm0/9AbO58SmdCM/s320/ScreenHunter_40.bmp&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Nesta mesma pasta deve ser salvo o arquivo &quot;lcd.h&quot; explicado e disponível no artigo&amp;nbsp;&lt;a href=&quot;http://www.marcelomaciel.com/2012/03/configuracao-display-lcd-no-pic.html&quot; target=&quot;_blank&quot;&gt;Conectando um display LCD no PIC&lt;/a&gt;. Caso não o tenha ainda, basta acessa&amp;nbsp;&lt;a href=&quot;http://www.marcelomaciel.com/2012/03/configuracao-display-lcd-no-pic.html&quot; target=&quot;_blank&quot;&gt;este link&lt;/a&gt;&amp;nbsp;e criar o arquivo &quot;lcd.h&quot; da mesma forma que criamos o arquivo &quot;.c&quot; acima colando o código antes de salvar.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Em seguida devemos acrescentar este dois arquivos ao projeto, acessamos a janela inicial do projeto, clicamos com o botão direito do mouse sobre &quot;Source Files&quot; e selecionamos a opção &quot;Add Files&quot;.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://2.bp.blogspot.com/-S2a-uQMXj5I/UVcpULzrf-I/AAAAAAAABnE/9wXUt3k6kjs/s1600/ScreenHunter_41.bmp&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;198&quot; src=&quot;http://2.bp.blogspot.com/-S2a-uQMXj5I/UVcpULzrf-I/AAAAAAAABnE/9wXUt3k6kjs/s320/ScreenHunter_41.bmp&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Na tela que se abre selecionamos os arquivos &quot;lcd.h&quot; e &quot;.c&quot; criados e, em seguida a opção &quot;abrir&quot;.&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/-FRXoFV_D8Ns/UVcpVYGebrI/AAAAAAAABnQ/5_O0KjMceh8/s1600/ScreenHunter_42.bmp&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;295&quot; src=&quot;http://3.bp.blogspot.com/-FRXoFV_D8Ns/UVcpVYGebrI/AAAAAAAABnQ/5_O0KjMceh8/s320/ScreenHunter_42.bmp&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Somo direcionado novamente para a tela inicial do projeto e os arquivos importados aparecem em destaque.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://2.bp.blogspot.com/-qSvVBT_LPcQ/UVcpU3MS8_I/AAAAAAAABnM/m6R-XxDO2D4/s1600/ScreenHunter_43.bmp&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;198&quot; src=&quot;http://2.bp.blogspot.com/-qSvVBT_LPcQ/UVcpU3MS8_I/AAAAAAAABnM/m6R-XxDO2D4/s320/ScreenHunter_43.bmp&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Com dois cliques sobre o arquivo &quot;.C&quot; ele é aberto e devemos colar o códio abaixo:&lt;/span&gt;&lt;/div&gt;&lt;codigo&gt;&lt;style type=&quot;text/css&quot;&gt;span {  font-family: &#39;Courier New&#39;;  font-size: 10pt;  color: #000000; } .sc0 { } .sc2 {  color: #008000; } .sc4 {  color: #FF8000; } .sc5 {  font-weight: bold;  color: #0000FF; } .sc6 {  color: #808080; } .sc9 {  color: #804000; } .sc10 {  font-weight: bold;  color: #000080; } .sc11 { } .sc16 {  color: #8000FF; } &lt;/style&gt; &lt;/codigo&gt;&lt;br /&gt;&lt;div style=&quot;background: #FFFFFF; float: left; line-height: 1; white-space: pre;&quot;&gt;&lt;span class=&quot;sc9&quot;&gt;#include &amp;lt;16F628A.h&amp;gt;            &lt;/span&gt;&lt;span class=&quot;sc2&quot;&gt;//Define o modelo do microcontrolador &lt;/span&gt;&lt;span class=&quot;sc0&quot;&gt;&lt;/span&gt;&lt;span class=&quot;sc2&quot;&gt;// Fusíveis de configuração do microcontrolador &lt;/span&gt;&lt;span class=&quot;sc0&quot;&gt;&lt;/span&gt;&lt;span class=&quot;sc9&quot;&gt;#FUSES NOWDT                    &lt;/span&gt;&lt;span class=&quot;sc2&quot;&gt;//Watch Dog Timer desabilitado &lt;/span&gt;&lt;span class=&quot;sc9&quot;&gt;#FUSES HS                       &lt;/span&gt;&lt;span class=&quot;sc2&quot;&gt;//oscilador cristal  &lt;/span&gt;&lt;span class=&quot;sc9&quot;&gt;#FUSES PUT                      &lt;/span&gt;&lt;span class=&quot;sc2&quot;&gt;//Power Up Timer &lt;/span&gt;&lt;span class=&quot;sc9&quot;&gt;#FUSES NOPROTECT                &lt;/span&gt;&lt;span class=&quot;sc2&quot;&gt;//sem proteção para leitura da eprom &lt;/span&gt;&lt;span class=&quot;sc9&quot;&gt;#FUSES BROWNOUT                 &lt;/span&gt;&lt;span class=&quot;sc2&quot;&gt;//Resetar quando detectar brownout &lt;/span&gt;&lt;span class=&quot;sc9&quot;&gt;#FUSES NOMCLR                   &lt;/span&gt;&lt;span class=&quot;sc2&quot;&gt;//Reset desabilitado &lt;/span&gt;&lt;span class=&quot;sc9&quot;&gt;#FUSES NOLVP                    &lt;/span&gt;&lt;span class=&quot;sc2&quot;&gt;//prog. baixa voltagem desabilitado &lt;/span&gt;&lt;span class=&quot;sc9&quot;&gt;#FUSES NOCPD                    &lt;/span&gt;&lt;span class=&quot;sc2&quot;&gt;//Sem travar o chip &lt;/span&gt;&lt;span class=&quot;sc0&quot;&gt;&lt;/span&gt;&lt;span class=&quot;sc9&quot;&gt;#use delay(clock=20000000)      &lt;/span&gt;&lt;span class=&quot;sc2&quot;&gt;//Define o cristal utilizado, neste caso: 20Mhz &lt;/span&gt;&lt;span class=&quot;sc0&quot;&gt; &lt;/span&gt;&lt;span class=&quot;sc2&quot;&gt;//Definição de entradas e saídas //Cada bit representa um pino físico de I/O // 0 significa que o pino será uma saída // 1 significa que o pino será uma entrada &lt;/span&gt;&lt;span class=&quot;sc9&quot;&gt;#define trisa 0b00000000  #define trisb 0b00000000  &lt;/span&gt;&lt;span class=&quot;sc0&quot;&gt;&lt;/span&gt;&lt;span class=&quot;sc2&quot;&gt;// Estas são as definições dos pinos que o LCD utiliza. // Definem quais pinos do PIC controlarão os pinos do LCD &lt;/span&gt;&lt;span class=&quot;sc0&quot;&gt;&lt;/span&gt;&lt;span class=&quot;sc9&quot;&gt;#define lcd_enable pin_a1       &lt;/span&gt;&lt;span class=&quot;sc2&quot;&gt;// pino enable do LCD &lt;/span&gt;&lt;span class=&quot;sc9&quot;&gt;#define lcd_rs     pin_a0       &lt;/span&gt;&lt;span class=&quot;sc2&quot;&gt;// pino rs (register select)do LCD &lt;/span&gt;&lt;span class=&quot;sc0&quot;&gt;                                &lt;/span&gt;&lt;span class=&quot;sc2&quot;&gt;// (0) para comandos    (1) para dados &lt;/span&gt;&lt;span class=&quot;sc0&quot;&gt;&lt;/span&gt;&lt;span class=&quot;sc9&quot;&gt;#define lcd_db4    pin_b4       &lt;/span&gt;&lt;span class=&quot;sc2&quot;&gt;// pino de dados d4 do LCD &lt;/span&gt;&lt;span class=&quot;sc9&quot;&gt;#define lcd_db5    pin_b5       &lt;/span&gt;&lt;span class=&quot;sc2&quot;&gt;// pino de dados d5 do LCD &lt;/span&gt;&lt;span class=&quot;sc9&quot;&gt;#define lcd_db6    pin_b6       &lt;/span&gt;&lt;span class=&quot;sc2&quot;&gt;// pino de dados d6 do LCD &lt;/span&gt;&lt;span class=&quot;sc9&quot;&gt;#define lcd_db7    pin_b7       &lt;/span&gt;&lt;span class=&quot;sc2&quot;&gt;// pino de dados d7 do LCD &lt;/span&gt;&lt;span class=&quot;sc9&quot;&gt;#include &amp;lt;lcd.h&amp;gt;                &lt;/span&gt;&lt;span class=&quot;sc2&quot;&gt;//declaração da biblioteca do LCD &lt;/span&gt;&lt;span class=&quot;sc0&quot;&gt;     &lt;/span&gt;&lt;span class=&quot;sc2&quot;&gt;//Programa principal &lt;/span&gt;&lt;span class=&quot;sc16&quot;&gt;void&lt;/span&gt;&lt;span class=&quot;sc0&quot;&gt; &lt;/span&gt;&lt;span class=&quot;sc11&quot;&gt;main&lt;/span&gt;&lt;span class=&quot;sc10&quot;&gt;(){&lt;/span&gt;&lt;span class=&quot;sc0&quot;&gt; &lt;/span&gt;&lt;span class=&quot;sc11&quot;&gt;inicializa_lcd&lt;/span&gt;&lt;span class=&quot;sc10&quot;&gt;();&lt;/span&gt;&lt;span class=&quot;sc0&quot;&gt;               &lt;/span&gt;&lt;span class=&quot;sc2&quot;&gt;//Inicializa o LCD &lt;/span&gt;&lt;span class=&quot;sc0&quot;&gt;&lt;/span&gt;&lt;span class=&quot;sc5&quot;&gt;while&lt;/span&gt;&lt;span class=&quot;sc10&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;sc4&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;sc10&quot;&gt;){&lt;/span&gt;&lt;span class=&quot;sc0&quot;&gt;         &lt;/span&gt;&lt;span class=&quot;sc11&quot;&gt;limpa_lcd&lt;/span&gt;&lt;span class=&quot;sc10&quot;&gt;();&lt;/span&gt;&lt;span class=&quot;sc0&quot;&gt;            &lt;/span&gt;&lt;span class=&quot;sc2&quot;&gt;//Limpa o display do LCD &lt;/span&gt;&lt;span class=&quot;sc0&quot;&gt;        &lt;/span&gt;&lt;span class=&quot;sc11&quot;&gt;caracter_inicio&lt;/span&gt;&lt;span class=&quot;sc10&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;sc4&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;sc10&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;sc4&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;sc10&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;sc0&quot;&gt;   &lt;/span&gt;&lt;span class=&quot;sc2&quot;&gt;//Define o caracter de inicio da escrita  &lt;/span&gt;&lt;span class=&quot;sc0&quot;&gt;                 &lt;/span&gt;&lt;span class=&quot;sc11&quot;&gt;printf&lt;/span&gt;&lt;span class=&quot;sc10&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;sc11&quot;&gt;escreve_lcd&lt;/span&gt;&lt;span class=&quot;sc10&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;sc6&quot;&gt;&quot;Blog do Marcelo&quot;&lt;/span&gt;&lt;span class=&quot;sc10&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;sc0&quot;&gt;  &lt;/span&gt;&lt;span class=&quot;sc2&quot;&gt;//Escreve no LCD &lt;/span&gt;&lt;span class=&quot;sc0&quot;&gt;        &lt;/span&gt;&lt;span class=&quot;sc11&quot;&gt;delay_ms&lt;/span&gt;&lt;span class=&quot;sc10&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;sc4&quot;&gt;1000&lt;/span&gt;&lt;span class=&quot;sc10&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;sc0&quot;&gt;         &lt;/span&gt;&lt;span class=&quot;sc2&quot;&gt;//Espera um segundo &lt;/span&gt;&lt;span class=&quot;sc0&quot;&gt;        &lt;/span&gt;&lt;span class=&quot;sc10&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;sc0&quot;&gt;&lt;/span&gt;&lt;span class=&quot;sc10&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;sc0&quot;&gt; &lt;/span&gt;&lt;span class=&quot;sc2&quot;&gt;//fecha void main&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Depois de copiar o código acima, salvamos o arquivo e selecionamos a opção &quot;Project&quot; e, em seguida, &quot;Build All&quot;.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://2.bp.blogspot.com/-oVTn7STmHuY/UVdtGiR5KXI/AAAAAAAABns/-fSkIzKtzCI/s1600/ScreenHunter_46.bmp&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;227&quot; src=&quot;http://2.bp.blogspot.com/-oVTn7STmHuY/UVdtGiR5KXI/AAAAAAAABns/-fSkIzKtzCI/s320/ScreenHunter_46.bmp&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Se o procedimento acima for seguido corretamente, o projeto não apresentará erros e será apresentada a expressão &quot;Build Succeeded&quot;.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://2.bp.blogspot.com/-c1CZPVvR3oI/UVduIYb6loI/AAAAAAAABn4/Ga-uO1_U3Co/s1600/ScreenHunter_47.bmp&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;227&quot; src=&quot;http://2.bp.blogspot.com/-c1CZPVvR3oI/UVduIYb6loI/AAAAAAAABn4/Ga-uO1_U3Co/s320/ScreenHunter_47.bmp&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Isso fará com que o projeto seja compilado e o arquivo hexadecimal a ser gravado no microcontrolador seja criado. Para nossa simulação, voltamos ao Proteus Isis e clicamos duas vezes sobre o microcontrolador PIC.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Na opção &quot;Progran File&quot; selecionamos o arquivo &quot;.hex&quot; criado pelo Mplab na pasta do projeto. E na opção &quot;Processor Clock Frequency&quot; setamos a frequência de 20Mhz utilizada por nosso projeto.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/-LXt9GLzCjkQ/UVduw2t2oHI/AAAAAAAABoA/aFzKZkfGdto/s1600/ScreenHunter_48.bmp&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;233&quot; src=&quot;http://3.bp.blogspot.com/-LXt9GLzCjkQ/UVduw2t2oHI/AAAAAAAABoA/aFzKZkfGdto/s320/ScreenHunter_48.bmp&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Executando a simulação do projeto, veremos o resultado final:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://4.bp.blogspot.com/-ev5izjm7HKA/UVdvmYEBElI/AAAAAAAABoM/3cnONHJiLfU/s1600/ScreenHunter_49.bmp&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;392&quot; src=&quot;http://4.bp.blogspot.com/-ev5izjm7HKA/UVdvmYEBElI/AAAAAAAABoM/3cnONHJiLfU/s640/ScreenHunter_49.bmp&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.marcelomaciel.com/feeds/5389379636190955910/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://www.marcelomaciel.com/2013/03/lcd-no-pic16f628a.html#comment-form' title='5 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9125312181721201439/posts/default/5389379636190955910'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9125312181721201439/posts/default/5389379636190955910'/><link rel='alternate' type='text/html' href='http://www.marcelomaciel.com/2013/03/lcd-no-pic16f628a.html' title='LCD no PIC16F628a'/><author><name>Marcelo Maciel</name><uri>http://www.blogger.com/profile/13218035075532390512</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://1.bp.blogspot.com/-dTse92D2iPg/UUIE2LSQTYI/AAAAAAAABak/NacpBnV6yB4/s220/1268234745.2444.128757530.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/-n8moPCaK2ck/UVDfi07RY2I/AAAAAAAABgM/X1MAHOTOsKQ/s72-c/lcd+pic16f628a.jpg" height="72" width="72"/><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9125312181721201439.post-47734099937804130</id><published>2013-02-26T23:50:00.001-03:00</published><updated>2013-03-20T08:59:25.025-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Aplicativos"/><category scheme="http://www.blogger.com/atom/ns#" term="Automação"/><category scheme="http://www.blogger.com/atom/ns#" term="Controle Remoto"/><category scheme="http://www.blogger.com/atom/ns#" term="Eletrônica"/><category scheme="http://www.blogger.com/atom/ns#" term="Engenharia"/><category scheme="http://www.blogger.com/atom/ns#" term="Linguagem C"/><category scheme="http://www.blogger.com/atom/ns#" term="Microchip"/><category scheme="http://www.blogger.com/atom/ns#" term="PIC"/><category scheme="http://www.blogger.com/atom/ns#" term="Robótica"/><category scheme="http://www.blogger.com/atom/ns#" term="Serial"/><title type='text'>Conectando o Joystick do PS2 Sem Fio ao PIC16F877a - (Parte 2) – Desenvolvimento</title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 19.2pt; text-align: justify;&quot;&gt;&lt;a href=&quot;http://1.bp.blogspot.com/-tAwg9J2TEgY/UUd9Hem9E9I/AAAAAAAABbY/P5Jdr8U2N04/s1600/ps2-pic.png&quot; imageanchor=&quot;1&quot; style=&quot;background-color: white; clear: left; display: inline !important; float: left; line-height: 19.2pt; margin-bottom: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;200&quot; src=&quot;http://1.bp.blogspot.com/-tAwg9J2TEgY/UUd9Hem9E9I/AAAAAAAABbY/P5Jdr8U2N04/s200/ps2-pic.png&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-large;&quot;&gt;D&lt;/span&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;epois de algum tempo do &lt;a href=&quot;http://www.marcelomaciel.com/2012/04/conectando-o-joystick-do-ps2-sem-fio-ao.html&quot;&gt;primeiro post&lt;/a&gt;&amp;nbsp;mostrando a comunicação entre um controle sem fio de Playstation 2 e um microcontrolador PIC e de vários pedidos dos visitantes do blog, estou retomando o assunto. Neste artigo estou utilizando o PIC modelo PIC16F877a para a comunicação, mas o código pode facilmente ser migrado para outro microcontrolador da família PIC de acordo com as necessidades do seu projeto.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 19.2pt; text-align: justify;&quot;&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 19.2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 10.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;No primeiro post, mostrei um pequeno vídeo com&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; line-height: 19.2pt;&quot;&gt;&amp;nbsp;o funcionamento do circuito proposto. Agora vamos mostrar como fazê-lo.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 10.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;iframe allowfullscreen=&#39;allowfullscreen&#39; webkitallowfullscreen=&#39;webkitallowfullscreen&#39; mozallowfullscreen=&#39;mozallowfullscreen&#39; width=&#39;320&#39; height=&#39;266&#39; src=&#39;https://www.youtube.com/embed/QwKxrdxWp1U?feature=player_embedded&#39; frameborder=&#39;0&#39; /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial;&quot;&gt;&lt;div style=&quot;line-height: 19.2pt;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Antes de mais nada vamos conhecer os detalhes de um joystick utilizado pelo PlayStation 2.&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 19.2pt;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 19.2pt;&quot;&gt;&lt;h3&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 18pt;&quot;&gt;O Joystick do PS2:&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/h3&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 18pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 19.2pt;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 18pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt; &lt;/span&gt;&lt;br /&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 19.2pt;&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Bom, este controle fantástico dispensa maiores apresentações&amp;nbsp;a respeito de sua jogabilidade. Com seus 16 botões digitais e seus dois joysticks analógicos, pode ser a solução perfeita e de baixo custo para muitos projetos nas áreas da mecatrônica.&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; line-height: 19.2pt; text-align: center;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;&lt;a href=&quot;http://2.bp.blogspot.com/-5mP7G76Ya8U/USZxZlCBLfI/AAAAAAAABRo/iLemIdMJ50U/s1600/1316802138_CONTROLE_PLAY2_4.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;200&quot; src=&quot;http://2.bp.blogspot.com/-5mP7G76Ya8U/USZxZlCBLfI/AAAAAAAABRo/iLemIdMJ50U/s200/1316802138_CONTROLE_PLAY2_4.jpg&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; line-height: 19.2pt; text-align: center;&quot;&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; line-height: 19.2pt; text-align: center;&quot;&gt;&lt;/div&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 19.2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: Arial, sans-serif;&quot;&gt;Existem ainda no mercado diversos controles “compatíveis” “Made in China” que barateiam ainda mais nosso projeto e funcionam perfeitamente. Não posso afirmar que todos os modelos disponíveis funcionem com este método, entretanto, todos as que eu testei funcionaram e partindo do pressuposto de que eles funcionam no console, devem também funcionar aqui.&lt;span style=&quot;font-size: 10.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; line-height: 19.2pt; text-align: center;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;&lt;a href=&quot;http://2.bp.blogspot.com/-C0hvWimimZ4/USZx451N59I/AAAAAAAABRw/jC2Ri2Q0Pxw/s1600/ps2.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;http://2.bp.blogspot.com/-C0hvWimimZ4/USZx451N59I/AAAAAAAABRw/jC2Ri2Q0Pxw/s320/ps2.jpg&quot; width=&quot;253&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; line-height: 19.2pt; text-align: center;&quot;&gt;&lt;/div&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 19.2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: Arial, sans-serif;&quot;&gt;Como citei a pouco, este circuito funciona tanto com o controle com fio quanto com o sem fio. Já encontrei na internet artigos feitos para controles com fio q não funcionam com controles sem fio. Este artigo foi baseados nestes e modificado para operar também com os controles sem fio. O muda entre eles é o tempo entre as duas leituras do controle. Se o tempo for grande, o controle sem fio perde a comunicação e não volta. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 19.2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: Arial, sans-serif;&quot;&gt;Como o controle sem fio dá muito mais liberdade ao projeto, além de ser muito mais legal, vou basear todo o artigo neles. Caso queira utilizar um controle com fio, basta fazê-lo.&lt;span style=&quot;font-size: 10.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 19.2pt; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 19.2pt; text-align: justify;&quot;&gt;&lt;h3&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 18pt;&quot;&gt;A Pinagem do conector&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/h3&gt;&lt;/div&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 19.2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; line-height: 19.2pt;&quot;&gt;O conector do Joystick do PS2 possui nove pinos conforme a figura abaixo. Nela observamos o padrão de cores utilizado pelos controles com fio originais da Sony, caso seu controle possua cores diferentes, guie-se pelo conector, claro, antes de cortar os fios! rs&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 19.2pt; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style=&quot;line-height: 19.2pt;&quot;&gt;&lt;/div&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;&lt;a href=&quot;http://2.bp.blogspot.com/-Z7unxEc6e0s/USZyuE9Z8EI/AAAAAAAABR4/R_gw5cTbhJ8/s1600/pinagem+conector.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;235&quot; src=&quot;http://2.bp.blogspot.com/-Z7unxEc6e0s/USZyuE9Z8EI/AAAAAAAABR4/R_gw5cTbhJ8/s400/pinagem+conector.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 19.2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div align=&quot;center&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;table border=&quot;1&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;MsoNormalTable&quot;&gt; &lt;tbody&gt;&lt;tr&gt;  &lt;td colspan=&quot;3&quot; style=&quot;padding: 0cm 0cm 0cm 0cm; width: 424.5pt;&quot; valign=&quot;top&quot; width=&quot;566&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;Descrição dos Pinos do conector macho do Joystick   do PlayStation 2&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 42.75pt;&quot; valign=&quot;top&quot; width=&quot;57&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;Pino&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 240.75pt;&quot; valign=&quot;top&quot; width=&quot;321&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;Descrição&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 5.0cm;&quot; valign=&quot;top&quot; width=&quot;189&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;Cor padrão&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 42.75pt;&quot; valign=&quot;top&quot; width=&quot;57&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;1&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 240.75pt;&quot; valign=&quot;top&quot; width=&quot;321&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;Data (dados)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 5.0cm;&quot; valign=&quot;top&quot; width=&quot;189&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;Marrom&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 42.75pt;&quot; valign=&quot;top&quot; width=&quot;57&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;2&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 240.75pt;&quot; valign=&quot;top&quot; width=&quot;321&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;Command (Comandos)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 5.0cm;&quot; valign=&quot;top&quot; width=&quot;189&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;Laranja&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 42.75pt;&quot; valign=&quot;top&quot; width=&quot;57&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;3&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 240.75pt;&quot; valign=&quot;top&quot; width=&quot;321&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;&amp;nbsp;Vibration motor power (Vibração)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 5.0cm;&quot; valign=&quot;top&quot; width=&quot;189&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;Cinza&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 42.75pt;&quot; valign=&quot;top&quot; width=&quot;57&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;4&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 240.75pt;&quot; valign=&quot;top&quot; width=&quot;321&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;GND (Terra)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 5.0cm;&quot; valign=&quot;top&quot; width=&quot;189&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;Preto&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 42.75pt;&quot; valign=&quot;top&quot; width=&quot;57&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;5&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 240.75pt;&quot; valign=&quot;top&quot; width=&quot;321&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;Power (Alimentação 3,3Vcc à 5 Vcc)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 5.0cm;&quot; valign=&quot;top&quot; width=&quot;189&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;Vermelho&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 42.75pt;&quot; valign=&quot;top&quot; width=&quot;57&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;6&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 240.75pt;&quot; valign=&quot;top&quot; width=&quot;321&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;Att (Atenção)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 5.0cm;&quot; valign=&quot;top&quot; width=&quot;189&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;Amarelo&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 42.75pt;&quot; valign=&quot;top&quot; width=&quot;57&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;7&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 240.75pt;&quot; valign=&quot;top&quot; width=&quot;321&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;Clock ( Pulsos de sincronismo)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 5.0cm;&quot; valign=&quot;top&quot; width=&quot;189&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;Azul&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 42.75pt;&quot; valign=&quot;top&quot; width=&quot;57&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;8&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 240.75pt;&quot; valign=&quot;top&quot; width=&quot;321&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;Não Utilizado&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 5.0cm;&quot; valign=&quot;top&quot; width=&quot;189&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;Branco&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 42.75pt;&quot; valign=&quot;top&quot; width=&quot;57&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;9&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 240.75pt;&quot; valign=&quot;top&quot; width=&quot;321&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;Acknoledge (Reconhecimento)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 5.0cm;&quot; valign=&quot;top&quot; width=&quot;189&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;Verde&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt; &lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;color: #333333; line-height: 107%;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;1 - Data:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;color: #333333; line-height: 107%;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; line-height: 25.59375px; text-align: justify;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Arial, Helvetica, sans-serif; line-height: 107%; text-align: justify;&quot;&gt;Sinal enviado do controle para o Playstation.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: Arial, Helvetica, sans-serif; line-height: 107%; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; line-height: 25.59375px; text-align: justify;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Arial, Helvetica, sans-serif; line-height: 107%; text-align: justify;&quot;&gt;Este&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Arial, Helvetica, sans-serif; line-height: 107%; text-align: justify;&quot;&gt;-Este sinal é uma transmissão serial de 8 bits sincronizado com o sinal do pino de clock por banda de descida. Este sinal contém a resposta ao sinal Command.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;&lt;span style=&quot;color: #333333; line-height: 107%;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;-Este pino é uma saída em coletor aberto e necessita de um resistor de pull-up (1 à 110k). Esta resistência é necessária porque o controle só pode conectar este pino à terra, então ela se faz necessária para garantir o nível lógico 1.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;color: #333333; line-height: 107%;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;2 - Command:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;color: #333333; line-height: 107%;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;&lt;span style=&quot;color: #333333; line-height: 107%;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;-Sinal enviado do Playstation para o controle.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;&lt;span style=&quot;color: #333333; line-height: 107%;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;&lt;span style=&quot;color: #333333; line-height: 107%;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;-É uma transmissão serial de 8 bits, também sincronizado com o pino de clock. Ele será utilizado para estabelecer a comunicação entre o controle e o nosso pseudo console, solicitando as informações necessárias conforme veremos logo.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;color: #333333; line-height: 107%;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;3 - Vibration motor power:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;color: #333333; line-height: 107%;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;color: #333333; line-height: 107%;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;-Sinal enviado do Playstation para o controle.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;color: #333333; line-height: 107%;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;color: #333333; line-height: 107%;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;-Esta função não está implementada neste artigo, mas através deste pino podemos fazer o controle vibrar. Particularmente ainda não&amp;nbsp;testei esta função.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;color: #333333; line-height: 107%;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;4 -GND:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;color: #333333; line-height: 107%;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;color: #333333; line-height: 107%;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;-Terminal de referência para os demais sinais além da alimentação do circuito.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;color: #333333; line-height: 107%;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;5 - Power 3,3V à 5 V:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: Arial, Helvetica, sans-serif; line-height: 17px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: Arial, Helvetica, sans-serif; line-height: 17px;&quot;&gt;-Sinal enviado do Playstation para o controle.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: Arial, Helvetica, sans-serif; line-height: 17px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;color: #333333; line-height: 107%;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;-Tensão de alimentação do controle ou, no nosso caso, do transmissor sem fio do controle. Algumas literaturas informam que os controles genéricos sem fio só funcionam com 3,3V, nos meus testes funcionaram com 5 V normalmente. As mesmas literaturas informam que os controles originais funcionam com qualquer tensão entre 3,3V e 5V.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;color: #333333; line-height: 107%;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;6 - Att:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;color: #333333; line-height: 107%;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;color: #333333; line-height: 107%;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;-Sinal enviado do console para chamar a atenção do controle.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;color: #333333; line-height: 107%;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;color: #333333; line-height: 107%;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;-Este sinal permanece em nível lógico baixo durante a transmissão.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;color: #333333; line-height: 107%;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;7 – Clock (250kHz à 500kHz):&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;color: #333333; line-height: 107%;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;color: #333333; line-height: 107%;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;-Sinal enviado do Playstation para o controle.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;color: #333333; line-height: 107%;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;color: #333333; line-height: 107%;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;-Utilizado para manter sincronia entre o Playstation e o controle.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;color: #333333; line-height: 107%;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;8 – Não utilizado.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;color: #333333; line-height: 107%;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;9 – ACK (Acknoledge):&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;color: #333333; line-height: 107%;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;color: #333333; line-height: 107%;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;-Sinal enviado do controle para o Playstation.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;color: #333333; line-height: 107%;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;color: #333333; line-height: 107%;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;-Este sinal deve ir para nível lógico zero, por pelo menos um pulso de clock depois de cada um dos 8 bits enviado e ATT mantida em nível lógico zero. Se o Sinal de ACK não for para nível lógico zero dentro de cerca de 60uS, o Playstation começa a interagir com outros dispositivos.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;color: #333333; line-height: 107%;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;color: #333333; line-height: 107%;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;-Para o nosso projeto não precisamos nos preocupar com este sinal, vamos apenas ignorá-lo.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;color: #333333; line-height: 107%;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Revisando novamente nosso conector, verificamos que serão utilizados em nosso projeto os seguintes sinais:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;color: #333333; line-height: 107%;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; line-height: 107%;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/-HsxdfTiGILs/USZzyhMZv6I/AAAAAAAABSA/scSGSMjYfwM/s1600/pinagem+conector-2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;246&quot; src=&quot;http://3.bp.blogspot.com/-HsxdfTiGILs/USZzyhMZv6I/AAAAAAAABSA/scSGSMjYfwM/s400/pinagem+conector-2.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span style=&quot;color: #333333; line-height: 107%;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 19.2pt; text-align: justify;&quot;&gt;&lt;h3&gt;&lt;b style=&quot;line-height: 19.2pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 18pt;&quot;&gt;Comunicação&lt;/span&gt;&lt;/b&gt;&lt;/h3&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 19.2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Arial, Helvetica, sans-serif;&quot;&gt;Durante o estudo dos sinais encontrei no site &lt;/span&gt;&lt;a href=&quot;http://store.curiousinventor.com/guides/ps2#hardware&quot; style=&quot;background-color: transparent; font-family: Arial, Helvetica, sans-serif;&quot;&gt;Curious inventor&lt;/a&gt;&lt;span style=&quot;background-color: transparent; font-family: Arial, Helvetica, sans-serif;&quot;&gt; uma leitura em tempo real dos sinais de transmissão realizada com um osciloscópio. Nela podemos observar exatamente como se combinam todos os sinais. O texto informa que está é uma leitura real entre um Playstation e uma Guitarra do Guitar Hero.&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;color: #333333; line-height: 107%;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: #333333; line-height: 107%;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://4.bp.blogspot.com/-T6hUxKo1Qos/USZ0Pt2BuxI/AAAAAAAABSI/pVaVb1m5eA0/s1600/annotated_scope.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;336&quot; src=&quot;http://4.bp.blogspot.com/-T6hUxKo1Qos/USZ0Pt2BuxI/AAAAAAAABSI/pVaVb1m5eA0/s400/annotated_scope.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;color: #333333; line-height: 107%;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Fonte:&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;a href=&quot;http://store.curiousinventor.com/guides/ps2#hardware&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; text-align: justify;&quot;&gt;Curious inventor&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: #333333; line-height: 107%;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 19.2pt;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: center;&quot;&gt;&lt;div style=&quot;line-height: 19.2pt;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: Arial, Helvetica, sans-serif; line-height: 107%; text-align: justify;&quot;&gt;Simplistamente, a comunicação entre o Playstation e o controle ocorre da seguinte maneira:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;&lt;ol style=&quot;line-height: 19.2pt;&quot;&gt;&lt;li&gt;&lt;span style=&quot;color: #333333; font-family: Arial, Helvetica, sans-serif; line-height: 107%;&quot;&gt;-O console envia um sinal para identificar se o controle está conectado;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;color: #333333; font-family: Arial, Helvetica, sans-serif; line-height: 107%;&quot;&gt;-O controle responde a este sinal e a comunicação é estabelecida;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;color: #333333; font-family: Arial, Helvetica, sans-serif; line-height: 107%;&quot;&gt;-Em seguida o console solicita os dados do controle;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;color: #333333; font-family: Arial, Helvetica, sans-serif; line-height: 107%;&quot;&gt;-O controle, então, envia o estado de todos os botões naquele momento e aguarda nova solicitação.&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div&gt;&lt;span style=&quot;color: #333333; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 17px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 17px;&quot;&gt;Agora, com mais detalhes, vamos ver como funciona esta comunicação:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: Arial, Helvetica, sans-serif; line-height: 17px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;ul&gt;&lt;li&gt;&lt;span style=&quot;color: #333333; font-family: Arial, Helvetica, sans-serif; line-height: 17px;&quot;&gt;Quando o Playstation quer ler informações de um controle, primeiramente seta o sinal ATT para zero e envia o comando de inicio &lt;b&gt;(0x01)&lt;/b&gt;;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;&lt;span style=&quot;color: #333333; font-family: Arial, Helvetica, sans-serif; line-height: 17px;&quot;&gt;O Controle então responde com sua identificação:&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Arial, Helvetica, sans-serif; line-height: 17px;&quot;&gt;&amp;nbsp;( 0x41 = Digital; 0x73=Analógico) Em nosso projeto este valor não será utilizado;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;&lt;span style=&quot;color: #333333; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 17px;&quot;&gt;Ao mesmo tempo em que o controle envia este byte de identificação, o Playstation está enviando o byte &lt;b&gt;(0x42) &lt;/b&gt;para solicitar dados ao controle;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;&lt;span style=&quot;color: #333333; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 17px;&quot;&gt;Em seguida o Playstation envia um byte nulo &lt;b&gt;(0x00)&lt;/b&gt; enquanto o controle responde com o byte &lt;b&gt;(0x5A)&lt;/b&gt; indicando que irá iniciar o envio dos dados dos botões;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;&lt;span style=&quot;color: #333333; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 17px;&quot;&gt;Na sequência,são enviados 6 bytes com o status de todos os botões;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;&lt;span style=&quot;color: #333333; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 17px;&quot;&gt;Depois de receber estes 6 bytes, o Playstation coloca o pino ATT em 1 para que o controle para de enviar dados;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;&lt;span style=&quot;color: #333333; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 17px;&quot;&gt;A comunicação entre em repouso até que seja solicitado novo pedido de dados ao controle.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;span style=&quot;color: #333333; font-family: Arial, Helvetica, sans-serif; line-height: 17px;&quot;&gt;Com isso, a comunicação acontecerá da seguinte maneira:&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: Arial, Helvetica, sans-serif; line-height: 17px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;h3&gt;&lt;span style=&quot;color: #333333; font-family: Arial, Helvetica, sans-serif; line-height: 17px;&quot;&gt;Controle em modo digital:&lt;/span&gt;&lt;/h3&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: Arial, Helvetica, sans-serif; line-height: 17px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div align=&quot;center&quot;&gt;&lt;table border=&quot;1&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;MsoNormalTable&quot;&gt; &lt;tbody&gt;&lt;tr&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 30.75pt;&quot; valign=&quot;top&quot; width=&quot;41&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;Byte&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 54.0pt;&quot; valign=&quot;top&quot; width=&quot;72&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;Byte Comando&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 42.0pt;&quot; valign=&quot;top&quot; width=&quot;56&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;Byte Dados&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td colspan=&quot;8&quot; style=&quot;padding: 0cm 0cm 0cm 0cm; width: 297.0pt;&quot; valign=&quot;top&quot; width=&quot;396&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;Descrição do Byte de Dados&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 30.75pt;&quot; valign=&quot;top&quot; width=&quot;41&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;01&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 54.0pt;&quot; valign=&quot;top&quot; width=&quot;72&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;0x01&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 42.0pt;&quot; valign=&quot;top&quot; width=&quot;56&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;idle&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td colspan=&quot;8&quot; rowspan=&quot;2&quot; style=&quot;padding: 0cm 0cm 0cm 0cm; width: 297.0pt;&quot; valign=&quot;top&quot; width=&quot;396&quot;&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 30.75pt;&quot; valign=&quot;top&quot; width=&quot;41&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;02&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 54.0pt;&quot; valign=&quot;top&quot; width=&quot;72&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;0x42&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 42.0pt;&quot; valign=&quot;top&quot; width=&quot;56&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;0x41&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 30.75pt;&quot; valign=&quot;top&quot; width=&quot;41&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;03&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 54.0pt;&quot; valign=&quot;top&quot; width=&quot;72&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;0x00&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 42.0pt;&quot; valign=&quot;top&quot; width=&quot;56&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;0x5A&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 36.75pt;&quot; valign=&quot;top&quot; width=&quot;49&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;Bit0&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 36.75pt;&quot; valign=&quot;top&quot; width=&quot;49&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;Bit1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 36.75pt;&quot; valign=&quot;top&quot; width=&quot;49&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;Bit2&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 36.75pt;&quot; valign=&quot;top&quot; width=&quot;49&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;Bit3&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 28.5pt;&quot; valign=&quot;top&quot; width=&quot;38&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;Bit4&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 42.75pt;&quot; valign=&quot;top&quot; width=&quot;57&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;Bit5&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 42.75pt;&quot; valign=&quot;top&quot; width=&quot;57&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;Bit6&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 34.5pt;&quot; valign=&quot;top&quot; width=&quot;46&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;Bit7&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 30.75pt;&quot; valign=&quot;top&quot; width=&quot;41&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;04&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 54.0pt;&quot; valign=&quot;top&quot; width=&quot;72&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;idle&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 42.0pt;&quot; valign=&quot;top&quot; width=&quot;56&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;Byte 1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 36.75pt;&quot; valign=&quot;top&quot; width=&quot;49&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;SLCT&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 36.75pt;&quot; valign=&quot;top&quot; width=&quot;49&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 36.75pt;&quot; valign=&quot;top&quot; width=&quot;49&quot;&gt;&lt;/td&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 36.75pt;&quot; valign=&quot;top&quot; width=&quot;49&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;STRT&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 28.5pt;&quot; valign=&quot;top&quot; width=&quot;38&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;UP&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 42.75pt;&quot; valign=&quot;top&quot; width=&quot;57&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;RGHT&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 42.75pt;&quot; valign=&quot;top&quot; width=&quot;57&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;DOWN&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 34.5pt;&quot; valign=&quot;top&quot; width=&quot;46&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;LEFT&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 30.75pt;&quot; valign=&quot;top&quot; width=&quot;41&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;05&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 54.0pt;&quot; valign=&quot;top&quot; width=&quot;72&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;idle&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 42.0pt;&quot; valign=&quot;top&quot; width=&quot;56&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;Byte 2&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 36.75pt;&quot; valign=&quot;top&quot; width=&quot;49&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;L2&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 36.75pt;&quot; valign=&quot;top&quot; width=&quot;49&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;R2&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 36.75pt;&quot; valign=&quot;top&quot; width=&quot;49&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;L1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 36.75pt;&quot; valign=&quot;top&quot; width=&quot;49&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;R1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 28.5pt;&quot; valign=&quot;top&quot; width=&quot;38&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;/\&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 42.75pt;&quot; valign=&quot;top&quot; width=&quot;57&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;O&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 42.75pt;&quot; valign=&quot;top&quot; width=&quot;57&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;X&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 34.5pt;&quot; valign=&quot;top&quot; width=&quot;46&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;[&amp;nbsp; ]&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;div style=&quot;line-height: 19.2pt; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;h3&gt;&lt;span style=&quot;color: #333333; font-family: Arial, Helvetica, sans-serif; line-height: 17px;&quot;&gt;Controle em modo analógico (LED ligado):&lt;/span&gt;&lt;/h3&gt;&lt;span style=&quot;color: #333333; font-family: Arial, Helvetica, sans-serif; line-height: 17px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div align=&quot;center&quot;&gt;&lt;table border=&quot;1&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;MsoNormalTable&quot;&gt; &lt;tbody&gt;&lt;tr&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 30.75pt;&quot; valign=&quot;top&quot; width=&quot;41&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;Byte&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 54.0pt;&quot; valign=&quot;top&quot; width=&quot;72&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;Byte Comando&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 42.0pt;&quot; valign=&quot;top&quot; width=&quot;56&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;Byte Dados&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td colspan=&quot;8&quot; style=&quot;padding: 0cm 0cm 0cm 0cm; width: 297.0pt;&quot; valign=&quot;top&quot; width=&quot;396&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;Descrição do Byte de Dados&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 30.75pt;&quot; valign=&quot;top&quot; width=&quot;41&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;01&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 54.0pt;&quot; valign=&quot;top&quot; width=&quot;72&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;0x01&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 42.0pt;&quot; valign=&quot;top&quot; width=&quot;56&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;idle&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td colspan=&quot;8&quot; rowspan=&quot;2&quot; style=&quot;padding: 0cm 0cm 0cm 0cm; width: 297.0pt;&quot; valign=&quot;top&quot; width=&quot;396&quot;&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 30.75pt;&quot; valign=&quot;top&quot; width=&quot;41&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;02&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 54.0pt;&quot; valign=&quot;top&quot; width=&quot;72&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;0x42&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 42.0pt;&quot; valign=&quot;top&quot; width=&quot;56&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;0x73&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 30.75pt;&quot; valign=&quot;top&quot; width=&quot;41&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;03&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 54.0pt;&quot; valign=&quot;top&quot; width=&quot;72&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;0x00&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 42.0pt;&quot; valign=&quot;top&quot; width=&quot;56&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;0x5A&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 36.75pt;&quot; valign=&quot;top&quot; width=&quot;49&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;Bit0&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 36.75pt;&quot; valign=&quot;top&quot; width=&quot;49&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;Bit1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 36.75pt;&quot; valign=&quot;top&quot; width=&quot;49&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;Bit2&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 36.75pt;&quot; valign=&quot;top&quot; width=&quot;49&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;Bit3&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 28.5pt;&quot; valign=&quot;top&quot; width=&quot;38&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;Bit4&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 42.75pt;&quot; valign=&quot;top&quot; width=&quot;57&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;Bit5&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 42.75pt;&quot; valign=&quot;top&quot; width=&quot;57&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;Bit6&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 34.5pt;&quot; valign=&quot;top&quot; width=&quot;46&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;Bit7&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 30.75pt;&quot; valign=&quot;top&quot; width=&quot;41&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;04&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 54.0pt;&quot; valign=&quot;top&quot; width=&quot;72&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;Idle&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 42.0pt;&quot; valign=&quot;top&quot; width=&quot;56&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;Byte 1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 36.75pt;&quot; valign=&quot;top&quot; width=&quot;49&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;SLCT&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 36.75pt;&quot; valign=&quot;top&quot; width=&quot;49&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;JOYR&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 36.75pt;&quot; valign=&quot;top&quot; width=&quot;49&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;JOYL&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 36.75pt;&quot; valign=&quot;top&quot; width=&quot;49&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;STRT&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 28.5pt;&quot; valign=&quot;top&quot; width=&quot;38&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;UP&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 42.75pt;&quot; valign=&quot;top&quot; width=&quot;57&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;RGHT&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 42.75pt;&quot; valign=&quot;top&quot; width=&quot;57&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;DOWN&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 34.5pt;&quot; valign=&quot;top&quot; width=&quot;46&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;LEFT&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 30.75pt;&quot; valign=&quot;top&quot; width=&quot;41&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;05&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 54.0pt;&quot; valign=&quot;top&quot; width=&quot;72&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;idle&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 42.0pt;&quot; valign=&quot;top&quot; width=&quot;56&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;Byte 2&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 36.75pt;&quot; valign=&quot;top&quot; width=&quot;49&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;L2&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 36.75pt;&quot; valign=&quot;top&quot; width=&quot;49&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;R2&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 36.75pt;&quot; valign=&quot;top&quot; width=&quot;49&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;L1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 36.75pt;&quot; valign=&quot;top&quot; width=&quot;49&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;R1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 28.5pt;&quot; valign=&quot;top&quot; width=&quot;38&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;/\&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 42.75pt;&quot; valign=&quot;top&quot; width=&quot;57&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;O&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 42.75pt;&quot; valign=&quot;top&quot; width=&quot;57&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;X&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 34.5pt;&quot; valign=&quot;top&quot; width=&quot;46&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;[&amp;nbsp; ]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 30.75pt;&quot; valign=&quot;top&quot; width=&quot;41&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;06&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 54.0pt;&quot; valign=&quot;top&quot; width=&quot;72&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;idle&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 42.0pt;&quot; valign=&quot;top&quot; width=&quot;56&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;Byte 3&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td colspan=&quot;8&quot; style=&quot;padding: 0cm 0cm 0cm 0cm; width: 297.0pt;&quot; valign=&quot;top&quot; width=&quot;396&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;&amp;nbsp;&amp;nbsp;   Joy Analógico Direito – 0x00 = Esquerda; 0Xff=Direita&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 30.75pt;&quot; valign=&quot;top&quot; width=&quot;41&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;07&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 54.0pt;&quot; valign=&quot;top&quot; width=&quot;72&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;idle&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 42.0pt;&quot; valign=&quot;top&quot; width=&quot;56&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;Byte 4&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td colspan=&quot;8&quot; style=&quot;padding: 0cm 0cm 0cm 0cm; width: 297.0pt;&quot; valign=&quot;top&quot; width=&quot;396&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;Joy Analógico Direito – 0x00 = UP; 0Xff=DOWN&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 30.75pt;&quot; valign=&quot;top&quot; width=&quot;41&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;08&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 54.0pt;&quot; valign=&quot;top&quot; width=&quot;72&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;idle&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 42.0pt;&quot; valign=&quot;top&quot; width=&quot;56&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;Byte 5&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td colspan=&quot;8&quot; style=&quot;padding: 0cm 0cm 0cm 0cm; width: 297.0pt;&quot; valign=&quot;top&quot; width=&quot;396&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;Joy Analógico Esquerdo – 0x00 = Esquerda;&amp;nbsp;   0Xff=Direita&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 30.75pt;&quot; valign=&quot;top&quot; width=&quot;41&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;09&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 54.0pt;&quot; valign=&quot;top&quot; width=&quot;72&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;idle&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style=&quot;padding: 0cm 0cm 0cm 0cm; width: 42.0pt;&quot; valign=&quot;top&quot; width=&quot;56&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;Byte 6&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td colspan=&quot;8&quot; style=&quot;padding: 0cm 0cm 0cm 0cm; width: 297.0pt;&quot; valign=&quot;top&quot; width=&quot;396&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: PT-BR;&quot;&gt;Joy Analógico Esquerdo – 0x00 = UP;&amp;nbsp;   0Xff=DOWN&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt; &lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: Arial, Helvetica, sans-serif; line-height: 17px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 19.2pt;&quot;&gt;&lt;h3 style=&quot;text-align: justify;&quot;&gt;&lt;b style=&quot;line-height: 19.2pt;&quot;&gt;&lt;span style=&quot;font-size: 18pt; line-height: 25px;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Hardware:&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/h3&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 19.2pt; text-align: justify;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 18pt; line-height: 25px;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;&lt;div style=&quot;line-height: 19.2pt;&quot;&gt;&lt;span style=&quot;color: #333333; line-height: 17px;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;O hardware para este projeto é muito simples, sendo composta, além do próprio controle, de:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;ul&gt;&lt;li style=&quot;line-height: 19.2pt;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: Arial, Helvetica, sans-serif; line-height: 17px;&quot;&gt;Um microcontrolador PIC16F877a. A escolha deste uC se deu apenas por ele estar disponível em meu laboratório, mas o projeto pode ser facilmente adaptado para o modelo preferido de cada um;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://2.bp.blogspot.com/-MhVbDDxbuQE/US1jUWZWrsI/AAAAAAAABSg/hYJ-XYRWeYo/s1600/16f877a.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;200&quot; src=&quot;http://2.bp.blogspot.com/-MhVbDDxbuQE/US1jUWZWrsI/AAAAAAAABSg/hYJ-XYRWeYo/s200/16f877a.jpg&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;span style=&quot;color: #333333; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 17px;&quot;&gt;Um adaptador ou extensor para o conector do controle. Isso para o caso de não se cortar o cabo original do controle e utilizar os fios diretamente. No caso do controle sem fio, é&amp;nbsp;possível&amp;nbsp;soldar um novo cabo diretamente dos pinos do transmissor sem fio, mas eu prefiro utilizar o adaptador e poder substituir o controle facilmente caso ele apresente algum defeito, além do acabamento ficar muito melhor. Eu comprei meu adaptador no site Chines &lt;a href=&quot;http://dx.com/p/extension-cable-for-ps2-controller-176cm-length-30391&quot;&gt;Deal Extreme&lt;/a&gt;, eles não cobram frete para o Brasil e os preços são muito baixos;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://2.bp.blogspot.com/-ykRyWfUcE10/US1jG-L1qEI/AAAAAAAABSY/w6rC4nSsZ08/s1600/img.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;200&quot; src=&quot;http://2.bp.blogspot.com/-ykRyWfUcE10/US1jG-L1qEI/AAAAAAAABSY/w6rC4nSsZ08/s200/img.jpg&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 17px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;span style=&quot;color: #333333; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 17px;&quot;&gt;Para este projeto, utilizei alguns LEDs para demonstrar o funcionamento do circuito, cada vez que um botão é pressionado, um led correspondente se acende. Em uma aplicação real, fica livre a imaginação do projetista.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;&lt;span style=&quot;color: #333333; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 17px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 17px;&quot;&gt;A seguir o esquema eletrônico do circuito:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 17px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;a href=&quot;http://1.bp.blogspot.com/-M-4dGEqJSyk/US10JO-SEgI/AAAAAAAABSw/mRkLwP9zEfE/s1600/ScreenHunter_3.bmp&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;473&quot; src=&quot;http://1.bp.blogspot.com/-M-4dGEqJSyk/US10JO-SEgI/AAAAAAAABSw/mRkLwP9zEfE/s640/ScreenHunter_3.bmp&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div style=&quot;line-height: 19.2pt;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 19.2pt; text-align: justify;&quot;&gt;&lt;h3&gt;&lt;b&gt;&lt;span style=&quot;font-size: 18pt; line-height: 25px;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Software:&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/h3&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 19.2pt; text-align: justify;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 18pt; line-height: 25px;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;&lt;div style=&quot;line-height: 19.2pt;&quot;&gt;&lt;span style=&quot;color: #333333; line-height: 17px;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;O software foi baseado no programa apresentado no site&amp;nbsp;&lt;a href=&quot;http://www.robotizando.com.br/index.php&quot;&gt;Robotizando&lt;/a&gt;. O original foi escrito para apresentar os dados em uma serial a ser utilizado por um outro dispositivo. Este site é muito bom e apresenta diversos outros artigos muito interessantes.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 19.2pt;&quot;&gt;&lt;span style=&quot;color: #333333; line-height: 17px;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 19.2pt;&quot;&gt;&lt;span style=&quot;color: #333333; line-height: 17px;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Fiz a modificação no código original para se comunicar com um controle sem fio (o original não permite este uso). Além disso, em aplicações não tão robustas como em robôs pouco complexos, podemos utilizar um único uC para comunicação com o controle de Playstation ao mesmo tempo que com os demais periféricos do robô (motores,atuadores, etc).&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; line-height: 17px;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;codigo&gt;                                                               &lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;//************************************************************************//&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;// &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;// PROJETO COMUNICAÇÃO JOYSTICK PS2 WIRELESS COM PIC 16F877A&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;// &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;//************************************************************************//&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;//Configuração PIC&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;//************************************************************************//&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;#include &amp;lt;16F877A.h&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;#FUSES NOWDT &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//Sem watch dog&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;#FUSES HS &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //Cristal alta velocidade&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;#FUSES PUT &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//Timer de alimentação&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;#FUSES NOPROTECT &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//Código desprotegido&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;#FUSES NOBROWNOUT &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //Sem reset de brown out&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;#FUSES NOLVP &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//Programação em alta voltagem&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;#FUSES NOCPD &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//Sem proteção de memória eeprom&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;#FUSES NOWRT&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;#use delay(clock=20000000) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// cristal de 20 Mhz&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;//Definição dos ports&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;#byte porta = 0x05&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;#byte portb = 0x06&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;#byte portc = 0x07&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;#byte portd = 0x08&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;#byte porte = 0x09&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;//************************************************************************//&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;//CONTROLE PLAYSTATION &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;//************************************************************************//&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;//Definição de I/Os &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;//************************************************************************//&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;#define cmd &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PIN_D6 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;#define att &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PIN_D4 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;#define clk &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PIN_D5 &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;#define dado &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;PIN_D7 &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;#define LED_STATUS &amp;nbsp; &amp;nbsp;PIN_E0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //Led indicador de status&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;#define start &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PIN_A1&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;#define select &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;PIN_A0&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;#define servo_x_l &amp;nbsp; &amp;nbsp; PIN_D0&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;#define servo_y_l &amp;nbsp; &amp;nbsp; PIN_D1&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;#define servo_x_r &amp;nbsp; &amp;nbsp; PIN_D2&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;#define servo_y_r &amp;nbsp; &amp;nbsp; PIN_D3&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;#define sobe &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;PIN_B0&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;#define desce &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PIN_B1&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;#define direita &amp;nbsp; &amp;nbsp; &amp;nbsp; PIN_B2&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;#define esquerda &amp;nbsp; &amp;nbsp; &amp;nbsp;PIN_B3&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;#define triangulo &amp;nbsp; &amp;nbsp; PIN_B4&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;#define bolinha &amp;nbsp; &amp;nbsp; &amp;nbsp; PIN_B5&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;#define quadrado &amp;nbsp; &amp;nbsp; &amp;nbsp;PIN_B6&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;#define xis &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PIN_B7&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;#define l1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;PIN_C0&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;#define l2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;PIN_C1&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;#define l3 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;PIN_C2&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;#define r1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;PIN_C3&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;#define r2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;PIN_C4&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;#define r3 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;PIN_C5&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;//************************************************************************//&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;//Definição de&amp;nbsp;parâmetros&amp;nbsp;de comunicação com o controle PS2&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;//************************************************************************//&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;//Tempos em micro-segundos (us)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;#define tempoInicio &amp;nbsp; &amp;nbsp; 20&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;#define tempoClk &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;20&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;#define tempoEntreByte &amp;nbsp;20&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;#define tempoEntreCiclo 40 //ms &amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;//************************************************************************//&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;//VARIAVEIS GERAIS &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;//************************************************************************//&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;int psxDado[6]; &amp;nbsp; &amp;nbsp; &amp;nbsp;//Buffer do controle&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;int psxDadoAnt[6]; &amp;nbsp; //Buffer do controle&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;int1 psxMudou;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;//Botões do Controle&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;int1 bt_select = 0;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;int1 bt_l3 &amp;nbsp;= 0;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;int1 bt_r3 &amp;nbsp;= 0;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;int1 bt_start = 0;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;int1 bt_sobe &amp;nbsp;= 0;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;int1 bt_desce &amp;nbsp;= 0;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;int1 bt_esquerda &amp;nbsp;= 0;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;int1 bt_direita = 0;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;int1 bt_l1 = 0;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;int1 bt_l2 = 0;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;int1 bt_r1 = 0;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;int1 bt_r2 = 0;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;int1 bt_triangulo = 0;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;int1 bt_bolinha &amp;nbsp; = 0;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;int1 bt_quadrado &amp;nbsp;= 0;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;int1 bt_xis = 0;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;int X_Left=0;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;int Y_Left=0;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;int X_Right=0;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;int Y_Right=0;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;int psxCont; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //contador genérico&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;int1 estado; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //estado do led&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;//************************************************************************//&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;//CONSTRUÇÕES DAS FUNÇÕES&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;//************************************************************************//&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;//************************************************************************//&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;//psxLeByte - Captura um byte, enviado pelo controle através do pino DADO&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;//************************************************************************//&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;int psxLeByte()&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;int aux=0;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;int c;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; for(c=0;c&amp;lt;=7;c++) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //Passa por todos os bits da variável psxByte&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;{&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; output_bit(clk,false); &amp;nbsp; &amp;nbsp; &amp;nbsp;//baixa o clock, para que o controle&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //disponibilize o dado no pino &quot;dado&quot;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; delay_us(tempoClk); &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;if(INPUT(dado)==1)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;bit_clear(aux, c);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; else&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;bit_set(aux, c);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; output_bit(clk,true); //Sobe o clock&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;delay_us(tempoEntreByte);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;return (aux); &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;//************************************************************************//&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;//psxGravaByte - Escreve um byte, enviado pelo controle através do pino CMD&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;//************************************************************************//&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;void psxGravaByte(int byteDado)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;int c;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;for(c=0;c&amp;lt;=7;c++) //Passa por todos os bits da variável psxByte&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;{&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//Sobe ou desce o pino de acordo com cada bit da variável psByte&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//significa que estamos enviando o comando 0x01h para o controle&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; if(bit_test(byteDado,c))&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;output_bit(cmd,true);&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; else&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;output_bit(cmd,false); &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; output_bit(clk,false); &amp;nbsp; &amp;nbsp; &amp;nbsp; //depois de setar o pino, manda clock &amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; delay_us(tempoClk); &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//aguarda um tempinho...&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; output_bit(clk,true); &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//up clock... NOTA: clock &amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp;}&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;output_bit(cmd,true); &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //up comando para sinalizar&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;delay_us(tempoEntreByte); &amp;nbsp; &amp;nbsp; &amp;nbsp; //espera um tempinho entre um byte e outro&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;//************************************************************************//&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;//psxCopiaDado - copia buffer atual para anterior&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;//************************************************************************//&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;void psxCopiaDado()&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;int i;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;for(i=0;i&amp;lt;6;i++)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; psxDadoAnt[i] = psxDado[i];&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;//*************************************************************************//&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;//psxComparaDado - Compara leitura anterior com a atual&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;//************************************************************************//&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;boolean psxComparaDado()&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;int j;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;for(j=0;j&amp;lt;6;j++)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;{&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; if(psxDadoAnt[j]!=psxDado[j])&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return (1);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;return (0);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;//************************************************************************//&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;//psxAtualizaVariaveis - converte buffer de leitura para variaveis discretas &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;//************************************************************************//&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;void psxAtualizaVariaveis()&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;if((psxDado[0] &amp;amp; 1) == 1)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; bt_select = 1;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;else&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; bt_select = 0;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;if((psxDado[0] &amp;amp; 2) == 2)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; bt_l3 = 1;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;else&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; bt_l3 = 0;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;if((psxDado[0] &amp;amp; 4) == 4)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; bt_r3 = 1;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;else&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; bt_r3 = 0;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;if((psxDado[0] &amp;amp; 8) == 8)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; bt_start = 1;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;else&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; bt_start = 0;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;if((psxDado[0] &amp;amp; 16) == 16)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; bt_sobe &amp;nbsp; &amp;nbsp;= 1;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;else&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; bt_sobe &amp;nbsp; &amp;nbsp;= 0;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;if((psxDado[0] &amp;amp; 32) == 32)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; bt_direita = 1;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;else&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; bt_direita = 0;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;if((psxDado[0] &amp;amp; 64) == 64)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; bt_desce &amp;nbsp;= 1;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;else&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; bt_desce &amp;nbsp;= 0;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;if((psxDado[0] &amp;amp; 128) == 128)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; bt_esquerda &amp;nbsp;= 1;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;else&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; bt_esquerda &amp;nbsp;= 0;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;if((psxDado[1] &amp;amp; 1) == 1)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; bt_l2 = 1;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;else&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; bt_l2 = 0;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;if((psxDado[1] &amp;amp; 2) == 2)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; bt_r2 = 1;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;else&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; bt_r2 = 0;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;if((psxDado[1] &amp;amp; 4) == 4)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; bt_l1 = 1;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;else&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; bt_l1 = 0;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;if((psxDado[1] &amp;amp; 8) == 8)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; bt_r1 = 1;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;else&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; bt_r1 = 0;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;if((psxDado[1] &amp;amp; 16) == 16)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; bt_triangulo = 1;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;else&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; bt_triangulo = 0;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;if((psxDado[1] &amp;amp; 32) == 32)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; bt_quadrado &amp;nbsp;= 1;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;else&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; bt_quadrado &amp;nbsp;= 0;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;if((psxDado[1] &amp;amp; 64) == 64)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; bt_xis= 1;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;else&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; bt_xis= 0;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;if((psxDado[1] &amp;amp; 128) == 128)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; bt_bolinha = 1;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;else&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; bt_bolinha = 0;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;x_right = psxDado[2];&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;y_right = psxDado[3];&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;x_Left = psxDado[4];&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;y_Left = psxDado[5];&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;//************************************************************************//&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;//psxLeControle - Executa a leitura do controle de playstation &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;//************************************************************************//&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;void psxLeControle()&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;int psxByte = 0;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;output_bit(cmd,true); &amp;nbsp; &amp;nbsp;//up comando&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;output_bit(clk,true); &amp;nbsp; &amp;nbsp;//up clock&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;output_bit(att,false); &amp;nbsp; //att em low - habilita o joystick&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;delay_us(tempoInicio); &amp;nbsp; //aguarda o controle entender o att em low&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;//Envia o primeiro byte para o controle - 0x01&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;psxByte = 1; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;psxGravaByte(psxByte);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;//Envia o segundo byte para o controle - 0x42h&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;psxByte = 66;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;psxGravaByte(psxByte);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;//Envia o terceiro byte para o controle - 0x00&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;psxByte = 0;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;psxGravaByte(psxByte);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;//Recupera os 6 próximo bytes&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; for(psxCont=0; psxCont&amp;lt;6; psxCont++)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;psxDado[psxCont] = psxLeByte();&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;//Volta o att para alto... libera o controle indicando que ele pode&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;//parar de enviar dados&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;output_bit(att,true); &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;//Compara com a variável anterior e verifica se será&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;//necessário atualizar as variaveis discretas&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;if(psxComparaDado()==1)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;{&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; psxAtualizaVariaveis();&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; psxMudou = true;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;else&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; psxMudou = false;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;psxCopiaDado();&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;//************************************************************************//&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;//atualizaSaidas - Atualiza o status de todas as saídas do PIC&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;//************************************************************************//&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;void atualizaSaidas()&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;output_bit(start,bt_start);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;output_bit(select,bt_select);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;output_bit(sobe,bt_sobe);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;output_bit(desce,bt_desce);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;output_bit(direita,bt_direita);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;output_bit(esquerda,bt_esquerda);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;output_bit(triangulo,bt_triangulo);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;output_bit(bolinha,bt_bolinha);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;output_bit(quadrado,bt_quadrado);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;output_bit(xis,bt_xis);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;output_bit(l1,bt_l1);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;output_bit(l2,bt_l2);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;output_bit(l3,bt_l3);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;output_bit(r1,bt_r1);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;output_bit(r2,bt_r2);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;output_bit(r3,bt_r3);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;//************************************************************************//&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;//PROGRAMA PRINCIPAL&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;//************************************************************************//&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;void main()&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;set_tris_a(0b00000100);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;set_tris_b(0b00000000);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;set_tris_c(0b00000000);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;set_tris_d(0b00000001);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;set_tris_e(0b00000000);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;porta=0x00;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;portb=0x00;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;portc=0x00;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;portd=0x00;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;porte=0x00;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;while(1)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;{&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;psxLeControle();&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; delay_ms(20);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; estado=!estado;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; output_bit(LED_STATUS,estado);&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;atualizaSaidas();&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;} //Fim do laço principal&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;}//Fim do programa&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;//************************************************************************//&lt;/span&gt;&lt;br /&gt;&lt;/codigo&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 19.2pt;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 19.2pt; text-align: justify;&quot;&gt;&lt;h3&gt;&lt;b&gt;&lt;span style=&quot;font-size: 18pt; line-height: 107%;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Referências:&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/h3&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 19.2pt; text-align: justify;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 18pt; line-height: 107%;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 19.2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;color: #333333; line-height: 107%;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Caso utilize este artigo como referência, por favor indique nosso endereço. Abaixo estão os links dos artigos que eu utilizei como minhas referências.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 19.2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;color: #333333; line-height: 107%;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 19.2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;a href=&quot;http://store.curiousinventor.com/guides/ps2#hardware&quot;&gt;http://store.curiousinventor.com/guides/ps2#hardware&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 19.2pt; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 19.2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;a href=&quot;http://www.lynxmotion.com/images/html/build036.htm&quot;&gt;http://www.lynxmotion.com/images/html/build036.htm&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 19.2pt; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 19.2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;a href=&quot;http://sophiateam.undrgnd.free.fr/psx/index.html&quot;&gt;http://sophiateam.undrgnd.free.fr/psx/index.html&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 19.2pt; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 19.2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;a href=&quot;http://www.robotizando.com.br/artigo_psJoy_pg1.php&quot;&gt;http://www.robotizando.com.br/artigo_psJoy_pg1.php&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style=&quot;line-height: 19.2pt;&quot;&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.marcelomaciel.com/feeds/47734099937804130/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://www.marcelomaciel.com/2013/02/conectando-o-joystick-do-ps2-sem-fio-ao.html#comment-form' title='31 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9125312181721201439/posts/default/47734099937804130'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9125312181721201439/posts/default/47734099937804130'/><link rel='alternate' type='text/html' href='http://www.marcelomaciel.com/2013/02/conectando-o-joystick-do-ps2-sem-fio-ao.html' title='Conectando o Joystick do PS2 Sem Fio ao PIC16F877a - (Parte 2) – Desenvolvimento'/><author><name>Marcelo Maciel</name><uri>http://www.blogger.com/profile/13218035075532390512</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://1.bp.blogspot.com/-dTse92D2iPg/UUIE2LSQTYI/AAAAAAAABak/NacpBnV6yB4/s220/1268234745.2444.128757530.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/-tAwg9J2TEgY/UUd9Hem9E9I/AAAAAAAABbY/P5Jdr8U2N04/s72-c/ps2-pic.png" height="72" width="72"/><thr:total>31</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9125312181721201439.post-4510466654211519041</id><published>2013-01-05T11:10:00.000-02:00</published><updated>2013-03-18T19:31:55.100-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Eletrônica"/><category scheme="http://www.blogger.com/atom/ns#" term="Engenharia"/><category scheme="http://www.blogger.com/atom/ns#" term="Tecnologia"/><title type='text'>Placa de Circuito Impresso - PCI - Método de Transferência Térmica</title><content type='html'>&lt;div class=&quot;&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;a href=&quot;http://4.bp.blogspot.com/-oCWhAL0Xmz4/UUd-ZOBrRlI/AAAAAAAABbg/dZp_aYdFRps/s1600/pci.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;200&quot; src=&quot;http://4.bp.blogspot.com/-oCWhAL0Xmz4/UUd-ZOBrRlI/AAAAAAAABbg/dZp_aYdFRps/s200/pci.png&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;H&lt;/span&gt;oje vamos apresentar um método muito prático e barato para confecção de uma placa de circuito impresso a ser utilizada na montagem de nossos protótipos. Trata-se do processo de transferência térmica, que, basicamente, consiste em imprimir o layout do circuito eletrônico em &amp;nbsp;uma folha de transparência para retro projetor e transferir este layout para a face cobreada de &amp;nbsp;uma placa de circuito impresso virgem através de um processo térmico, utilizando nada mais nada menos que um simples ferro de passar roupas.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; text-align: justify;&quot;&gt;Conforme podemos observar na foto acima, a qualidade final e a precisão das trilhas é muito boa e atende muito bem às necessidades de um protótipo rápido. Observamos o detalhe de uma PCI confeccionada através deste processo que receberá um Microprocessador de encapsulamento&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; text-align: justify;&quot;&gt;SMD&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; text-align: justify;&quot;&gt;TQFP de 64 pinos (distância entre terminais de 8 mills)&lt;/span&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;O primeiro passo para confecção de nossa PCI é o desenvolvimento do layout do circuito eletrônico. Esta etapa não é o foco deste artigo, mas pode ser realizada com a utilização de um software específico para este fim como o Proteus Ares, Eagle, Free PCB ou até mesmo um editor gráfico como o Corel Draw. Eu mesmo já fiz alguns layouts com o Corel Draw e ficaram muito bons, mas particularmente prefiro o Proteus Ares. Futuramente farei um artigo explicando como utilizá-lo.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Pois bem, de posse do layout pronto devemos imprimi-lo em tamanho real e com a imagem invertida, já que depois de transferido, será invertido novamente assumindo a orientação correta. Para que o layout seja transferido para a PCI, precisamos de uma impressora a laser monocromática e papel transparência próprio para ser utilizado nesta impressora. A caracterista de um impressora à laser é transferir a imagem para a folha de papel através de um processo térmico. Utilizaremos a mesma característica para retransferir este desenho para a PCI virgem.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;É muito importante que a transparência seja adequada para uso em impressoras à laser, caso contrário, o calor gerado na impressão pode derreter a transparência e danificar a impressora permanentemente. Este tipo de transparência pode ser encontrada em qualquer boa papelaria ou copiadora de sua cidade.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;No caso de não se dispor de uma impressora a laser, uma alternativa é levar o arquivo para ser impresso em uma copiadora (que possua uma impressora laser) ou então, imprimir em uma impressora convencional e depois tirar uma xérox diretamente na transparência. Este serviço pode ser realizado facilmente em qualquer boa copiadora que tenha um atendente com o mínimo de boa vontade. Peça para imprimir no máximo contraste, o que faz com seja depositado mais material durante à impressão e a qualidade final seja melhor.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Abaixo a ilustração de uma transparência para impressora à laser. Vale salientar que existe lado correto pra imprimir na transparência. Caso não exista nenhuma indicação na própria transparência, basta umidecer a ponta do dedo e tocar os lados da folha. O lado que apresentar a textura mais pegajosa, como uma cola fraca, é o lado correto para se imprimir.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;a href=&quot;http://4.bp.blogspot.com/-32V2FpGcC6c/UTVCYa7CaAI/AAAAAAAABUY/a2qwxoHcvq0/s1600/transparncia-ink-jet-tamanho-a4-50-folhas_MLB-F-178339848_7132.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;480&quot; src=&quot;http://4.bp.blogspot.com/-32V2FpGcC6c/UTVCYa7CaAI/AAAAAAAABUY/a2qwxoHcvq0/s640/transparncia-ink-jet-tamanho-a4-50-folhas_MLB-F-178339848_7132.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Para otimizar a transparência podemos imprimir layouts de diversos circuitos diferentes na mesma folha, quantos assim couberem. E vale a pena imprimir também mais de uma cópia do mesmo circuito para ser utilizado caso ocorra algum problema durante o processo e não seja necessário imprimir tudo novamente.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Depois de impresso, o resultado deve se assemelhar a imagem abaixo (Observação: A foto foi tirada do lado oposto ao impresso, por isso a imagem não aparece invertida):&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;a href=&quot;http://2.bp.blogspot.com/--QHk3fPgtaQ/UTU690Ab8PI/AAAAAAAABTA/YfIKU2Ch6as/s1600/IMG_5797.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;358&quot; src=&quot;http://2.bp.blogspot.com/--QHk3fPgtaQ/UTU690Ab8PI/AAAAAAAABTA/YfIKU2Ch6as/s640/IMG_5797.JPG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;O próximo passo consiste em corta a placa de circuito virgem do tamanho adequado, ou um pouco maior, para receber a transparência. A superfície da placa deve estar limpa e sem resíduos. Para isso, podemos lixá-la com uma esponja de aço levemente até que fique brilhando. Depois limpamos os resíduos restantes com álcool isopropílico. Podemos ainda dar um banho de alguns segundo na solução de percloreto de ferro (que mostraremos a seguir) para deixar a placa um pouco mais áspera e a tinta se fixar melhor.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://4.bp.blogspot.com/-qg_055zlzhQ/UTU7JLWxx3I/AAAAAAAABTI/iZeszxP-SoY/s1600/IMG_5778.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;358&quot; src=&quot;http://4.bp.blogspot.com/-qg_055zlzhQ/UTU7JLWxx3I/AAAAAAAABTI/iZeszxP-SoY/s640/IMG_5778.JPG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Com a placa limpa,&amp;nbsp;sobrepomos&amp;nbsp;a ela a transparência com a face impressa tocando a camada de cobre. Com alguns pedaços de fita dupla face nas pontas, garantimos que não se moverão durante a próxima etapa, a transferência térmica.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://2.bp.blogspot.com/-ZHxHiKYbMf4/UTU7SBt-_BI/AAAAAAAABTQ/cc4DRQBgTWw/s1600/IMG_5805.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;358&quot; src=&quot;http://2.bp.blogspot.com/-ZHxHiKYbMf4/UTU7SBt-_BI/AAAAAAAABTQ/cc4DRQBgTWw/s640/IMG_5805.JPG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Neste momento nos preparamos para realizar a transferência térmica propriamente dita. Para isso necessitamos de uma fonte de calor &amp;nbsp;plana e que aplique certa pressão sobre o&amp;nbsp;sanduíche&amp;nbsp;de placa para que a tinta do toner se desprenda da transparência e se deposite sobre a camada de cobre. Existem no mercado diversas prensas para esta finalidade, mas como nosso objetivo é o de confeccionar apenas alguns protótipos sazonalmente, podemos utilizar no lugar desta prensa um ferro de passar roupas comum.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/-kLU3S6qGarY/UTVCEwfbekI/AAAAAAAABUI/tm5KhuA9PTA/s1600/ferro-de-passar-a-vapor-nks-k925-127v-base-cermica-regulage_MLB-F-2820978878_062012.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;250&quot; src=&quot;http://3.bp.blogspot.com/-kLU3S6qGarY/UTVCEwfbekI/AAAAAAAABUI/tm5KhuA9PTA/s320/ferro-de-passar-a-vapor-nks-k925-127v-base-cermica-regulage_MLB-F-2820978878_062012.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Basta aquecê-lo na temperatura máxima por alguns minutos e, em seguida, pressioná-lo sobre a transparência e contra a placa de circuito impresso fazendo movimentos circulares e longitudinais. Passamos o ferro de passar por cima de toda a superfície a ser transferida tomando o cuidado para não deixá-lo parado sobre o mesmo ponto por muito tempo. O tempo de 2 à 3 minutos neste processo é o suficiente. Se deixar o ferro parado por muito tempo, o cobre pode aquecer demais e se despender da placa de fenolite estragando seu trabalho.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Se durante este processo a transparência se deformar é porque ela é de má qualidade ou não adequada para uso em impressoras à laser.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Em seguida basta deixar a placa esfriar um pouco ao ar livre e submergi-la em um recipiente com água. Isso fará com que a transparência seja removida facilmente deixando a tinta &amp;nbsp;impregnada na placa de cobre.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Pequenas falhas na transferência do layout podem ser corrigidas com uma caneta de marcação permanente, conhecidas como &quot;marca CD&quot; ou &quot;caneta retro projetora&quot;.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/-MP7_jwkALiU/UTX2w8V0YeI/AAAAAAAABU4/pUw2Ehdn0Bw/s1600/CTRFA1MPT.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;http://3.bp.blogspot.com/-MP7_jwkALiU/UTX2w8V0YeI/AAAAAAAABU4/pUw2Ehdn0Bw/s320/CTRFA1MPT.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;A próxima etapa do processo é a remoção do material não desejado da placa de cobre. Para isso utilizamos uma solução de percloreto de ferro - Encontrada em lojas de componentes eletrônicos ou de produtos químicos.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://1.bp.blogspot.com/-MTBvpl_akHY/UTVCFqyxM_I/AAAAAAAABUQ/2r9ia32HwiI/s1600/20110203141335_DSC03443.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;http://1.bp.blogspot.com/-MTBvpl_akHY/UTVCFqyxM_I/AAAAAAAABUQ/2r9ia32HwiI/s320/20110203141335_DSC03443.JPG&quot; width=&quot;161&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Algumas soluções devem ser dissolvidas em água, enquanto outras estão prontas para o uso. Existe ainda o percloreto de ferro em pó que deve ser dissolvido em água para o uso.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Siga as instruções do rótulo do produto.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Prepare um recipiente plástico ligeiramente maior que a área da placa a ser&amp;nbsp;corroída&amp;nbsp;e despeje percloreto em quantidade necessária para cobrir a placa em 1 cm aproximadamente. Quanto mais produto, mais rápido o processo, contudo, se economizar na quantidade poderá guardar para futuras placas.&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://2.bp.blogspot.com/-NaSClAvmzi0/UTU7XdB1tQI/AAAAAAAABTY/vedvU-wtGV8/s1600/IMG_5748.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;358&quot; src=&quot;http://2.bp.blogspot.com/-NaSClAvmzi0/UTU7XdB1tQI/AAAAAAAABTY/vedvU-wtGV8/s640/IMG_5748.JPG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Mergulhe a placa na solução de percloreto de ferro e movimente o recipiente continuamente, mantendo um dos lados apoiado sobre a superfície e elevando e abaixando a outra extremidade do recipiente plástico. Este procedimento faz com que a solução se movimente sobre a superfície da placa acelerando o processo de corrosão. Verifique regularmente o processo de corrosão retirando a placa da solução e visualizando se o cobre já foi removido. Este processo varia muito e, utilizando a quantidade recomenda anteriormente, dura 10 minutos aproximadamente.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Verifique atentamente se não existe mais cobre entre as trilhas antes de parar este processo. Outrossim, também não se deve deixar a placa imersa nesta solução por tempo demasiado, o que provocará a corrosão do cobre das próprias trilhas do circuito, inutilizando a placa.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://4.bp.blogspot.com/-5ScJe0t2ad4/UTU7dEPlkLI/AAAAAAAABTg/ozrMUczxoqg/s1600/IMG_5759.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;358&quot; src=&quot;http://4.bp.blogspot.com/-5ScJe0t2ad4/UTU7dEPlkLI/AAAAAAAABTg/ozrMUczxoqg/s640/IMG_5759.JPG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Quando todo o cobre não protegido for removido, retiramos a placa da solução e a lavamos com água corrente. Temos então a placa de circuito impresso pronta.&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/--XsM-7birQU/UTU7rW4U56I/AAAAAAAABTo/xtUHPYzXsQ8/s1600/IMG_5766.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;358&quot; src=&quot;http://3.bp.blogspot.com/--XsM-7birQU/UTU7rW4U56I/AAAAAAAABTo/xtUHPYzXsQ8/s640/IMG_5766.JPG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Retirando a tinta com uma esponja de aço, temos o resultado final apresentado abaixo:&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://1.bp.blogspot.com/-5QAlRb9jYcA/UTU72d9JP7I/AAAAAAAABTw/FBKc6izgj9Y/s1600/IMG_5772.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;358&quot; src=&quot;http://1.bp.blogspot.com/-5QAlRb9jYcA/UTU72d9JP7I/AAAAAAAABTw/FBKc6izgj9Y/s640/IMG_5772.JPG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Para proteger as trilhas de cobre e evitar sua oxidação recomendo a aplicação de uma camada de verniz a base de breu, encontrada nas lojas de componentes eletrônicos. Além de proteger contra a oxidação, o breu facilita a soldagem dos componentes na placa.&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://1.bp.blogspot.com/-vWPGRn-urSI/UTU75OgdzCI/AAAAAAAABT4/GjctwxEK9p0/s1600/IMG_5773.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;358&quot; src=&quot;http://1.bp.blogspot.com/-vWPGRn-urSI/UTU75OgdzCI/AAAAAAAABT4/GjctwxEK9p0/s640/IMG_5773.JPG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Vale lembrar que, como em qualquer aprendizado, o tempo leva à perfeição. Então não desanime se o primeiro resultado não sair como esperado, a prática trará ótimos resultados e seus projetos se tornarão mais profissionais ao longo do tempo.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.marcelomaciel.com/feeds/4510466654211519041/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://www.marcelomaciel.com/2013/01/pci-metodo-termico.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9125312181721201439/posts/default/4510466654211519041'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9125312181721201439/posts/default/4510466654211519041'/><link rel='alternate' type='text/html' href='http://www.marcelomaciel.com/2013/01/pci-metodo-termico.html' title='Placa de Circuito Impresso - PCI - Método de Transferência Térmica'/><author><name>Marcelo Maciel</name><uri>http://www.blogger.com/profile/13218035075532390512</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://1.bp.blogspot.com/-dTse92D2iPg/UUIE2LSQTYI/AAAAAAAABak/NacpBnV6yB4/s220/1268234745.2444.128757530.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/-oCWhAL0Xmz4/UUd-ZOBrRlI/AAAAAAAABbg/dZp_aYdFRps/s72-c/pci.png" height="72" width="72"/><thr:total>0</thr:total></entry></feed>