<?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-3000668579123608637</id><updated>2024-12-18T19:19:25.212-08:00</updated><category term="Tutoriais"/><category term="Início"/><category term="Novidades"/><title type='text'>Cleaps-tech  tecnologia eletrônica </title><subtitle type='html'>Tudo sobre eletrônica analógica e digital, projetos eletrônicos e tutoriais com microcontroladores.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://cleapseletroeletronica.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3000668579123608637/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://cleapseletroeletronica.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/3000668579123608637/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04117759606587902766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>36</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3000668579123608637.post-8719282860997448465</id><published>2017-07-14T11:08:00.000-07:00</published><updated>2017-11-01T06:47:35.440-07:00</updated><title type='text'>PIC16F15376 gravando o CHIP pelo LINUX </title><content type='html'>&lt;h2&gt;
&lt;span style=&quot;font-size: x-large;&quot;&gt;Gravando PIC16F15376 pelo LINUX &lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;(ubuntu ou Mint )&lt;/span&gt;&lt;/h2&gt;
&lt;div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;Olá pessoal, quanto tempo não escrevo, não é ? Bom, muita gente pediu e recebeu a placa de demonstração da Microchip com o nome e descrição acima e muita gente usou e ficou feliz. Bom, com sempre os usuários de linux que se danassem ao meu ver quando muitos projetos e inovações são lançados e com essa placa da Microchip não seria diferente.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Se você entrou em algum grupo e recebeu a notícia de que a Microchip tava dando plaquinhas de graça, se inscreveu e não recebeu pode esperar que demora mesmo, mas pelo que entendi, qualquer pedido é atendido.&amp;nbsp;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Vamos lá começar o sofrimento caso você seja um usuário LINUX e esteja tentando usar a plaquinha e não consegue no seu linux baseado em debian.&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
A primeira coisa a fazer é instalar o Java versão 8 em diante. Até o momento, 14 de Julho de 2017, a versão java 9 não é recomendada.&amp;nbsp;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b style=&quot;font-size: x-large;&quot;&gt;Instalando java 8 no linux baseado em debian - Ubuntu ou Mint &amp;nbsp;&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-size: large; font-weight: bold;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;b&gt;&lt;/b&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;&lt;b&gt;- Abra o terminal com ctrl+alt+t&lt;/b&gt;&lt;/b&gt;&lt;/div&gt;
&lt;b&gt;
&lt;/b&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;- Vamos incluir o repositório para java pelo PPA usando o WebUpd8, então copie/cole ou digite &amp;nbsp;&amp;nbsp;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;sudo add-apt-repository ppa:webupd8team/java&amp;nbsp;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;sudo apt-get update&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;sudo apt-get install oracle-java8-installer&amp;nbsp;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Depois da instalação, reinicie o computador. Após isso abra novamente o terminal com ctrl+alt+t e digite &lt;b&gt;java -version &lt;/b&gt;&amp;nbsp;e&amp;nbsp;&lt;b&gt;&amp;nbsp;&lt;/b&gt;tenha algo como a figura a seguir :&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhsOOdf2fkWq__TFu94UT2VfdQgeDE2Bj7X4-S9GeeoszMRA7QQckEwMPUWqkrokNdgDKo-JnnOXsSnTBbAq6plrXV67ZOwr2LksbBs_lsRrk2aZWC0rtxNLaR4HsIj2H80yzQhhSnJ0OA/s1600/terminal123.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;136&quot; data-original-width=&quot;391&quot; height=&quot;111&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhsOOdf2fkWq__TFu94UT2VfdQgeDE2Bj7X4-S9GeeoszMRA7QQckEwMPUWqkrokNdgDKo-JnnOXsSnTBbAq6plrXV67ZOwr2LksbBs_lsRrk2aZWC0rtxNLaR4HsIj2H80yzQhhSnJ0OA/s320/terminal123.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;Criando regras para acessar a USB da placa pelo linux.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;- Crie um novo grupo chamado &quot;microchip&quot; :&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;&lt;/b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;sudo groupadd -g 200 microchip&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;- Vamos criar uma nova regra de acesso :&amp;nbsp;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/b&gt;sudo gedit /etc/udev/rules.d/26-microchip.rules&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;- Na janela que se abre copie/cole ou digite :&amp;nbsp;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span style=&quot;background-color: #f3f3f3; font-family: &amp;quot;courier new&amp;quot; , monospace; font-size: 13.3333px;&quot;&gt;#Read/write access to Microchip devices&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;background-color: #f3f3f3; font-family: &amp;quot;courier new&amp;quot; , monospace; font-size: 13.3333px;&quot;&gt;&amp;nbsp; ATTR{idVendor}==&quot;04d8&quot;, OWNER:=&quot;root&quot;, GROUP:=&quot;microchip&quot;, MODE:=&quot;0660&quot;&lt;/span&gt;&amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; salve e saia&amp;nbsp;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;- Agora vamos associar a permissão do superusuário ao grupo criado :&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;sudo adduser seunomedeussuario microchip&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
OBS: se não sabe seu nome de usuário, ache ele digitando no terminal &lt;b&gt;whoami&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;- &amp;nbsp;Reiniciar o computador e pronto, sua plaquinha poderá aceitar &quot;arrastar/colar&quot; os arquivos &amp;nbsp; &amp;nbsp; &amp;nbsp;.HEX e rodar normalmente.&amp;nbsp;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;sudo reboot&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Abra normalmente seu MPLABX online, crie seu projeto e agora, no menu, do programa abra a aba Debug -&amp;gt; Manage USB Bridge :&amp;nbsp;&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;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiEdUNwT6EJb9Maq6WNI-vNV60pcqDdvbHr2wkuWNzZQS1v3qU5w87VejKqz5MT8bxa2n2wwVda3UEBhmfJg_1xX7puP7-EoWGuWIrHYA_UczvEZC3BBJBFpgUAnvt6KlUzJ0NiLgLRf8U/s1600/mplabx123.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;400&quot; data-original-width=&quot;600&quot; height=&quot;425&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiEdUNwT6EJb9Maq6WNI-vNV60pcqDdvbHr2wkuWNzZQS1v3qU5w87VejKqz5MT8bxa2n2wwVda3UEBhmfJg_1xX7puP7-EoWGuWIrHYA_UczvEZC3BBJBFpgUAnvt6KlUzJ0NiLgLRf8U/s640/mplabx123.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Quando aparecer a tela a seguir, o java já poderá estar instalado mas não habilitado no seu navegador, mas isso não é um impedimento, por hora. Se depois de todos os procedimentos ainda tiver dificuldade, me escreva para que se possa ser encontrado uma nova solução.&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Na aba da direita, download USB Bridge tool baixe o arquivo em um local que não tenha dificuldade de achar depois :&amp;nbsp;&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;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEik30fFY-c34gkrYSCA9U2OiW5mX5sa6-FjgsqgXo_prhX3kd7N0sLwZyL5a7VHZCVNDJFwEJkAIXALI1373qPdAev3uzjRSwAe_Qz8NBGJnbvGInGfmlcAFo2d2GpLb0-2GE-TAdpML38/s1600/mplabxusbtool.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;340&quot; data-original-width=&quot;600&quot; height=&quot;362&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEik30fFY-c34gkrYSCA9U2OiW5mX5sa6-FjgsqgXo_prhX3kd7N0sLwZyL5a7VHZCVNDJFwEJkAIXALI1373qPdAev3uzjRSwAe_Qz8NBGJnbvGInGfmlcAFo2d2GpLb0-2GE-TAdpML38/s640/mplabxusbtool.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Copie o token, ou essa numeração toda e abra o arquivo recém baixado no terminal:&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - sudo apt-get update.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - cd Downloads &amp;nbsp;( Somente se o arquivo foi baixado em downloads )&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &lt;i&gt;javaws USBBridge.jnlp&amp;nbsp;&lt;/i&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;i&gt;Quando abrir pedindo o token, cole ou digite os números que foi pedido lá em cima para copiar. Assim o plugin vai instalar um atalho na sua área de trabalho e toda vez que for usar o programa e quiser gravar o resultado basta copiar e colar na pasta da placa que ela já sai rodando.&amp;nbsp;&lt;/i&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;i&gt;Se precisar de mais informação basta me avisar. Vamos criar novas aplicações e ver como fica, &amp;nbsp;até a próxima e não esqueçam de compartilhar e, se puderem, colocar uma moeadinha na minha conta, isso ajuda muito a continuar. Obrigado a todos.&amp;nbsp;&lt;/i&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;script src=&quot;http://static.boo-box.com/javascripts/embed.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
</content><link rel='replies' type='application/atom+xml' href='http://cleapseletroeletronica.blogspot.com/feeds/8719282860997448465/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://cleapseletroeletronica.blogspot.com/2017/07/pic16f15376-gravando-o-chip-pelo-linux.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3000668579123608637/posts/default/8719282860997448465'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3000668579123608637/posts/default/8719282860997448465'/><link rel='alternate' type='text/html' href='http://cleapseletroeletronica.blogspot.com/2017/07/pic16f15376-gravando-o-chip-pelo-linux.html' title='PIC16F15376 gravando o CHIP pelo LINUX '/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04117759606587902766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhsOOdf2fkWq__TFu94UT2VfdQgeDE2Bj7X4-S9GeeoszMRA7QQckEwMPUWqkrokNdgDKo-JnnOXsSnTBbAq6plrXV67ZOwr2LksbBs_lsRrk2aZWC0rtxNLaR4HsIj2H80yzQhhSnJ0OA/s72-c/terminal123.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3000668579123608637.post-2860731327743559085</id><published>2016-02-07T11:26:00.000-08:00</published><updated>2016-02-07T15:33:09.240-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Tutoriais"/><title type='text'>Pequeno tutorial KICAD-PCB parte 3 - fazendo a PCB</title><content type='html'>&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;h2&gt;
&lt;span style=&quot;color: blue; font-size: x-large;&quot;&gt;Pequeno tutorial KICAD-PCB parte 3&lt;/span&gt;&lt;/h2&gt;
&lt;span style=&quot;color: blue; font-size: x-large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
 bb_bid = &quot;1674044&quot;;
 bb_lang = &quot;pt-BR&quot;;
 bb_keywords = &quot;GLCD,microcontrolador, TI, RENESAS, zilog,microchip,PLC,elevador, CD, programação,matemática,IC,LCD.&quot;;
 bb_name = &quot;custom&quot;;
 bb_limit = &quot;8&quot;;
 bb_format = &quot;bbb&quot;;
&lt;/script&gt;
&lt;script src=&quot;http://static.boo-box.com/javascripts/embed.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Olá, nobres leitores.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Depois de um tempo ocupado estou de volta para poder apresentar como fazer suas placas de circuito impresso de maneira bem fácil e rápida. Primeiro, vamos abrir o programa Kicad que foi baixado em www.kicad-pcb.org &amp;nbsp;ou em http://iut-tice.ujf-grenoble.fr/kicad/ &amp;nbsp;e instalado em local de sua preferência, clicando em 
&lt;img alt=&quot;&quot; border=&quot;0&quot; height=&quot;50&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiulAgethT31xqAT6enFrDg6aizG1MisP3Oa0lZI9sWIV4r6LwZBAW-304RnBtriXZAx6XSnWJ20mpVKC-ek841zwFzrfuIXsmTC2PBU4sY8YL1BuHQUsbF8bEX56UYyt9w-EbszejKhpQ/s200/kicadicone2.png&quot; title=&quot;&quot; width=&quot;50&quot; /&gt;lembrando que esse símbolo pode mudar em virtude de novas atualizações do programa, mas seguindo sempre o mesmo princípio. Dessa forma teremos a janela a seguir :&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhviwZoHioNuSiZ4dd889d85O4Fasg7QzSDRG1e-qco2KsQNaBSWrevYJ63jzwwPLHDLbAO4pK9UACP_RzuhXXkTwIWNLmLDJ8j9smL7OWij0p3tDkCDVNWP-kjm_47k4VPSQQatvdVp-8/s1600/Captura+de+tela+de+2012-11-16+13:12:40.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;358&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhviwZoHioNuSiZ4dd889d85O4Fasg7QzSDRG1e-qco2KsQNaBSWrevYJ63jzwwPLHDLbAO4pK9UACP_RzuhXXkTwIWNLmLDJ8j9smL7OWij0p3tDkCDVNWP-kjm_47k4VPSQQatvdVp-8/s640/Captura+de+tela+de+2012-11-16+13:12:40.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;br /&gt;
Em versões mais antigas do kicad a tela é mais parecida com a da figura seguinte, sem nada de &lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;diferente no uso do programa, ou seja, tanto o programa antigo como o novo o efeito é o mesmo.&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;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg82UqqfbYPhCh2qO0L1nYip0Dn35nWmMbm9gnEmefTGXpziQNiwudtqa29bJtDjqI06tGLblo13K14vN2OF0i6GgWy_OBYe73UfNwz1C7CpY0FKWOLH5xipa4Vijfp0ONr-vbikCWPMgw/s1600/janelakicadvelha.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;176&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg82UqqfbYPhCh2qO0L1nYip0Dn35nWmMbm9gnEmefTGXpziQNiwudtqa29bJtDjqI06tGLblo13K14vN2OF0i6GgWy_OBYe73UfNwz1C7CpY0FKWOLH5xipa4Vijfp0ONr-vbikCWPMgw/s640/janelakicadvelha.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Agora vamos abrir o CVPCB em &amp;nbsp; &amp;nbsp;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgxEH9FyuQn2fTP2ujg_4ArdFX21TCZeaLRR1-I0t1xBMzmBfjaFJ_OgK4DxjdsLYgt61rUmagd47-iPUR80y2KSwm_WqVP6ZD-kpMSnsENijQ3NKxPBqCudEz6IKkaEu5e6vpLFKBOUSM/s1600/cvpcb.jpg&quot; /&gt;&amp;nbsp;e clicar nas descrições do lado direito que correspondam ao componente do lado esquerdo, caso não saiba bem qual componente é o mais indicado, é possível ver o 3D dele clicando na aba de menu gráfico em &amp;nbsp;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhSGqE3asG0rfDS0jaBZcjil-RITw-tG2x5eNav1L_cmrsI-N6AAHqSGNdvR6mGo_DLbSsXcaWUYTIXCAOgxbrBws8bV-KLeyDTv7TeJwdNpIeF_H58nMo2AP0vvxGtDI-wDVfUXWFGpLk/s1600/verfootprint.png&quot; /&gt;&amp;nbsp; e se mesmo assim não estiver satisfeito, pode ir escolhendo o footprint que melhor se adapte ao seu componente. A figura abaixo pode expressar bem melhor o que se tem nessa escolha :&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;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj2DsEdK4bjUUPVZpTp8kv4_7-aUmWUaYi325kV_D7_SfiYuiDy31yxjqaBstKMx0vX1-2UIgYwyHbKrrur_lJcw1m_1qkGSTjcz3dqw4aLPdTftJFV7js8zqwC_lk2jmwdVAsC80FCkQM/s1600/cvpcbjanelado3d.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;339&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj2DsEdK4bjUUPVZpTp8kv4_7-aUmWUaYi325kV_D7_SfiYuiDy31yxjqaBstKMx0vX1-2UIgYwyHbKrrur_lJcw1m_1qkGSTjcz3dqw4aLPdTftJFV7js8zqwC_lk2jmwdVAsC80FCkQM/s640/cvpcbjanelado3d.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Depois que associou todos os componentes basta gravar na netlist gerada no desenho e clicar em salvar, a janela pode ser fechada sozinha, dependendo do computador, sistema operacional e versão de kicad ou basta fechar o cvpcb.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Neste momento, é hora de abrir o pcbnew na mesma tela principal do kicad ou na tela de desenho do &amp;nbsp;EEschema em &amp;nbsp;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi01L6J1QEZfEFupjLYrx6_ZRikWt37POHLmDhIaoiIdGr2kD93FcgRu2rGSs9AV_P6PlXYoe35ezUxEgPb1xEYEKHlJhc8w97swR6EoBRRIMUSwlSLiMAyTAsFUoCs2XwFW23NXAam0Yw/s1600/pcbnew2.jpg&quot; /&gt;&amp;nbsp;e teremos a figura a seguir :&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;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhcDxNGjyq7pmoy4zKwc7ygSGRpQRs1dxBta1v9oS7j1s4VuxaMtIRupmxrvb13GEGt1u___2-GGzKiqHPyKnFeSEVtJVww_Lx5GH2FhX3_Dzz5K-DLd3ZrhnqyJwRD0WWSLd0l9vAodQc/s1600/PCBNEW3.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;359&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhcDxNGjyq7pmoy4zKwc7ygSGRpQRs1dxBta1v9oS7j1s4VuxaMtIRupmxrvb13GEGt1u___2-GGzKiqHPyKnFeSEVtJVww_Lx5GH2FhX3_Dzz5K-DLd3ZrhnqyJwRD0WWSLd0l9vAodQc/s640/PCBNEW3.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; A partir daqui é ler o footprint e proceder o processo de confecção da placa de circuito impresso que será mostrado no vídeo a seguir :&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Espero ter sanado algumas dúvidas no uso do programa e se não consegui, podem me escrever em andrepereira@ig.com.br ou enviar uma mensagem por este canal que terei o prazer de poder ajudar. Gostaria de poder receber dicas, reclamações ou mesmo críticas para poder melhorar o sistema e os cursos e dicas sobre o programa kicad, que é uma ferramenta muito boa comparada com as versões pagas ou limitadas de outros programas. Se quiser se aprofundar mais um pouco e estudar o programa na sua programação e se aperfeiçoarem o mesmo o melhor seria com microvias que o kicad já possui e que pode ser melhorado. No mais é só isso e espero poder ter alcançado seus objetivos ao chegar aqui neste post. Até a próxima.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&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: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://cleapseletroeletronica.blogspot.com/feeds/2860731327743559085/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://cleapseletroeletronica.blogspot.com/2016/02/pequeno-tutorial-kicad-pcb-parte-3.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3000668579123608637/posts/default/2860731327743559085'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3000668579123608637/posts/default/2860731327743559085'/><link rel='alternate' type='text/html' href='http://cleapseletroeletronica.blogspot.com/2016/02/pequeno-tutorial-kicad-pcb-parte-3.html' title='Pequeno tutorial KICAD-PCB parte 3 - fazendo a PCB'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04117759606587902766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiulAgethT31xqAT6enFrDg6aizG1MisP3Oa0lZI9sWIV4r6LwZBAW-304RnBtriXZAx6XSnWJ20mpVKC-ek841zwFzrfuIXsmTC2PBU4sY8YL1BuHQUsbF8bEX56UYyt9w-EbszejKhpQ/s72-c/kicadicone2.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3000668579123608637.post-4085797267334331347</id><published>2015-12-03T09:44:00.001-08:00</published><updated>2016-02-03T03:41:46.877-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Tutoriais"/><title type='text'>KICAD 4 0   criando um componente de biblioteca</title><content type='html'>&lt;iframe allowfullscreen=&quot;&quot; frameborder=&quot;0&quot; height=&quot;344&quot; src=&quot;https://www.youtube.com/embed/83WdSykr9ww&quot; width=&quot;459&quot;&gt;&lt;/iframe&gt;</content><link rel='replies' type='application/atom+xml' href='http://cleapseletroeletronica.blogspot.com/feeds/4085797267334331347/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://cleapseletroeletronica.blogspot.com/2015/12/kicad-4-0-criando-um-componente-de.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3000668579123608637/posts/default/4085797267334331347'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3000668579123608637/posts/default/4085797267334331347'/><link rel='alternate' type='text/html' href='http://cleapseletroeletronica.blogspot.com/2015/12/kicad-4-0-criando-um-componente-de.html' title='KICAD 4 0   criando um componente de biblioteca'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04117759606587902766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://img.youtube.com/vi/83WdSykr9ww/default.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3000668579123608637.post-7990133361245136801</id><published>2015-10-13T19:52:00.000-07:00</published><updated>2016-02-08T15:46:18.140-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Tutoriais"/><title type='text'>Usando Zilog Z8 encore e Z8 encore XP! </title><content type='html'>&lt;h2&gt;
&lt;span style=&quot;color: #274e13; font-size: large;&quot;&gt;&lt;b&gt;Zilog - Usando o Timer e PWM do Z8 encore XP! - Parte 1&lt;/b&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;script src=&quot;http://static.boo-box.com/javascripts/embed.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;

&lt;br /&gt;
&lt;div style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&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;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&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;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgKhsxlN1UbuCA8b6PC3_V37A-P3eGIcxfNWQzSp6J-2qYt7BEEaN-N7E6Tt5nrLPpnXFi0lYesav8VwXI6FapdIiGvVh4TKGPbPEvp3-sLf4m9ehouRMZmmJqCEsY5Mr24QPuAre8jr8Y/s1600/zilogtimerpwm1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Mostra como usar o microcontrolador Zilog&quot; border=&quot;0&quot; height=&quot;160&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgKhsxlN1UbuCA8b6PC3_V37A-P3eGIcxfNWQzSp6J-2qYt7BEEaN-N7E6Tt5nrLPpnXFi0lYesav8VwXI6FapdIiGvVh4TKGPbPEvp3-sLf4m9ehouRMZmmJqCEsY5Mr24QPuAre8jr8Y/s640/zilogtimerpwm1.jpg&quot; title=&quot;Microcontrolador Zilog&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;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;b&gt;Vamos mostrar como usar o timer e PWM da linha Z8 Encore corretamente.&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;Olá, meus preciosos leitores, quanto tempo não escrevo aqui e já estava com saudades de vocês.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Para quem não sabe ando criando uma plataforma de desenvolvimento chamada ZILOGUITO e ainda é conceito (2015) e espero poder ter a ajuda de todos para que divulguem e usem a plataforma a fim de &amp;nbsp;difundir meu trabalho e ajudar a mais pessoas a terem alternativas.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Uma das coisas mais interessantes de se usar a linha Z8 encore e Z8 encore XP! é o fato de a gente poder gravar o micro com qualquer porta serial, seja física ou seja emulada com aqueles cabos conversores de USB-Serial e até mesmo gravar e desenvolver no linux &lt;/span&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;usando o WINE para rodar o ZDSII da Zilog. Então vamos lá.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;b&gt;Características do TIMER do Z8 encore:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;ul&gt;
&lt;li style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;4 timers de 16 bits auto recarregáveis, ou seja, funcionam em ciclo.&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;Podem gerar eventos de timers.&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;Podem gerar pulsos de PWM e de contagem.&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;Prescaler programável de 1 a 128.&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;Aceitam função captura e comparação.&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;Pino de entrada de sinal para timer e sinal de capitura.&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;Interrupção por evento do timer.&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;b style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;- A figura a seguir mostra como é a arquitetura interna do TIMER do Z8 encore!&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , 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;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjf1IAHYNwPWGhQuCehv5CaSqz9KoWJWCrxUsdUyTly0Os7NX2If-727TDhTovW5OY5kPvTA0d_0uRmcAC62TBzUJ-G3JkEvfU-kz9DncYpQoRNdygJTgRsuozTGrqRvJ2ZO5lL0aSgKD8/s1600/zilogtimer1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;346&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjf1IAHYNwPWGhQuCehv5CaSqz9KoWJWCrxUsdUyTly0Os7NX2If-727TDhTovW5OY5kPvTA0d_0uRmcAC62TBzUJ-G3JkEvfU-kz9DncYpQoRNdygJTgRsuozTGrqRvJ2ZO5lL0aSgKD8/s640/zilogtimer1.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;Operação do TIMER dos microcontroladores Z8 Encore!&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Como dito antes, os timers dos microcontroladores Z8 Encore! são de 16 bits. A tabela a seguir apresenta os valores de recarga, prescaler e duração que podem ser ajustados de acordo com os mínimos e máximos da contagem do Timer&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;table border=&quot;1&quot; style=&quot;width: 100%;&quot;&gt;
  &lt;tbody&gt;
&lt;tr&gt;
    &lt;td&gt;&lt;b&gt;Tipo de estouro do timer&lt;/b&gt;&lt;/td&gt;
    &lt;td&gt;&lt;b&gt;Recarga do timer&lt;/b&gt;&lt;/td&gt;  
    &lt;td&gt;&lt;b&gt;Valor do prescaler&lt;/b&gt;&lt;/td&gt;
    &lt;td&gt;&lt;b&gt;Duração&lt;/b&gt;&lt;/td&gt;
  &lt;/tr&gt;
&lt;tr&gt;
    &lt;td&gt;Baixo valor&lt;/td&gt;
    &lt;td&gt;0001H&lt;/td&gt;  
    &lt;td&gt;1&lt;/td&gt;
    &lt;td&gt;1 período de clock&lt;/td&gt;
  &lt;/tr&gt;
&lt;tr&gt;
    &lt;td&gt;Alto valor&lt;/td&gt;
    &lt;td&gt;0000H&lt;/td&gt;  
    &lt;td&gt;128&lt;/td&gt;
    &lt;td&gt;1 fclock*128*65536&lt;/td&gt;
  &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;b&gt; NOTA&lt;/b&gt; : quando o timer alcança o valor FFFFH, ele vai a 0000H e continua a contar.&lt;br /&gt;
&amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; O timer do Z8 Encore! pode ser configurado para funcionar em diferentes modos. A equação usada para calcular os parâmetros requeridos dos diferentes modos esta descrita a seguir. Para saber mais, a documentação de especificação do produto da linha Z8 encore (PS0176, PS0197, PS0199) pode ser encontrada no site da Zilog em www.zilog.com.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;b&gt;Modo contínuo.&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/b&gt;No modo contínuo, o período de estouro do timer é determinado pela seguinte equação:&amp;nbsp;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;b&gt;&amp;nbsp;Período de estouro do modo contínuo = (valor de recarga x prescale)/freq. do &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;sistema(em Hz).&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Nesse modo o contador resseta para 0001H depois de chegar ao valor de recarga e, então, &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;continua contando.&amp;nbsp;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Uma representação típica da saída de sinal e da interrupção gerada durante o modo contínuo e funcionamento é ilustrado na figura a seguir :&amp;nbsp;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6RwgwS4HSHEdmxJfR0xFQzLA4LO3olgAGpHKrQFMUQ4jyZX_KEb78z6BQhsOE1d4DJlgNwzIdonnel3s7M9kJwJuWcBqUVMnj2yJ7Vkp_1Fldhun_9Fc8WK3Kn0deF72h8vSb0yDL5EM/s1600/interupt.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;148&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6RwgwS4HSHEdmxJfR0xFQzLA4LO3olgAGpHKrQFMUQ4jyZX_KEb78z6BQhsOE1d4DJlgNwzIdonnel3s7M9kJwJuWcBqUVMnj2yJ7Vkp_1Fldhun_9Fc8WK3Kn0deF72h8vSb0yDL5EM/s640/interupt.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; O modo contínuo pode gerar uma forma de onda quadrada que pode ser aplicada em qualquer aplicação de tempo real. Entretanto não está limitada a somente aplicações desse tipo.&amp;nbsp;&lt;/div&gt;
&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;&lt;b&gt;Modo one-shot.&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/b&gt;No modo one-shot, o estouro e determinado pela seguinte equação :&amp;nbsp;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;b&gt;Período do estouro no modo one-shot = ((valor de recarga - valor de início) x &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; prescale)/freq. do sistema (em Hz).&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Nesse modo o contador de recarga resseta para 0001H depois de alcançar o valor de recarga e o timer é desabilitado automaticamente.O modo one-shot pode gerar um pulso de gatilho atrasado&amp;nbsp;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;&lt;b&gt;Modo contador.&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/b&gt;No modo contador o número de transições na entrada do timer que ocorre no início do timer é definido na seguinte equação:&amp;nbsp;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;b&gt;Transições na entrada no modo contador = (Valor atual do contador - valor de início ).&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/b&gt;Neste modo, o contador conta um evento externo até o valor de recarga, então resseta para 0001H e depois continua contando. Uma representação típica da saída gerada durante o modo de funcionamento do contador é ilustrado a seguir :&amp;nbsp;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj5RbmfWN4ofaSIFwsdV8Iley3OtAQMTnthDn0F6-rqIYVJYzGIu3jM6L27vUsHrdVlwUb6XyubxNSy4sMpTPD39FXU-jwDwAYrGhsdvvZhQIKaEYfm5tWAvVN5gs4FSLiN4rPB34xBOY8/s1600/interupt2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;150&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj5RbmfWN4ofaSIFwsdV8Iley3OtAQMTnthDn0F6-rqIYVJYzGIu3jM6L27vUsHrdVlwUb6XyubxNSy4sMpTPD39FXU-jwDwAYrGhsdvvZhQIKaEYfm5tWAvVN5gs4FSLiN4rPB34xBOY8/s640/interupt2.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; No modo contador é contado pulsos ou eventos externos. A entrada de sinal para o timer vem desses pulsos externos.&amp;nbsp;&lt;/div&gt;
&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;&lt;b&gt;Modo PWM.&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; O período PWM é definido pela seguinte equação : &amp;nbsp;Período PWM (em s) = (valor de recarga x valor do prescale)/freq. sistema em Hz.&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/b&gt;Se TPOL ( um bit de controle que seleciona a polaridade da porta I/O do registro de controle do timer ) é setado em zero, o ciclo da saída de tempo alto PWM para o período total é calculado como se segue :&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;b&gt;Ciclo PWM (em %) = valor de recarga - valor PWM x 100/valor de recarga&amp;nbsp;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Nota: &lt;/b&gt;O valor PWM tem de ser menor que o valor de recarga.&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/b&gt;Se TPOL é setado em 1, o ciclo ativo PWM é calculado da seguinte forma :&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;b&gt;Ciclo PWM (em %) = valor PWM x 100 / valor de recarga .&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/b&gt;A figura a seguir ilustra bem esse fato :&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj5E_EQiZq49ji8LY0Ohir-KQVNfdIHDlcdpXT8q4Es0mWUyqPSKcjU7ZhyjUOT7ftets74QZPQgsRCzlQu17UmKpR_PE_dJSO0hCTviEfn4wd3gx6KUtrsVXKSqyGAjwkulQaYMiyPYx4/s1600/interupt3.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;150&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj5E_EQiZq49ji8LY0Ohir-KQVNfdIHDlcdpXT8q4Es0mWUyqPSKcjU7ZhyjUOT7ftets74QZPQgsRCzlQu17UmKpR_PE_dJSO0hCTviEfn4wd3gx6KUtrsVXKSqyGAjwkulQaYMiyPYx4/s640/interupt3.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; O modo PWM é largamente usado em aplicações de sistema de controle. Por exemplo, em sistema de controle de servomotores, mudando o ciclo ativo do PWM, podemos mudar a &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; velocidade do motor.&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;ul&gt;
&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;b&gt;Modo captura.&amp;nbsp;&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/b&gt;No modo de captura, o tempo decorrido do timer que inicia os eventos de captura pode ser &amp;nbsp;calculado pela seguinte equação:&amp;nbsp;
&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;b&gt;Tempo decorrido de captura(s) = ((valor de captura - valor inicial) x prescale)/freq. sistema (Hz)&lt;/b&gt;&amp;nbsp;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp; &amp;nbsp;O modo de captura pode ser usado para calcular o intervalo de tempo entre dois eventos sucessivos, o que pode ser usado para desenvolver um medidor de intervalo de tempo.&amp;nbsp;&lt;/div&gt;
&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;&lt;b&gt;Modo comparador.&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
No modo comparador, a entrada é constantemente comparada com um evento específico dinâmico de modo a que gera uma interrupção sempre que um valor é alcançado. Então o timer zera a contagem depois de auto re-setar. O modo comparador pode ser definido pela seguinte equação:&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Tempo do modo de comparador =((valor do comparador - valor inicial) x &amp;nbsp;prescale)/freq. sistema(Hz)&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
A figura a seguir mostra a saída e a interrupção gerada no modo comparador :&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0FaS0kJRFSPrMAhIwdjIebMweEpvjG_djHmkDUhIO6vCogmipYsSmdzY3hIIQL2MDwD_bN6KgPXrmYkrWI8sVVsoFKELZwsPPJm2lJfXexo6IcmtADkiZWh3hX_W-gYRH6svqZeyUJBA/s1600/outeinterrupt.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;136&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0FaS0kJRFSPrMAhIwdjIebMweEpvjG_djHmkDUhIO6vCogmipYsSmdzY3hIIQL2MDwD_bN6KgPXrmYkrWI8sVVsoFKELZwsPPJm2lJfXexo6IcmtADkiZWh3hX_W-gYRH6svqZeyUJBA/s640/outeinterrupt.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;b&gt;Modo Gated.&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
No modo gatilho, o timer só conta se um sinal na entrada estiver em modo ativo ou nível alto.Quando o timer alcança o valor de recarga, ele re-seta para 0001H e então zera a contagem. E se a função alternativa de saída do timer estiver ativa, o pino de saída do timer muda de estado (alto ou baixo) no re-set do timer.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
A entrada de sinal para o timer nesse modo é o sinal de pulso onda quadrada. Este modo pode ser usado para medir o desliga/liga do timer que em retorno, pode medir a frequência do pulso de entrada. &amp;nbsp;&lt;/div&gt;
&lt;ul&gt;
&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;b&gt;Modo captura/compara.&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
No modo captura/compara, o início do tempo decorrido do timer para os eventos de captura do timer, pode ser calculado pela seguinte equação:&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;Tempo no modo captura/compara = ((valor de captura - valor inicial) x prescaler)/ freq. do sistema(Hz).&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;Bem! Com essas informações já dá para saber quais opções de uso do timer da linha Z8 encore e Z8 encore XP! podem satisfazer seus projetos. No próximo post, falaremos dos registradores usados nessas configurações de modo a ficar bem claro como acionar cada opção, até lá !&amp;nbsp;&lt;/b&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://cleapseletroeletronica.blogspot.com/feeds/7990133361245136801/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://cleapseletroeletronica.blogspot.com/2015/10/usando-zilog-z8-encore-e-z8-encore-xp.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3000668579123608637/posts/default/7990133361245136801'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3000668579123608637/posts/default/7990133361245136801'/><link rel='alternate' type='text/html' href='http://cleapseletroeletronica.blogspot.com/2015/10/usando-zilog-z8-encore-e-z8-encore-xp.html' title='Usando Zilog Z8 encore e Z8 encore XP! '/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04117759606587902766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgKhsxlN1UbuCA8b6PC3_V37A-P3eGIcxfNWQzSp6J-2qYt7BEEaN-N7E6Tt5nrLPpnXFi0lYesav8VwXI6FapdIiGvVh4TKGPbPEvp3-sLf4m9ehouRMZmmJqCEsY5Mr24QPuAre8jr8Y/s72-c/zilogtimerpwm1.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3000668579123608637.post-2985484641686780696</id><published>2014-06-05T14:53:00.001-07:00</published><updated>2016-02-07T15:34:51.299-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Tutoriais"/><title type='text'>Comunicação serial com java - Arduino e microcontroladores diversos - introdução.</title><content type='html'>&lt;h2&gt;
&lt;span style=&quot;color: #274e13; font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: x-large;&quot;&gt;Comunicação serial com java - Arduino e microcontroladores diversos.&lt;/span&gt;&lt;/h2&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;color: #274e13; font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: x-large;&quot;&gt;Introdução&lt;/span&gt;&lt;/div&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
 bb_bid = &quot;1674044&quot;;
 bb_lang = &quot;pt-BR&quot;;
 bb_keywords = &quot;GLCD,microcontrolador, TI, RENESAS, zilog,microchip,PLC,elevador, CD, programação,matemática,IC,LCD.&quot;;
 bb_name = &quot;custom&quot;;
 bb_limit = &quot;8&quot;;
 bb_format = &quot;bbb&quot;;
&lt;/script&gt;
&lt;script src=&quot;http://static.boo-box.com/javascripts/embed.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
&lt;span style=&quot;color: #274e13; font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: x-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;Já pensou em fazer seus projetos com linguagem de programação JAVA ? Poder controlar ou ler dados do seu arduino ou qualquer microcontrolador é uma tarefa um pouco confusa para quem não tem muita experiência com microcontroladores ou com programação de computadores. Isso se tornou um impedimento do passado, uma vez que as duas coisas andam juntas nos dias de hoje e poder ver, controlar e medir variáveis e mostrar na tela do computador ou tablet e, até mesmo, em smartphones é um desafio um &lt;/span&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;tanto animador e prazeroso, visto &amp;nbsp;que é a pessoa a idealizadora dos seus projetos.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Vamos começar por apresentar a IDE que vamos usar, que é &amp;nbsp;&lt;a href=&quot;http://www.netbeans.org/&quot;&gt;www.netbeans.org&lt;/a&gt;, que vamos usar para escrever nossos códigos e telas.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Uma vez com o netbeans instalado, vamos tentar baixar alguns componentes que nos ajudarão a compor nossa tela de supervisório ou uma simples IHM, que são as telas de medidores com ponteiros, lâmpadas, LEDs, sinaleiras e muito mais em&amp;nbsp;&lt;a href=&quot;http://grepcode.com/project/repo1.maven.org/maven2/eu.hansolo/SteelSeries/&quot;&gt;http://grepcode.com/project/repo1.maven.org/maven2/eu.hansolo/SteelSeries/&lt;/a&gt;&amp;nbsp;, prefira sempre as versões acima de 25, baixe até o 30 e guarde em uma pasta renomeada para pasta de JAR ou um nome que possa ser fácil de lembrar ou na pasta lib onde está instalado seu jre7 ou jre8, que no meu caso é na pasta java em C:/ no windows. O próprio netbeans se encarrega de criar a classpath, que é uma configuração de localização dessa jre no computador, se isso não acontecer, procure na internet como configurar uma classpath.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Depois de baixar os arquivos da steelseries, vamos baixar a API RXTX em&amp;nbsp;&lt;a href=&quot;http://java2s.com/Code/Jar/r/Downloadrxtx22pre2jar.htm&quot;&gt;http://java2s.com/Code/Jar/r/Downloadrxtx22pre2jar.htm&lt;/a&gt;&amp;nbsp;e colocar na mesma pasta onde foram baixados os arquivos JAR do steelseries.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Agora precisamos abrir o netbeans e esperar ele se estabilizar, feito isso, vamos criar um novo projeto, seguindo as telas a seguir :&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , 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;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuGAppgUVdqlt2KtaXiu4-dEb3B5kvXNZ2_8z0fxtqzabOkuMPcWW7gj1lxrrjUmnBIraOwubB6J3V4eXv0k93Bg96mbZx01SFBrZqcRBQdyQARMc09E_1xkFxc2TcFYeBhJ62unjilEE/s1600/tela1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;540&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuGAppgUVdqlt2KtaXiu4-dEb3B5kvXNZ2_8z0fxtqzabOkuMPcWW7gj1lxrrjUmnBIraOwubB6J3V4eXv0k93Bg96mbZx01SFBrZqcRBQdyQARMc09E_1xkFxc2TcFYeBhJ62unjilEE/s1600/tela1.jpg&quot; width=&quot;840&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Escolhemos JAVA e depois aplicação JAVA, como se segue, depois clique em próximo :&amp;nbsp;&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;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgPHwNsIQ-kizoAmZKyLlmSQyDeUV6Nz_by1Z8-ulVI9zpP1xfEbV3uKgIS3H67PGJXgP5KiNmpsnOV2Vyexuza-tYkJ2LQjPRQ0DfxVVxjR5sYLZdh-4Dmlw3gGjy2toLvy0na7QvI6VU/s1600/tela2.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgPHwNsIQ-kizoAmZKyLlmSQyDeUV6Nz_by1Z8-ulVI9zpP1xfEbV3uKgIS3H67PGJXgP5KiNmpsnOV2Vyexuza-tYkJ2LQjPRQ0DfxVVxjR5sYLZdh-4Dmlw3gGjy2toLvy0na7QvI6VU/s1600/tela2.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Damos um nome sugestivo ao nosso projeto e a localização de onde ele será alocado. Lembrando que as classes terão o nome do projeto, assim como a pasta do projeto, terá o nome do mesm. Desmarque &quot;criar pasta principal&quot; pois o netbeans vai fazer esse trabalho depois quando for criar um frame. Clique em finalizar.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&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;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , 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;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEge1jX7bNPDyv76PzavWU8mtfnCW4cgVEk6uVfuMpz-8itOnI997Ab2hZkcWFMfCIklpEVCGy6xtmY-iJTzw0PaeCcy0YP13Ob7oFN7ZfrLkT8wJomX1YyA6lgRaVjey6vwYG7ooYV8Y_Q/s1600/tela3_nomeprojetoSemMain.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEge1jX7bNPDyv76PzavWU8mtfnCW4cgVEk6uVfuMpz-8itOnI997Ab2hZkcWFMfCIklpEVCGy6xtmY-iJTzw0PaeCcy0YP13Ob7oFN7ZfrLkT8wJomX1YyA6lgRaVjey6vwYG7ooYV8Y_Q/s1600/tela3_nomeprojetoSemMain.jpg&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;A tela seguinte é o projeto já pronto para começar seus códigos em java, mas falta acrescentar os componentes que usaremos para efetuar a comunicação serial e isso vem logo a seguir. Clique no sinal de&amp;nbsp;+ no lado esquerdo do projeto e o abra até aparecer as subpastas.&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;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDlxd2EtyXUZi6PZ9OrIxnoQLRJTqOozX3jIw1ILqGf7gjjwU3PpZaZu5f1Y5hvt7YTjaZ3L6b18k3NopfjT8ZJ7qCayEtWYJ5Aa7xrgD1Q9IWKw3EF6ERPHqulN_xmhFpu2c6spHagZ4/s1600/tela4.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;360&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDlxd2EtyXUZi6PZ9OrIxnoQLRJTqOozX3jIw1ILqGf7gjjwU3PpZaZu5f1Y5hvt7YTjaZ3L6b18k3NopfjT8ZJ7qCayEtWYJ5Aa7xrgD1Q9IWKw3EF6ERPHqulN_xmhFpu2c6spHagZ4/s1600/tela4.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: left;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Após isso, na sub pasta default, clique com o botão direito do mouse em cima e selecione Novo, depois FormJFrame.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&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;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgMJIGLN6eTSkMTLeW87n1PdMtGmlHh8g7ILcPXoC5bxB3JTYpNdMtWSRVb4vORzUUix272u2Pp54JCPRjqf33BxJxEMuni6ffwmO6O78R91nQQXRosHLYrxphW7yvo3K1NTtarbyNzpXs/s1600/tela5_formFrame.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;360&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgMJIGLN6eTSkMTLeW87n1PdMtGmlHh8g7ILcPXoC5bxB3JTYpNdMtWSRVb4vORzUUix272u2Pp54JCPRjqf33BxJxEMuni6ffwmO6O78R91nQQXRosHLYrxphW7yvo3K1NTtarbyNzpXs/s1600/tela5_formFrame.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: left;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Damos um nome ao form e definimos um pacote. Pacote é o mesmo que pasta ou diretório onde colocamos nossos arquivos. Na maioria das vezes, somente estas duas definições são suficientes para a gente começar, que é dar nome ao form e definir o pacote. Clique em concluir .&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&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;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjwsChjKR_3eSxVcBxp00CKmbpp9mgnKCQbQzjLI65T7Vg-UYIKiz-mb1-vQ4Moowp9zAcY0yP47Ut-FaW_FeEqsViewz1GiW8wiztnSeZBPYeAANmiPK6yd7uJNjBKGvAyXmENo78YKgU/s1600/tela6_pastaform.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjwsChjKR_3eSxVcBxp00CKmbpp9mgnKCQbQzjLI65T7Vg-UYIKiz-mb1-vQ4Moowp9zAcY0yP47Ut-FaW_FeEqsViewz1GiW8wiztnSeZBPYeAANmiPK6yd7uJNjBKGvAyXmENo78YKgU/s1600/tela6_pastaform.jpg&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: left;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Agora temos a tela do nosso projeto :&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&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;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgV_15EfmJ7b_9F16YM7mKwhB4zvTBYsAVpa-niWerMKeGrTxH_pjbnJeLHXP2BwNcp7yj1btGmdAfA72UQUlfFQsUESvCEphbMS6yXBWPU7tjnY2ZaBRmgJ3DErqocehfVT-J_HtoqUPQ/s1600/tela7.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;328&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgV_15EfmJ7b_9F16YM7mKwhB4zvTBYsAVpa-niWerMKeGrTxH_pjbnJeLHXP2BwNcp7yj1btGmdAfA72UQUlfFQsUESvCEphbMS6yXBWPU7tjnY2ZaBRmgJ3DErqocehfVT-J_HtoqUPQ/s1600/tela7.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: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Agora, neste ponto, seu netbeans está com um projeto esqueleto, ou seja, sem nada. Você vai usar sua imaginação para definir ou idealizar uma tela que possa ser condizente com o que pretende fazer nos seus projetos.&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Coloque o mouse no lado direito, perto da área livre da paleta e tecle com o botão direito do mouse e escolha &quot;gerenciador de palheta&quot;, depois clique em &quot;Adicionar do JAR&quot; em instalar componentes da paleta, &amp;nbsp;escolha o arquivo jar que você baixou na pasta de sua escolha, conforme a figura, clique em próximo e selecione cada item que aparecer.&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&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;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi8V_AbldlOl2SoaT9i_T-oph8hC72ZBBI4SEUFyBA64k1_QmO4UpZDzQwvn9p8_GYomhd2aSw9DQcUbyIqn1rheZKwfIAJD6eyybQXwCEOucVd1fV474gTYEtmX9H7XebBjAfDRJAT4no/s1600/tela8.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;340&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi8V_AbldlOl2SoaT9i_T-oph8hC72ZBBI4SEUFyBA64k1_QmO4UpZDzQwvn9p8_GYomhd2aSw9DQcUbyIqn1rheZKwfIAJD6eyybQXwCEOucVd1fV474gTYEtmX9H7XebBjAfDRJAT4no/s1600/tela8.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: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Antes de mais nada, vamos dar um nome ao novo componente que queremos acrescentar :&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiM-jzBKZNsmqeRgW0_3r_PaTAE1jf6Z9uUgk2YNoeL54rhgIEbrGwn2vKrGJl6IYDfVBgHBbi4zrvsP85sBJ5rBu76F1lNosSbivFozCICoBeJz5nqyomB-Fs8RuEFXkvSOFwirhso1qc/s1600/tela8a.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiM-jzBKZNsmqeRgW0_3r_PaTAE1jf6Z9uUgk2YNoeL54rhgIEbrGwn2vKrGJl6IYDfVBgHBbi4zrvsP85sBJ5rBu76F1lNosSbivFozCICoBeJz5nqyomB-Fs8RuEFXkvSOFwirhso1qc/s1600/tela8a.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&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: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhGo_fs7yofsKjZtnG4Ds5faeKbHPDe95BtRZXU55Z80RVPd_aPqnadCtGi9DbDbIVy_wTnXxG6SjceyA0FlcO3HwjlRxRT2i6Ou7IlZX1Tq4q9rZIe1aSGkguDNLodMC6HPC4O_K8xELA/s1600/tela10.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;340&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhGo_fs7yofsKjZtnG4Ds5faeKbHPDe95BtRZXU55Z80RVPd_aPqnadCtGi9DbDbIVy_wTnXxG6SjceyA0FlcO3HwjlRxRT2i6Ou7IlZX1Tq4q9rZIe1aSGkguDNLodMC6HPC4O_K8xELA/s1600/tela10.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Agora devemos escolher em qual categoria vamos associar nosso componente e depois disso falta apenas associar a lib de RXTX na pasta do projeto e pronto para começar :&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;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjl2wxYTN3dKA-GG0ujzh8Kpgdzo2Mpre_tS5vtyTyQIf5u7nvkkcwJycrW8632kD0ii6HNE1cTPJxvlkfNf2pqs44vbD6n1buXCxwOLJpxIpw4E4ytLMk0pQLxNhTVmyplorrIYHBk_mI/s1600/tela11.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;472&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjl2wxYTN3dKA-GG0ujzh8Kpgdzo2Mpre_tS5vtyTyQIf5u7nvkkcwJycrW8632kD0ii6HNE1cTPJxvlkfNf2pqs44vbD6n1buXCxwOLJpxIpw4E4ytLMk0pQLxNhTVmyplorrIYHBk_mI/s1600/tela11.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Agora associamos os componentes a paleta da direita com o nome que você criou para a categoria e pronto, nesta parte :&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjoafTpwskJVW-k17qZP8pnVICYVaVHAEwfBb0zcGjIJHz2C2fNQTe1N8Rc2Sl5KA3K0eIHDCFdbaTzFtHcJJPyBFS60i9f8pkIv5BpCtgqYmGV0S2-jw7WEMsxLdMtDeR8_hgDNm1LVMI/s1600/tela12a.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjoafTpwskJVW-k17qZP8pnVICYVaVHAEwfBb0zcGjIJHz2C2fNQTe1N8Rc2Sl5KA3K0eIHDCFdbaTzFtHcJJPyBFS60i9f8pkIv5BpCtgqYmGV0S2-jw7WEMsxLdMtDeR8_hgDNm1LVMI/s1600/tela12a.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Falta , agora inserir a API de RXTX do java no projeto em questão para a gente poder usar a porta serial como queremos. O arquivo jar com nome tridente.jar pode ser conseguido aqui &lt;a href=&quot;https://kenai.com/projects/trident/downloads&quot;&gt;https://kenai.com/projects/trident/downloads&lt;/a&gt;&amp;nbsp;,ele serve para fazer os componentes da palheta funcionarem adequadamente.&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;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhtjCuXr12zvSDMen-6IhyEJH1-MVWEOYG987krAnGNO3McZ9VIgs6-X1zyWdCDbA-0X90TkiPlqttEmdboTNrcCXOwOdpmSnF14clap4JrYjTsrmOXgqvoN1kmNjMeoThZzX6z2B9HSKc/s1600/tela13.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhtjCuXr12zvSDMen-6IhyEJH1-MVWEOYG987krAnGNO3McZ9VIgs6-X1zyWdCDbA-0X90TkiPlqttEmdboTNrcCXOwOdpmSnF14clap4JrYjTsrmOXgqvoN1kmNjMeoThZzX6z2B9HSKc/s1600/tela13.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg22dJLl5tN18XOUFBT2HiV4bEQm1s0MLYeIT2WuNYoW7Asm3XUd1XHr9F5tHr3uCTIOelyWlmhGcb6pOS2lIzWq_SXWHD7aIEaWMwD4M5PhHPpbyAuERW14t1RncKBbohQRprd3jyRsuw/s1600/tela14.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;348&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg22dJLl5tN18XOUFBT2HiV4bEQm1s0MLYeIT2WuNYoW7Asm3XUd1XHr9F5tHr3uCTIOelyWlmhGcb6pOS2lIzWq_SXWHD7aIEaWMwD4M5PhHPpbyAuERW14t1RncKBbohQRprd3jyRsuw/s1600/tela14.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&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;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjShiHNqjPZGKO83awRMcgx35NuZ80EPZYqlSxbkaEPyVuKi6dwdf9cTqCvzW4HAwqx75qvvFEgcy0IqKxU2cNR9pyoIWFu61DnV3oBo1ZkzeoHQ329GpsUSfeR-kkwpN6Qtoir5SvsODg/s1600/tela15.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;360&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjShiHNqjPZGKO83awRMcgx35NuZ80EPZYqlSxbkaEPyVuKi6dwdf9cTqCvzW4HAwqx75qvvFEgcy0IqKxU2cNR9pyoIWFu61DnV3oBo1ZkzeoHQ329GpsUSfeR-kkwpN6Qtoir5SvsODg/s1600/tela15.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Pronto! Nos próximos posts, tentarei começar com essa biblioteca toda e apresentar um apanhado de como conectar e desconectar a porta serial com arduino, pinguino, ziloguito, renesas e etc. para verem a facilidade de se poder criar uma IHM funcional e prática.&lt;br /&gt;
Bons estudos e até lá !&lt;br /&gt;
Considere doar qualquer quantia como incentivo a escrever este blog, não é obrigado, não é isso. Só para saber se meu trabalho está sendo bem recebido e sendo útil. É só clicar nos botões doar. Obrigado.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://cleapseletroeletronica.blogspot.com/feeds/2985484641686780696/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://cleapseletroeletronica.blogspot.com/2014/06/comunicacao-serial-com-java-arduino-e.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3000668579123608637/posts/default/2985484641686780696'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3000668579123608637/posts/default/2985484641686780696'/><link rel='alternate' type='text/html' href='http://cleapseletroeletronica.blogspot.com/2014/06/comunicacao-serial-com-java-arduino-e.html' title='Comunicação serial com java - Arduino e microcontroladores diversos - introdução.'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04117759606587902766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuGAppgUVdqlt2KtaXiu4-dEb3B5kvXNZ2_8z0fxtqzabOkuMPcWW7gj1lxrrjUmnBIraOwubB6J3V4eXv0k93Bg96mbZx01SFBrZqcRBQdyQARMc09E_1xkFxc2TcFYeBhJ62unjilEE/s72-c/tela1.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3000668579123608637.post-7779097514643030112</id><published>2013-11-17T13:17:00.001-08:00</published><updated>2016-02-07T15:42:24.096-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Tutoriais"/><title type='text'>Módulo de som e voz para projetos - arduino ou stick. </title><content type='html'>&lt;h2&gt;
&lt;span style=&quot;color: #274e13;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;Módulo de som para projetos - Arduino ou qualquer MCU&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;span style=&quot;color: blue; font-size: large;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-size: large;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Que tal colocar voz e som nas suas aplicações ?&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-size: large;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(andrepereira@ig.com.br - 21 991267264 - RJ )&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #274e13; font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
 bb_bid = &quot;1674044&quot;;
 bb_lang = &quot;pt-BR&quot;;
 bb_keywords = &quot;GLCD,microcontrolador, TI, RENESAS, zilog,microchip,PLC,elevador, CD, programação,matemática,IC,LCD.&quot;;
 bb_name = &quot;custom&quot;;
 bb_limit = &quot;8&quot;;
 bb_format = &quot;bbb&quot;;
&lt;/script&gt;
&lt;script src=&quot;http://static.boo-box.com/javascripts/embed.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
&lt;br /&gt;
Olá pessoal, quanto tempo a gente não se fala, ou seja, não se lê ?&lt;br /&gt;
Pois bem ! Vocês pediram e serão atendidos. O tempo parado foi para poder criar um projeto que atendessem a alguns de vocês e se você se identificou com o assunto, obrigado, você é a pessoa que tornou isso possível com sua sugestão, sua ideia e sua crítica.&lt;br /&gt;
Estamos lançando um módulo de som que pode ser usado para reproduzir sons diversos, desde um música, um aviso, uma criação para festas ou avisos sonoros de alerta ou uma secretária eletrônica microcontrolada, o importante é a sua imaginação onde usar e isso é com você. Cabe a mim, criar o&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt; produto e ele está pronto.&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;h3&gt;
&lt;span style=&quot;color: #351c75; font-size: x-large;&quot;&gt;&lt;b&gt;Módulo de som WT588D_arduino&lt;/b&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;color: #351c75; font-size: x-large;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&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;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5lYQOUItrEoLZ5vgapvn62yFkmUGPDCuEGpeRvXAL95Mb01aMyc_8jtKYikdZPJSHCxw9L_dkLIU-npyt5yWuMoigJuM-LiHZJ6QPVIgumtzUZDIJt-tTmysxiduZoixJQdduok5edww/s1600/modulodesom1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Demonstração de módulo de som arduino com as portas de entrada&quot; border=&quot;0&quot; height=&quot;480&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5lYQOUItrEoLZ5vgapvn62yFkmUGPDCuEGpeRvXAL95Mb01aMyc_8jtKYikdZPJSHCxw9L_dkLIU-npyt5yWuMoigJuM-LiHZJ6QPVIgumtzUZDIJt-tTmysxiduZoixJQdduok5edww/s640/modulodesom1.png&quot; title=&quot;Modulo de som WT588D-arduino&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;O módulo foi criado para ser acionado por microcontroladores, computadores pela saída paralela ou sozinho, pelos botões que nele estão.&amp;nbsp;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;O uso é simples. Em modo standalone, ou como está, basta plugar na USB de algum computador, baixar o arquivo de som e apertar os botões que se encontram no módulo e ver o som tocar. Nesse caso, se for usar alimentação externa de 5V, esta deverá estar ausente durante o processo de gravação, onde se retira o cabo USB e se conecta a alimentação de 5V externa.&amp;nbsp;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;No modo microcontrolador, pode usar o arduino ou QUALQUER outro microcontrolador para acionamento das vozes ou sons que tenha baixado. Os modos de botões só aceitam 4 vozes, mas é possível usar o modo MP3 e ter mais vozes apenas incrementando ou decrementando o scan interno. O software com a função MP3 não está mais disponível no site do fabricante, até onde sei, só eu tenho oficialmente e autorizado a ter. Pode ser fornecido a todos que adquirem os produtos da waytronic china comigo.&amp;nbsp;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;Esse módulo da foto tem capacidade de tocar até 120 segundos de som e voz que pode variar em função do sample rate do arquivo de som.&amp;nbsp;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;O valor desse módulo é dado a quem interesse tenha em adquirir pois ele pode variar no tempo, pois é comprado os chips em dólar e não dá para fechar um valor fixo em tempo longo de mais de 4 meses ou 5 meses.&amp;nbsp;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;A maioria das aplicações se encontram nessas combis e vans que fazem o anúncio de rotas, em metrô e trens, anunciando as estações, em brinquedos que falam, secretárias eletrônicas e onde se precise de som e voz.&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;Deixo alguns vídeos abaixo para mostrar o módulo funcionando e como é gravado e posto para funcionar. Lembrando que, tanto a versão stick, ou seja, a pequenininha chamada WT588d-U quanto a tipo arduino, são gravadas do mesmo jeito e funcionam do mesmo jeito.&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;No desenho abaixo temos o diagrama de ligações do módulo stick ou placa de 28pinos :&amp;nbsp;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEixONAMWy3Gq5l-SQuhYfoaiyAhnIU2jmfw4A7i6VBdq9Cx-Q7uXOhL3W5HKcRFZUftmF4SmtHUEdj6P23yY7nSXp_Bh1Dr_6nxnXGC210ctmQC-hMvLRUieSc38_jcwqfKFUUbkUJ1XnE/s1600/WT588D_2.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;284&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEixONAMWy3Gq5l-SQuhYfoaiyAhnIU2jmfw4A7i6VBdq9Cx-Q7uXOhL3W5HKcRFZUftmF4SmtHUEdj6P23yY7nSXp_Bh1Dr_6nxnXGC210ctmQC-hMvLRUieSc38_jcwqfKFUUbkUJ1XnE/s640/WT588D_2.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;Agora, a ligação elétrica do módulo acima, do início do post, da placa azul, segue a seguir :&amp;nbsp;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjszZMI61jiSzQFpWBGHmGE4uCtl2wJzLXrbREb7IgtU81BGbJLxKV1vlb9uAC0m3KU414PAjajshXyn79QVCiurS5INYRGdg9FQmAEDVzjDNgRRC02XJONOFcscsCzQaXsYmHC5xJGTdw/s1600/wt588d_manual1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;566&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjszZMI61jiSzQFpWBGHmGE4uCtl2wJzLXrbREb7IgtU81BGbJLxKV1vlb9uAC0m3KU414PAjajshXyn79QVCiurS5INYRGdg9FQmAEDVzjDNgRRC02XJONOFcscsCzQaXsYmHC5xJGTdw/s640/wt588d_manual1.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: left;&quot;&gt;
O diagrama completo está aqui. O diagrama completo contempla as duas placas, a do arduino e a pequena.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&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;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQl3GTQOTuHzE4nEMtajuXqu9Cnt2WYVwWH7uf1VkM9zm5_iIjaIAWoga6337CfML1JcBQ5pUqE9QAqtLgsWw-b8OSMPh_UD03gLbcpZoxJITtRLKRBeNMnGMJJfvjDOEZoL5pQNSuvIQ/s1600/wt588d_manual2.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;640&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQl3GTQOTuHzE4nEMtajuXqu9Cnt2WYVwWH7uf1VkM9zm5_iIjaIAWoga6337CfML1JcBQ5pUqE9QAqtLgsWw-b8OSMPh_UD03gLbcpZoxJITtRLKRBeNMnGMJJfvjDOEZoL5pQNSuvIQ/s640/wt588d_manual2.jpg&quot; width=&quot;590&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Com isso em mente, acho que ficou claro a função dos módulos de som e vamos a exemplos de aplicações ou de como eles funcionam.&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;http://youtu.be/N0Hu4s20sII&quot;&gt;Módulo som &lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&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/N0Hu4s20sII?feature=player_embedded&#39; frameborder=&#39;0&#39;&gt;&lt;/iframe&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/uGCzlwRURUg?feature=player_embedded&#39; frameborder=&#39;0&#39;&gt;&lt;/iframe&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;
Obrigado por assistirem mais este post, a sua contribuição é muito importante. Participe!&amp;nbsp;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://cleapseletroeletronica.blogspot.com/feeds/7779097514643030112/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://cleapseletroeletronica.blogspot.com/2013/11/modulo-de-som-e-voz-para-projetos.html#comment-form' title='2 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3000668579123608637/posts/default/7779097514643030112'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3000668579123608637/posts/default/7779097514643030112'/><link rel='alternate' type='text/html' href='http://cleapseletroeletronica.blogspot.com/2013/11/modulo-de-som-e-voz-para-projetos.html' title='Módulo de som e voz para projetos - arduino ou stick. '/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04117759606587902766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5lYQOUItrEoLZ5vgapvn62yFkmUGPDCuEGpeRvXAL95Mb01aMyc_8jtKYikdZPJSHCxw9L_dkLIU-npyt5yWuMoigJuM-LiHZJ6QPVIgumtzUZDIJt-tTmysxiduZoixJQdduok5edww/s72-c/modulodesom1.png" height="72" width="72"/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3000668579123608637.post-7544578795690317929</id><published>2013-07-25T16:49:00.000-07:00</published><updated>2016-02-07T15:42:41.855-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Tutoriais"/><title type='text'>Zilog - ZDSII a IDE de programação free em C. - 3ª Parte</title><content type='html'>&lt;h2&gt;
&lt;span style=&quot;color: #274e13; font-size: large;&quot;&gt;&lt;b&gt;Zilog - Acendendo um LED com Z8 encore XP! - Parte 3&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;span style=&quot;color: #274e13; font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
 bb_bid = &quot;1674044&quot;;
 bb_lang = &quot;pt-BR&quot;;
 bb_keywords = &quot;GLCD,microcontrolador, TI, RENESAS, zilog,microchip,PLC,elevador, CD, programação,matemática,IC,LCD.&quot;;
 bb_name = &quot;custom&quot;;
 bb_limit = &quot;8&quot;;
 bb_format = &quot;bbb&quot;;
&lt;/script&gt;
&lt;script src=&quot;http://static.boo-box.com/javascripts/embed.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
&lt;br /&gt;
&lt;div style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&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;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&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;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjXyDE9lWjxDIIEP8UQx7WUeuyShrIsS5ssVD4yss_W81vKUUwmrjFHNg__5EUEXJ0gTQOU517oqoaM4Z9nE-7JBkXJVA_2t2q5CR5od5kBCZnMx4TUPoOzAxjIVpNKJkFmjHeYtIQsacA/s1600/parte3_zilogCurso.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjXyDE9lWjxDIIEP8UQx7WUeuyShrIsS5ssVD4yss_W81vKUUwmrjFHNg__5EUEXJ0gTQOU517oqoaM4Z9nE-7JBkXJVA_2t2q5CR5od5kBCZnMx4TUPoOzAxjIVpNKJkFmjHeYtIQsacA/s1600/parte3_zilogCurso.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;b&gt;Configurando as PORTAS do Z8 Encore corretamente.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;color: blue; font-weight: bold;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;Vamos continuar nossa série com uma implementação mais completa e mais avançada. Nesta parte vamos falar de operações lógicas que facilitam a vida de programadores C que é a operação de mudar bits individualmente ou em bytes para mudar o status de um pino ou bit de algum registrador, o que facilita e muito no uso de registradores como I/Os em modo geral e em função alternativa.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Observe a tabela a seguir, com relação a manipulação de bits com operação lógica e&lt;/span&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt; aritmética :&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;table cellpadding=&quot;4&quot; cellspacing=&quot;0&quot; style=&quot;text-align: center; width: 643px;&quot;&gt;
 &lt;colgroup&gt;&lt;col width=&quot;88&quot;&gt;&lt;/col&gt;
 &lt;col width=&quot;46&quot;&gt;&lt;/col&gt;
 &lt;col width=&quot;55&quot;&gt;&lt;/col&gt;
 &lt;col width=&quot;63&quot;&gt;&lt;/col&gt;
 &lt;col width=&quot;63&quot;&gt;&lt;/col&gt;
 &lt;col width=&quot;63&quot;&gt;&lt;/col&gt;
 &lt;col width=&quot;63&quot;&gt;&lt;/col&gt;
 &lt;col width=&quot;63&quot;&gt;&lt;/col&gt;
 &lt;col width=&quot;63&quot;&gt;&lt;/col&gt;
 &lt;/colgroup&gt;&lt;tbody&gt;
&lt;tr valign=&quot;TOP&quot;&gt;
  &lt;td style=&quot;border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: 1px solid #000000; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0cm; padding-top: 0.1cm;&quot; width=&quot;88&quot;&gt;&lt;div class=&quot;western&quot; style=&quot;text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td colspan=&quot;4&quot; style=&quot;border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: 1px solid #000000; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0cm; padding-top: 0.1cm;&quot; width=&quot;252&quot;&gt;&lt;div class=&quot;western&quot; style=&quot;text-align: center;&quot;&gt;
( &amp;amp; ) AND&lt;/div&gt;
&lt;/td&gt;
  &lt;td colspan=&quot;4&quot; style=&quot;border: 1px solid #000000; padding: 0.1cm;&quot; width=&quot;277&quot;&gt;&lt;div class=&quot;western&quot; style=&quot;text-align: center;&quot;&gt;
( | ) OR&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr valign=&quot;TOP&quot;&gt;
  &lt;td style=&quot;border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0cm; padding-top: 0cm;&quot; width=&quot;88&quot;&gt;&lt;div class=&quot;western&quot; style=&quot;text-align: center;&quot;&gt;
&lt;b&gt;BIT1&lt;/b&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0cm; padding-top: 0cm;&quot; width=&quot;46&quot;&gt;&lt;div class=&quot;western&quot; style=&quot;text-align: center;&quot;&gt;
0&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0cm; padding-top: 0cm;&quot; width=&quot;55&quot;&gt;&lt;div class=&quot;western&quot; style=&quot;text-align: center;&quot;&gt;
1&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0cm; padding-top: 0cm;&quot; width=&quot;63&quot;&gt;&lt;div class=&quot;western&quot; style=&quot;text-align: center;&quot;&gt;
0&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0cm; padding-top: 0cm;&quot; width=&quot;63&quot;&gt;&lt;div class=&quot;western&quot; style=&quot;text-align: center;&quot;&gt;
1&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0cm; padding-top: 0cm;&quot; width=&quot;63&quot;&gt;&lt;div class=&quot;western&quot; style=&quot;text-align: center;&quot;&gt;
0&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0cm; padding-top: 0cm;&quot; width=&quot;63&quot;&gt;&lt;div class=&quot;western&quot; style=&quot;text-align: center;&quot;&gt;
1&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0cm; padding-top: 0cm;&quot; width=&quot;63&quot;&gt;&lt;div class=&quot;western&quot; style=&quot;text-align: center;&quot;&gt;
0&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000; border-top: none; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0.1cm; padding-top: 0cm;&quot; width=&quot;63&quot;&gt;&lt;div class=&quot;western&quot; style=&quot;text-align: center;&quot;&gt;
1&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr valign=&quot;TOP&quot;&gt;
  &lt;td style=&quot;border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0cm; padding-top: 0cm;&quot; width=&quot;88&quot;&gt;&lt;div class=&quot;western&quot; style=&quot;text-align: center;&quot;&gt;
&lt;b&gt;BIT2&lt;/b&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0cm; padding-top: 0cm;&quot; width=&quot;46&quot;&gt;&lt;div class=&quot;western&quot; style=&quot;text-align: center;&quot;&gt;
0&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0cm; padding-top: 0cm;&quot; width=&quot;55&quot;&gt;&lt;div class=&quot;western&quot; style=&quot;text-align: center;&quot;&gt;
0&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0cm; padding-top: 0cm;&quot; width=&quot;63&quot;&gt;&lt;div class=&quot;western&quot; style=&quot;text-align: center;&quot;&gt;
1&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0cm; padding-top: 0cm;&quot; width=&quot;63&quot;&gt;&lt;div class=&quot;western&quot; style=&quot;text-align: center;&quot;&gt;
1&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0cm; padding-top: 0cm;&quot; width=&quot;63&quot;&gt;&lt;div class=&quot;western&quot; style=&quot;text-align: center;&quot;&gt;
0&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0cm; padding-top: 0cm;&quot; width=&quot;63&quot;&gt;&lt;div class=&quot;western&quot; style=&quot;text-align: center;&quot;&gt;
0&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0cm; padding-top: 0cm;&quot; width=&quot;63&quot;&gt;&lt;div class=&quot;western&quot; style=&quot;text-align: center;&quot;&gt;
1&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000; border-top: none; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0.1cm; padding-top: 0cm;&quot; width=&quot;63&quot;&gt;&lt;div class=&quot;western&quot; style=&quot;text-align: center;&quot;&gt;
1&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr valign=&quot;TOP&quot;&gt;
  &lt;td style=&quot;border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0cm; padding-top: 0cm;&quot; width=&quot;88&quot;&gt;&lt;div class=&quot;western&quot; style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;font-size: 11pt;&quot;&gt;RESULTADO&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0cm; padding-top: 0cm;&quot; width=&quot;46&quot;&gt;&lt;div class=&quot;western&quot; style=&quot;text-align: center;&quot;&gt;
0&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0cm; padding-top: 0cm;&quot; width=&quot;55&quot;&gt;&lt;div class=&quot;western&quot; style=&quot;text-align: center;&quot;&gt;
0&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0cm; padding-top: 0cm;&quot; width=&quot;63&quot;&gt;&lt;div class=&quot;western&quot; style=&quot;text-align: center;&quot;&gt;
0&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0cm; padding-top: 0cm;&quot; width=&quot;63&quot;&gt;&lt;div class=&quot;western&quot; style=&quot;text-align: center;&quot;&gt;
1&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0cm; padding-top: 0cm;&quot; width=&quot;63&quot;&gt;&lt;div class=&quot;western&quot; style=&quot;text-align: center;&quot;&gt;
0&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0cm; padding-top: 0cm;&quot; width=&quot;63&quot;&gt;&lt;div class=&quot;western&quot; style=&quot;text-align: center;&quot;&gt;
1&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0cm; padding-top: 0cm;&quot; width=&quot;63&quot;&gt;&lt;div class=&quot;western&quot; style=&quot;text-align: center;&quot;&gt;
1&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000; border-top: none; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0.1cm; padding-top: 0cm;&quot; width=&quot;63&quot;&gt;&lt;div class=&quot;western&quot; style=&quot;text-align: center;&quot;&gt;
1&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Neste caso, BIT1 tem 4
bits e em hexadecimal tem valor 5 e o BIT2, tem valor em hexadecimal
de 3. Lembrando que de 0 a 9 os valores decimais e hexadecimais são
os mesmos. A simbologia ( ~ ) em qualquer bit representa um complemento 2 que é inverter o sinal do bit.&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;Nesta terceira parte, vamos manipular bits e bytes. Nosso foco maior será com bits.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Esta parte do artigo é necessária para compreender como é mais seguro e cômodo usar manipulação binária para um ou quais bits específicos sem comprometer os demais bits que não queremos mexer.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: blue; font-size: large;&quot;&gt;Controlando e configurando BIT0 do port A&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;color: blue; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Vamos começar com um pequeno circuito composto com um LED de 3.3V e um resistor de 100R em série para mostrar ligados ao pino PA0 do port A, siga o circuito e faça as modificações conforme exemplo para ver o LED acender e permitir que só este seja manipulado, deixando os demais sem manipular.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , 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;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhX1xm5E73FTVqfgTF6VDCHN0lzqvD4igBxrVpCZM2q5obxNzPlzpWMrGyGdJ1s1eBYijRUrZYqyERL1vHBcCcGmecFCnXWJNXdtr3w4U-qW7ZXBbAtY3NzNyMq2bWSoarGFiiF08briCs/s1600/zilogblog2.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;128&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhX1xm5E73FTVqfgTF6VDCHN0lzqvD4igBxrVpCZM2q5obxNzPlzpWMrGyGdJ1s1eBYijRUrZYqyERL1vHBcCcGmecFCnXWJNXdtr3w4U-qW7ZXBbAtY3NzNyMq2bWSoarGFiiF08briCs/s640/zilogblog2.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Vamos abrir o ZDSII e criar um novo programa para a linha Z8F0822 e criar um arquivo com o nome que achar pertinente e copie e cole ou reescreva nesse arquivo as linhas de código a seguir :&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm; text-align: left;&quot;&gt;
&lt;span style=&quot;color: lime; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;# include &lt;ez8 .h=&quot;&quot;&gt;&lt;/ez8&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm; text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;void main(void)&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm; text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&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;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm; text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&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; PAOUT = 0x01 ; &amp;nbsp;// zeramos os pinos do port A.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm; text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&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; PAADDR = 4 ; &amp;nbsp; &amp;nbsp;// habilita o modo alta corrente.Registro PHDEx.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm; text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&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;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; PACTL = &amp;nbsp;0x01 ; // &amp;nbsp;mas selecionamos o PA0 somente nesse modo&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm; text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&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; PAADDR = 1 ; // selecionamos o registro de direção de dados DDx,&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm; text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&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; PACTL = 0xFE ; // 0xFE = 11111110b - 0 é saída e 1 é entrada.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm; text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&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; PAADDR = 0x00 ; //desligamos qualquer função extra por segurança.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm; text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&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;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm; text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&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; PAOUT = 0x00 ; port A em zero.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm; text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&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; PAOUT = 0x01 ; Somente pino PA0 em nível alto.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm; text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&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; return ;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm; text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&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;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm; text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Aqui foi iniciado o port A, pino PA0 em nível um, justamente para poder manter o LED nesse pino desligado e permitir fazer as &amp;nbsp;devidas configurações nos demais pinos. Configuramos o pino no modo alta corrente que é o mesmo que manipular o registro PHDEx, onde x é um valor de 0 a 7 selecionável pelo registro PAADDR e manipulado com valores impressos por PACTL. Depois definimos a direção dos dados, com o pino PA0 como saída colocando o bit 0 do registrados DDx em zero, onde x é um valor de 0 a 7.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Para acessar o registrador DDx, usamos valores em hexadecimal, com valor de 0xFE que, em binário é o mesmo que 11111110b, notamos que o registro DDx tem o bit zero em DD0 com valor zero, ou seja, em modo saída.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Colocamos PAADDR = 0x00 por último para proteger o microcontrolador de qualquer configuração acidental.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; No final, colocamos PAOUT em 0, acendendo o LED e em seguida em um, apagando o LED.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Salve, compile e baixe para o microcontrolador o programa compilado. Se perceber, é provável que seu LED não acenda, não se preocupe, isso é normal, vamos resolver isso a seguir nos próximas linhas. Porém se usar o conceito de breakpoint no programa, poderá ver que o LED, na teoria, acende e apaga nas últimas linhas.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Toda vez que formos mudar o nível lógico desse pino, estaremos mudando também dos demais pinos simplesmente manipulando eles em bytes. Para que isso não ocorra teremos de usar recursos da linguagem C para manipular apenas o bit que queremos e para isso vamos dispor da tabela acima, dada no início deste artigo.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Na tabela temos o BIT1, BIT2 e resultado. demos um valor de 0101b ( 0x05 em hexa) e 0011b ( 0x03 em hexa ) assim, fizemos uma operação lógica AND (&amp;amp; ) tendo como resultado 0001b ( 0x01 em hexa ) e outra operação lógica OR ( | ), tendo como resultado o valor 0111b ( 0x07 em hexa).&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Nessa linha podemos fazer uso de operações lógicas para mudar bits individuais de registros e portas com os operadores &amp;amp; e | , que são, respectivamente, os símbolos de AND e OR. Não confundir com os operadores lógicos de bytes &amp;amp;&amp;amp; e || , que são AND e OR entre bytes e não entre bits individuais.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; No exemplo a seguir vamos usar uma das formas de manipular os bits do pino PA0 sem mexer nos demais, usando o conceito de operação lógica.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm; text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm; text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;unsigned char temp; // criamos uma variável de nome &#39;temp&#39;.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm; text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;temp = PAOUT ; // colocamos os valores de PAOUT em tempo.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm; text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;temp = temp | 0x01 ; // fazemos um OR com 00000001b e recolocamos em temp.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm; text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;PAOUT = temp ; // colocamos em PAOUT os valores de temp.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm; text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm; text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm; text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;Lemos o port A e colocamos seu valor em &#39;temp&#39;, logo depois fazemos um OR lógico com um valor binário de 0001b com temp e recolocamos o resultado em temp, depois recolocamos em PAOUT.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Como podemos ver, para manipular um bit do port A temos de escrever quatro linhas de código, o que seria dispendioso para um programa mais elaborado, então usamos uma maneira mais eficiente e com o mesmo resultado, só escrevendo :&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;PAOUT = PAOUT | 0x01 ;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;Ou muito mais eficiente ainda, podemos usar os recursos da linguagem C :&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;PAOUT |= 0x01 ;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Agora que aprendemos a usar a operação lógica para manipular bits, podemos reescrever nosso código que foi apresentado no início de uma maneira mais eficiente e ter um código mais enxuto e rápido na compilação do mesmo. Assim, podemos ter o que se segue :&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;#include &lt;ez8 .h=&quot;&quot;&gt;&amp;nbsp;&lt;/ez8&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm; text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; void main (void)&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm; text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&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;{&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm; text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&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;PAOUT = 0x01; // colocamos o bit 0 em um.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm; text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&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;PAADDR = 4 ; // selecionamos modo de saída de alta corrente &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm; text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&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;PACTL |= 0x01 ; // selecionamos apenas o PA0 como alta corrente, colocando o registro PHDE0 em um.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm; text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&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;PAADDR = 1 ; // selecionamos o registro de direção de dados.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm; text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&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;PACTL &amp;amp;= ~0x01 // colocamos apenas o PA0 como saída, deixando os demais como estão.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm; text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&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;PAADDR = 0x00 ; // desativamos o registrador PACTL para não haver configuração acidental.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm; text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&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;PAOUT &amp;amp;= ~0x01 ; // zeramos o bit PA0 e acendemos o LED.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm; text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&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;PAOUT |= 0x01 ; // setamos o bit PA0 e apagamos o LED.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm; text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&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;return ;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm; text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&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;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm; text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Com isso, ainda não conseguimos acender nosso LED no mundo físico, porém, conseguimos ver as mudanças de valores de bits na simulação dentro do programa com breakpoints. Se você não sabe debugar programas com o uso de breakpoints, sugiro ler a documentação referente ao ZDSII e o microcontrolador que esteja utilizando.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Com o que aprendeu, faça alterações para ver o que acontece. Para fazer nosso LED piscar no mundo real, vamos agora criar uma função chamada atraso para controlar o tempo de acender e apagar o LED e ver nosso programa funcionar.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: blue; font-size: large;&quot;&gt;Controlando o tempo de piscar do LED.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Desde o primeiro momento o termo usado era piscar led e até agora não vimos isso de verdade e foi de propósito para que pudéssemos passar o máximo de conhecimento a fim de ter ferramentas de manipulação de dados e ter um trabalho eficiente.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;#include &lt;ez8 .h=&quot;&quot;&gt;&lt;/ez8&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;void main ( void )&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm; text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&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;PAOUT |= 0x01 ; // colocamos o pino PA0 em um para apagar o LED.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;color: blue;&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;PAADDR = 4 ; // selecionamos modo alta corrente.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;color: blue;&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;PACTL |= 0x01 ; // selecionamos apenas o pino PA0 nesse modo.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;color: blue;&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;PAADDR = 1 ; // selecionamos o modo de direção dos dados&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;color: blue;&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;PACTL &amp;amp;= ~0x01 ; // colocamos o pino PA0 como saída.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;color: blue;&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;PAADDR = 0x00 ; // evita configuração acidental&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;while ( 1 )&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;color: blue;&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&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;color: blue;&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;atraso() ;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;color: blue;&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;PAOUT &amp;amp;= ~0x01 ; // zera o bit PA0 e acende o LED&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;color: blue;&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;atraso() ;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;color: blue;&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;PAOUT |= 0x01 ; // seta o bit PA0 e apaga o LED.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;color: blue;&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&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm; text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return ;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;color: blue;&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;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Desde que a constante seja 1 sempre, while ( 1 ), o valor do pino PA0 muda a cada tempo o que permite apagar e acender nesse tempo de atraso(). &amp;nbsp;Agora vamos escrever, logo depois de main() a função atraso(). Para achar o valor de contador basta usar contador = (atraso em segundos) * (frequência de clock em Hz)/86, pois while() leva 86 ciclos de clock, assim, 0.25 segundos são achados por contador = 0.25 * 20000000/86 o que dá, para um micro com 20Mhz de cristal, um valor de contador = 58139&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; static void atraso (void)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;color: blue;&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; {&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;color: blue;&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;unsigned int long contador = 58139 ;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;color: blue;&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;while (contador &amp;gt; 0 )&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;color: blue;&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; &amp;nbsp; &amp;nbsp; {&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;color: blue;&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; contador -= 1 ;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;color: blue;&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; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;color: blue;&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; return ;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;color: blue;&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; }&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Assim teremos o programa completo e pronto para ser compilado e transferido ao microcontrolador e, aí sim, conseguimos ver nosso LED piscar como prometido, mas tinhamos que prover ferramentas que facilitassem a compreensão de todo o processo. Pegue o programa abaixo, salve, compile e transfira.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;#include &lt;ez8 .h=&quot;&quot;&gt;&lt;/ez8&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; void atraso(void) ;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;void main ( void )&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&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;PAOUT |= 0x01 ; // colocamos o pino PA0 em um para apagar o LED.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;color: blue;&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;PAADDR = 4 ; // selecionamos modo alta corrente.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;color: blue;&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;PACTL |= 0x01 ; // selecionamos apenas o pino PA0 nesse modo.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;color: blue;&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;PAADDR = 1 ; // selecionamos o modo de direção dos dados&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;color: blue;&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;PACTL &amp;amp;= ~0x01 ; // colocamos o pino PA0 como saída.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;color: blue;&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;PAADDR = 0x00 ; // evita configuração acidental&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;while ( 1 )&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;color: blue;&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&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;color: blue;&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;atraso() ;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;color: blue;&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;PAOUT &amp;amp;= ~0x01 ; // zera o bit PA0 e acende o LED&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;color: blue;&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;atraso() ;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;color: blue;&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;PAOUT |= 0x01 ; // seta o bit PA0 e apaga o LED.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;color: blue;&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&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return ;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;color: blue;&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;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;static void atraso (void)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;color: blue;&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; {&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;color: blue;&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;unsigned int long contador = 58139 ;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;color: blue;&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;while (contador &amp;gt; 0 )&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;color: blue;&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; &amp;nbsp; &amp;nbsp; {&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;color: blue;&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; contador -= 1 ;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;color: blue;&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; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;color: blue;&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; return ;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;color: blue;&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; }&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;Terminamos aqui a nossa parte de fazer um LED piscar, esperamos poder ter mais exemplos de uso dos periféricos do microcontrolador Z8 encore!, especialmente a linha Z8F0822, que é nosso foco neste artigo e que é aplicável para as outras linhas dessa empresa.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;Até a próxima e muito obrigado, nobres leitores.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://cleapseletroeletronica.blogspot.com/feeds/7544578795690317929/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://cleapseletroeletronica.blogspot.com/2013/07/zilog-zdsii-ide-de-programacao-free-em_25.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3000668579123608637/posts/default/7544578795690317929'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3000668579123608637/posts/default/7544578795690317929'/><link rel='alternate' type='text/html' href='http://cleapseletroeletronica.blogspot.com/2013/07/zilog-zdsii-ide-de-programacao-free-em_25.html' title='Zilog - ZDSII a IDE de programação free em C. - 3ª Parte'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04117759606587902766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjXyDE9lWjxDIIEP8UQx7WUeuyShrIsS5ssVD4yss_W81vKUUwmrjFHNg__5EUEXJ0gTQOU517oqoaM4Z9nE-7JBkXJVA_2t2q5CR5od5kBCZnMx4TUPoOzAxjIVpNKJkFmjHeYtIQsacA/s72-c/parte3_zilogCurso.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3000668579123608637.post-6464631852502339054</id><published>2013-07-14T07:53:00.001-07:00</published><updated>2016-02-03T04:53:26.571-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Início"/><title type='text'>Lixo eletrônico - Doe. Reaproveitamos, reutilizamos e destinamos a empre...</title><content type='html'>&lt;iframe allowfullscreen=&quot;&quot; frameborder=&quot;0&quot; height=&quot;344&quot; src=&quot;//www.youtube.com/embed/NdyhWmqWkao&quot; width=&quot;459&quot;&gt;&lt;/iframe&gt;</content><link rel='replies' type='application/atom+xml' href='http://cleapseletroeletronica.blogspot.com/feeds/6464631852502339054/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://cleapseletroeletronica.blogspot.com/2013/07/lixo-eletronico-doe-reaproveitamos.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3000668579123608637/posts/default/6464631852502339054'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3000668579123608637/posts/default/6464631852502339054'/><link rel='alternate' type='text/html' href='http://cleapseletroeletronica.blogspot.com/2013/07/lixo-eletronico-doe-reaproveitamos.html' title='Lixo eletrônico - Doe. Reaproveitamos, reutilizamos e destinamos a empre...'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04117759606587902766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3000668579123608637.post-892577537681155453</id><published>2013-07-08T17:51:00.001-07:00</published><updated>2016-02-03T05:06:05.341-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Início"/><title type='text'>Cleaps-tech(tecnologia eletrônica): Lixo de informática - onde descartar alguns itens ...</title><content type='html'>&lt;a href=&quot;http://cleapseletroeletronica.blogspot.com/2013/02/lixo-de-informatica-onde-descartar.html?spref=bl&quot;&gt;Cleaps-tech(tecnologia eletrônica): Lixo de informática - onde descartar alguns itens ...&lt;/a&gt;: Lixo de informática - onde descartar alguns itens ?     &amp;nbsp; &amp;nbsp; ( contato : André Pereira da Silva - andrepereira@ig.com.br - 21 91267264 )   &amp;nbsp;...</content><link rel='replies' type='application/atom+xml' href='http://cleapseletroeletronica.blogspot.com/feeds/892577537681155453/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://cleapseletroeletronica.blogspot.com/2013/07/cleaps-techtecnologia-eletronica-lixo.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3000668579123608637/posts/default/892577537681155453'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3000668579123608637/posts/default/892577537681155453'/><link rel='alternate' type='text/html' href='http://cleapseletroeletronica.blogspot.com/2013/07/cleaps-techtecnologia-eletronica-lixo.html' title='Cleaps-tech(tecnologia eletrônica): Lixo de informática - onde descartar alguns itens ...'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04117759606587902766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3000668579123608637.post-9169419124725112887</id><published>2013-07-08T15:11:00.001-07:00</published><updated>2016-02-03T05:07:13.533-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Tutoriais"/><title type='text'>Zilog - ZDSII a IDE de programação free em C. - 2 Parte</title><content type='html'>&lt;span style=&quot;color: #274e13; font-size: large;&quot;&gt;&lt;b&gt;Zilog - Acendendo um LED com Z8 encore XP! - Parte 2&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #274e13; font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
 bb_bid = &quot;1674044&quot;;
 bb_lang = &quot;pt-BR&quot;;
 bb_keywords = &quot;GLCD,microcontrolador, TI, RENESAS, zilog,microchip,PLC,elevador, CD, programação,matemática,IC,LCD.&quot;;
 bb_name = &quot;custom&quot;;
 bb_limit = &quot;8&quot;;
 bb_format = &quot;bbb&quot;;
&lt;/script&gt;
&lt;script src=&quot;http://static.boo-box.com/javascripts/embed.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
&lt;br /&gt;
&lt;div style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjOvP8F84Bq0WwJEqeepNn8qjUnluwVYOFAD6jxvM8lC__JNGGN-97gI0386V3qnBOO0DtSXJ654x68xnXPRokJD1ToN8smeJTi9YYr3_6xuXZPIPORvylBtP61A7SoRVSlgXUcGs0Y3KY/s1600/parte2_zilogCurso.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjOvP8F84Bq0WwJEqeepNn8qjUnluwVYOFAD6jxvM8lC__JNGGN-97gI0386V3qnBOO0DtSXJ654x68xnXPRokJD1ToN8smeJTi9YYr3_6xuXZPIPORvylBtP61A7SoRVSlgXUcGs0Y3KY/s1600/parte2_zilogCurso.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&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: center;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;b&gt;Configurando as PORTAS do Z8 Encore corretamente.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;As portas de qualquer microcontrolador são acessos do mesmo ao mundo externo e devem estar configuradas de acordo com o que se quer fazer com elas, isso por que podemos fornecer sinais a esses pinos e usar sinais que saem desses pinos ou portas, se não forem, corretamente, configuradas, podem gerar curto circuitos ou a queima do microcontrolador.&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Quando configurados como entrada, é possível usar esses pinos para acordar o microcontrolador se estiver no modo &quot;STOP&quot; e alguns pinos podem gerar interrupções a serem acessadas e processadas pelo microcontrolador. No modo entrada, a função &quot;Analog to Digital converter&quot; é acessada, também.&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Quando configurados como saídas, é possível usar esses pinos como driver padrão ou driver de alta corrente elétrica para acionar cargas. Podem ser usados como &quot;Open drain&quot;, permitindo que o microcontrolador forneça nível baixo ou zero a uma carga quando acionado o pino correspondente, porém quando não o nível um ou alto passa a ser usado ou por um circuito externo ou pelo microcontrolador. Em modo saída, pode, também, ser usado com as funções alternativas que cada pino possui, como UART, Timer,PWM, I2C e etc.,&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Para usar a função alternativa, as PORTAS e Pinos do microcontrolador devem ser adequadamente configuradas.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;b&gt;Registro de I/O de uso geral.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Como estamos usando os três pinos do PORTA, usaremos os pinos de PA0~PA2 e para poder ter acesso a ele no mundo externo, vamos dar uma olhada na tabela a seguir e perceber que precisamos manipular os outros registros de endereçamento e outro de controle. É assim que vamos configurar as PORTAS e o PINOS do microcontrolador.&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;Tabela referente a PORTA A&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;table cellpadding=&quot;4&quot; cellspacing=&quot;0&quot; style=&quot;width: 100%px;&quot;&gt;
 &lt;colgroup&gt;&lt;col width=&quot;65&quot;&gt;&lt;/col&gt;
 &lt;col width=&quot;64&quot;&gt;&lt;/col&gt;
 &lt;col width=&quot;64&quot;&gt;&lt;/col&gt;
 &lt;col width=&quot;64&quot;&gt;&lt;/col&gt;
 &lt;col width=&quot;64&quot;&gt;&lt;/col&gt;
 &lt;col width=&quot;64&quot;&gt;&lt;/col&gt;
 &lt;col width=&quot;64&quot;&gt;&lt;/col&gt;
 &lt;col width=&quot;64&quot;&gt;&lt;/col&gt;
 &lt;col width=&quot;64&quot;&gt;&lt;/col&gt;
 &lt;/colgroup&gt;&lt;tbody&gt;
&lt;tr valign=&quot;TOP&quot;&gt;
  &lt;td style=&quot;border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: 1px solid #000000; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0cm; padding-top: 0.1cm;&quot; width=&quot;10%&quot;&gt;&lt;div align=&quot;CENTER&quot; class=&quot;western&quot;&gt;
Bit&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: 1px solid #000000; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0cm; padding-top: 0.1cm;&quot; width=&quot;12%&quot;&gt;&lt;div align=&quot;CENTER&quot; class=&quot;western&quot;&gt;
7&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: 1px solid #000000; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0cm; padding-top: 0.1cm;&quot; width=&quot;11%&quot;&gt;&lt;div align=&quot;CENTER&quot; class=&quot;western&quot;&gt;
6&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: 1px solid #000000; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0cm; padding-top: 0.1cm;&quot; width=&quot;11%&quot;&gt;&lt;div align=&quot;CENTER&quot; class=&quot;western&quot;&gt;
5&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: 1px solid #000000; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0cm; padding-top: 0.1cm;&quot; width=&quot;11%&quot;&gt;&lt;div align=&quot;CENTER&quot; class=&quot;western&quot;&gt;
4&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: 1px solid #000000; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0cm; padding-top: 0.1cm;&quot; width=&quot;11%&quot;&gt;&lt;div align=&quot;CENTER&quot; class=&quot;western&quot;&gt;
3&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: 1px solid #000000; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0cm; padding-top: 0.1cm;&quot; width=&quot;10%&quot;&gt;&lt;div align=&quot;CENTER&quot; class=&quot;western&quot;&gt;
2&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: 1px solid #000000; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0cm; padding-top: 0.1cm;&quot; width=&quot;10%&quot;&gt;&lt;div align=&quot;CENTER&quot; class=&quot;western&quot;&gt;
1&lt;/div&gt;
&lt;/td&gt;
  
      &lt;td style=&quot;border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: 1px solid #000000; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0cm; padding-top: 0.1cm;&quot; width=&quot;10%&quot;&gt;&lt;div align=&quot;CENTER&quot; class=&quot;western&quot;&gt;
0&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div align=&quot;LEFT&quot; class=&quot;western&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;/div&gt;
&lt;table cellpadding=&quot;4&quot; cellspacing=&quot;0&quot; style=&quot;width: 643px;&quot;&gt;
 &lt;colgroup&gt;&lt;col width=&quot;63&quot;&gt;&lt;/col&gt;
 &lt;col width=&quot;562&quot;&gt;&lt;/col&gt;
 &lt;/colgroup&gt;&lt;tbody&gt;
&lt;tr valign=&quot;TOP&quot;&gt;
  &lt;td style=&quot;border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: 1px solid #000000; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0cm; padding-top: 0.1cm;&quot; width=&quot;63&quot;&gt;&lt;div align=&quot;CENTER&quot; class=&quot;western&quot;&gt;
Field&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border: 1px solid #000000; padding: 0.1cm;&quot; width=&quot;562&quot;&gt;&lt;div align=&quot;CENTER&quot; class=&quot;western&quot;&gt;
PADDR[7:0]&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr valign=&quot;TOP&quot;&gt;
  &lt;td style=&quot;border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0cm; padding-top: 0cm;&quot; width=&quot;63&quot;&gt;&lt;div align=&quot;CENTER&quot; class=&quot;western&quot;&gt;
Reset&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000; border-top: none; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0.1cm; padding-top: 0cm;&quot; width=&quot;562&quot;&gt;&lt;div align=&quot;CENTER&quot; class=&quot;western&quot;&gt;
00H&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr valign=&quot;TOP&quot;&gt;
  &lt;td style=&quot;border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0cm; padding-top: 0cm;&quot; width=&quot;63&quot;&gt;&lt;div align=&quot;CENTER&quot; class=&quot;western&quot;&gt;
R /W&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000; border-top: none; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0.1cm; padding-top: 0cm;&quot; width=&quot;562&quot;&gt;&lt;div align=&quot;CENTER&quot; class=&quot;western&quot;&gt;
R/W&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr valign=&quot;TOP&quot;&gt;
  &lt;td style=&quot;border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0cm; padding-top: 0cm;&quot; width=&quot;63&quot;&gt;&lt;div class=&quot;western&quot;&gt;
Endereço&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000; border-top: none; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0.1cm; padding-top: 0cm;&quot; width=&quot;562&quot;&gt;&lt;div align=&quot;CENTER&quot; class=&quot;western&quot;&gt;
PA=FD0H ; PB = FD4H ; PC = FD8H&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;table cellpadding=&quot;4&quot; cellspacing=&quot;0&quot; rules=&quot;ROWS&quot; style=&quot;width: 643px;&quot;&gt;
 &lt;colgroup&gt;&lt;col width=&quot;63&quot;&gt;&lt;/col&gt;
 &lt;col width=&quot;562&quot;&gt;&lt;/col&gt;
 &lt;/colgroup&gt;&lt;tbody&gt;
&lt;tr valign=&quot;TOP&quot;&gt;
  &lt;td style=&quot;border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: 1px solid #000000; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0cm; padding-top: 0.1cm;&quot; width=&quot;63&quot;&gt;&lt;div align=&quot;CENTER&quot; class=&quot;western&quot;&gt;
Bit&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: 1px solid #000000; border-left: none; border-right: 1px solid #000000; border-top: 1px solid #000000; padding-bottom: 0.1cm; padding-left: 0cm; padding-right: 0.1cm; padding-top: 0.1cm;&quot; width=&quot;562&quot;&gt;&lt;div class=&quot;western&quot;&gt;
Descrição dos endereços .&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr valign=&quot;TOP&quot;&gt;
  &lt;td style=&quot;border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0cm; padding-top: 0cm;&quot; width=&quot;63&quot;&gt;&lt;div class=&quot;western&quot;&gt;
[7:0]&lt;/div&gt;
&lt;div class=&quot;western&quot;&gt;
PADDR&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: 1px solid #000000; border-left: none; border-right: 1px solid #000000; border-top: none; padding-bottom: 0.1cm; padding-left: 0cm; padding-right: 0.1cm; padding-top: 0cm;&quot; width=&quot;562&quot;&gt;&lt;div class=&quot;western&quot;&gt;
Endereços das portas 
   &lt;/div&gt;
&lt;div class=&quot;western&quot;&gt;
O endereço das portas seleciona um dos
   sub-registros acessível pelo registro de controle das portas.&lt;/div&gt;
&lt;div class=&quot;western&quot;&gt;
00H = Sem função, contem alguma proteção
   contra configuração acidental.&lt;/div&gt;
&lt;div class=&quot;western&quot;&gt;
01H = Direção dos dados – 0 é saída e 1 é
   entrada. 
   &lt;/div&gt;
&lt;div class=&quot;western&quot;&gt;
02H = Função alternativa – habilita
   periféricos como UART, Timers e etc.&lt;/div&gt;
&lt;div class=&quot;western&quot;&gt;
03H = Controle de saída – Open drain 
   &lt;/div&gt;
&lt;div class=&quot;western&quot;&gt;
04H = Habilita driver de alta corrente –
   ideal para suprir mais potência para cargas. 
   &lt;/div&gt;
&lt;div class=&quot;western&quot;&gt;
05H = Habilita acordar do modo “STOP” -  ou
   por pino ou a PORTA .&lt;/div&gt;
&lt;div class=&quot;western&quot;&gt;
06H = Habilita Pull-up – coloca os resistores
   de pull-up ao vcc.&lt;/div&gt;
&lt;div class=&quot;western&quot;&gt;
07H ~FFH  = Sem função.&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;span style=&quot;background-color: yellow;&quot;&gt;Valores referentes ao conjunto de sub-registros do microcontrolador da série Encore XP! F0822&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
_________________________________________________________________________________
&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/b&gt;O registro de controle das portas de A~C determina que valores serão colocados nos sub-registros correspondentes aos registros endereçados pelo registro de endereço de portas.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PxCTL ( onde x é a porta de A~C) é o registro de controle de portas, que é zerado quando de um reset no microcontrolador e tem como endereço das portas de PA~PC em FD1H, FD6H, FD9H, para o microcontrolador da série Encore XP! F0822.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Agora, vamos conhecer os outros três registros associados com a porta A, que são eles :&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;PAADDR, que fica no endereço FD0H, permite ao PACTL configurar os sub-registros.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;PACTL, que fica no endereço FD1H, configura ou transfere dados de configuração aos sub-registros.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;PAIN, que fica no endereço FD2H, permite que seja lido os valores de dados contido nele.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;PAOUT, que fica no endereço FD3H, coloca os valores entre 0 e 1 na saída da porta ou pinos.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Todos esses 4 registros estão presentes nas portas de A~H de todos os microcontroladores da linha Z8 Encore, diferenciando apenas nos valores dos endereços de cada porta, controle de portas e demais registros. Não é necessário se preocupar tanto com isso, pois o arquivo de cabeçalho &lt;span style=&quot;color: blue;&quot;&gt;ez8.h &lt;/span&gt;já vem com esses valores corretos na sua macro interna, bastando, apenas, recordar os nomes desses registros e sub-registros de PxADDR, PxCTL, PxIN e PxOUT como tendo x o nome da porta correspondente a que se quer configurar e usar. No nosso exemplo, x fica como PxADDR em P&lt;span style=&quot;color: blue;&quot;&gt;&lt;b&gt;&lt;u&gt;A&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;ADDR, pois estamos utilizando a porta A.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;b&gt;Acessando sub-registros&amp;nbsp;através&amp;nbsp;de PxCTL (PACTL)&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Existem 5 perguntas a se fazer, antes de configurar cada porta, para que, nessa sequência, se tenha um bom desenvolvimento de projeto ou programação, tanto em C quanto em ASM, que são elas :&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;A porta ou pino é de entrada de dados ou de saída de dados ?&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;A porta será usada como de uso geral ou com função específica, como UART, Timer e etc ?&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;Se for usada como saída, é em operação normal ou open drain ?&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;Se for usada como saída, é em modo normal ou driver de alta corrente (high drive) ?&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;Se for usada como entrada, habilito o modo acordar de um STOP e queremos ou não usar o A/D, se usado em modo função alternativa ?&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Como visto na tabela acima, referente ao endereçamento que dá acesso aos sub - registros através de PxCTL ( no caso PACTL), teríamos um total de 5 diferentes registros para cada porta, somando os registros de entrada e de saída, teríamos um total de 7 registros para cada porta. Para um microcontrolador maior em recursos, mais um se somaria, o que te daria uma enorme quantidade de endereços para memorizar e poder usar, ficando dispendioso o aprendizado e, consequentemente, difícil de trabalhar. Então a Zilog, criou este método de usar só dois registros de endereçamento, o PxADDR, e o registro de controle de portas, o PxCTL, onde x é o valor da porta de A~H correspondente a porta que se quer usar, facilitando o trabalho do programador e deixando que o compilador e o microcontrolador se encarreguem desse monte de endereços de registros e sub registros.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; As 5 perguntas, acima feitas, são configuradas escrevendo valores no registro PxCTL, onde x é um nome de A~H da porta correspondente. Por exemplo, se colocarmos um valor de 0x04H em &lt;span style=&quot;color: blue;&quot;&gt;PAADDR&lt;/span&gt;, estamos selecionando o sub-registro &quot;High drive&quot; e podemos configurar ele atravéz de PxCTL colocando um valor que corresponda aos pinos de 0~7 da porta x. assim se coloco 0x0F em PxCTL, estou habilitando todos pinos de 0~3 como sendo high drive &amp;nbsp;da porta x e de 4~7 como sendo saída padrão.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;b&gt;Configurando porta A como saída em alta corrente elétrica.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Agora temos subsídios para fazer o LED acender e mais adiante, fazer ele piscar. É bom lembrar que configurando os pinos do microcontrolador para saída em modo normal ele irá drenar corrente de aproximadamente 2mA, o que é muito pouco para acender um LED sem queimar o micro ou nem fazer acender, já que o microcontrolador possui proteção interna contra sobrecorrente. Para isso, configuramos o pino correspondente aos LEDs em modo High drive que nos permite acessar perto de 20mA de corrente elétrica a ser drenada para o circuito do LED.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Não devemos colocar todos os pinos como high drive se desejarmos um uso mais econômico do consumo de energia, principalmente se estiver usando pilhas ou baterias, o que esgotaria essa energia em pouco tempo.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Como estamos em modo apresentação, vamos colocar todos os pinos em high drive para o leitor poder ver seu LED acender desta vez e, assim ter uma visão melhor de como funciona o processo de programação.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Vamos acrescentar mais algumas linhas de código no nosso programa e ver o que acontece depois. Com o programa já aberto, acrescente as linha que estão faltando, não precisa reescrever tudo novamente, como se segue :&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;b&gt;#include &lt;ez8 .h=&quot;&quot;&gt;&lt;/ez8&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;b&gt;void main( void )&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; {&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;PAADDR = 4 ; // selecionamos high drive.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;PACTL = 0xFF ; // colocamos 1 no sub-registro PHDEA[7:0], habilitando todos os pinos em High drive.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;PAADDR = 0x01 ; // selecionamos direção dos dados.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;PACTL = 0x00 ; // todos como saída, 0&#39;s no registro DDA[7:0]&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;PAADDR = 0x00 ; // prevenção contra má configuração.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;PAOUT = 0xFF ; // porta A em nível 1&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;// PAOUT = 0x00 ; // Porta A em zero.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; // PAOUT = 0xFF ; // Porta A em 1, novamente.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;return;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; }&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Escrevemos o valor 4 no registro PAADDR para selecionar o sub-registro High Drive de nome PHDEA[7:0] &amp;nbsp;e com PACTL com um valor de 0xFF, colocamos todos os bits de PHDEA[7:0] habilitados para high drive.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Note que em direção dos dados, 0 é saída e 1 entrada.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Agora compilamos e montamos o programa com F7 ou clicando em montar e compilar e vemos o resultado de sucesso da compilação, enviamos o arquivo ou baixamos o programa compilado para o microcontrolador e temos o LED aceso, ou seja, funcionando o programa, caso isso não ocorra, será necessário resetar o microcontrolador fisicamente, aterrando, momentaneamente o pino de reset..&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Como se pode ver, programar em C para os microcontroladores da Zilog é muito fácil e divertido, muito diferente de muitas linhas de microcontroladores que dificultam com seleção de banco de memórias e outras dificuldades. Em Z8 Encore, isso é mais fácil e rápido.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;color: blue; font-size: large;&quot;&gt;&lt;b&gt;Considerações Finais (até o próximo post da série )&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;color: blue; font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Quando conectamos cargas como LED, buzzers ou qualquer carga entre a saída de um pino do microcontrolador e o Vcc, estamos fazendo de forma usual e explicamos por quê :&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;A saída de sinal de algum pino do microcontrolador tem um &amp;nbsp;valor mais próximo de 0 Vcc que Vcc acionado, onde há uma tensão positiva bem baixa dos 3.3V da fonte de alimentação.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;Na linha Z8 Encore, o máximo de queda de tensão elétrica é de 0.6V, o que nos dá (3.3 - 0.6) 2.7V na sua saída.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;O mínimo de tensão elétrica é de 2.4V quando se liga um LED em série com resistor e o conjunto ligado ao terra ou gnd.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;Resumindo, se tem mais brilho no LED com ele ligado ao 3.3Vcc da fonte de alimentação, em série com um resistor limitador e a outra ponta ao pino do microcontrolador. Pois se tem 2.7V e não 2.4V, se ligado ao gnd.&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&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; &amp;nbsp;Continua ....&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://cleapseletroeletronica.blogspot.com/feeds/9169419124725112887/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://cleapseletroeletronica.blogspot.com/2013/07/zilog-zdsii-ide-de-programacao-free-em_8.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3000668579123608637/posts/default/9169419124725112887'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3000668579123608637/posts/default/9169419124725112887'/><link rel='alternate' type='text/html' href='http://cleapseletroeletronica.blogspot.com/2013/07/zilog-zdsii-ide-de-programacao-free-em_8.html' title='Zilog - ZDSII a IDE de programação free em C. - 2 Parte'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04117759606587902766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjOvP8F84Bq0WwJEqeepNn8qjUnluwVYOFAD6jxvM8lC__JNGGN-97gI0386V3qnBOO0DtSXJ654x68xnXPRokJD1ToN8smeJTi9YYr3_6xuXZPIPORvylBtP61A7SoRVSlgXUcGs0Y3KY/s72-c/parte2_zilogCurso.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3000668579123608637.post-3829892277617622099</id><published>2013-07-07T11:41:00.000-07:00</published><updated>2016-02-03T05:08:09.058-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Tutoriais"/><title type='text'>Zilog - ZDSII a IDE de programação free em C. - 1ª Parte</title><content type='html'>&lt;span style=&quot;color: #274e13; font-size: large;&quot;&gt;&lt;b&gt;Zilog - Acendendo um LED com Z8 encore XP! - Parte 1&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #274e13; font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
 bb_bid = &quot;1674044&quot;;
 bb_lang = &quot;pt-BR&quot;;
 bb_keywords = &quot;GLCD,microcontrolador, TI, RENESAS, zilog,microchip,PLC,elevador, CD, programação,matemática,IC,LCD.&quot;;
 bb_name = &quot;custom&quot;;
 bb_limit = &quot;8&quot;;
 bb_format = &quot;bbb&quot;;
&lt;/script&gt;
&lt;script src=&quot;http://static.boo-box.com/javascripts/embed.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
&lt;br /&gt;
&lt;div style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhmasHSJDdkgExFR_yAiFg0ZGE5c7k7LY9mZYlrbvy00mE8k20Dciv1odrlUYz1CVDkEgxj9ccdKAr8SgtSaIvqL3Fmjj_sS6UnH-LnaBJ6rlrnT6nnT8mtdmlbh7xig9JEiBiYzpqIw-Y/s1600/parte1_zilogCurso.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhmasHSJDdkgExFR_yAiFg0ZGE5c7k7LY9mZYlrbvy00mE8k20Dciv1odrlUYz1CVDkEgxj9ccdKAr8SgtSaIvqL3Fmjj_sS6UnH-LnaBJ6rlrnT6nnT8mtdmlbh7xig9JEiBiYzpqIw-Y/s1600/parte1_zilogCurso.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
_________________________________________________________________________________&lt;br /&gt;
&lt;span style=&quot;color: blue; font-size: large;&quot;&gt;Abrindo e programando com o ZDSII&lt;/span&gt;&lt;br /&gt;
_________________________________________________________________________________&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Neste artigo vamos nos concentrar na IDE da Zilog, o ZDSII que tem versão para a linha Z8 encore e ZNEO, além das demais linhas desta empresa. Vamos começar um programa para ligar e fazer piscar um LED além de outras funcionalidades que o programa e a IDE permitirem. Espero que venha a ser muito útil aos nossos leitores e ficamos aguardando seus comentários.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Em www.zilog.com, na aba da figura a seguir é possível adquirir a IDE diretamente no site do fabricante e sempre nas versões atualizadas.&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;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjMLXzrsAJWjLJsi1yrJtQTOhYf7XxqviswKCsRd5VUBR_aLc77OQH9_i4ffmakiYtZujqVPjIKPt-7LRBObu9jDZvzxQZQSHny2W-sokuDTIpExqFJIqcSntfxWvfHQSzp4yaNJbS2nGc/s1600/zilogblog1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;163&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjMLXzrsAJWjLJsi1yrJtQTOhYf7XxqviswKCsRd5VUBR_aLc77OQH9_i4ffmakiYtZujqVPjIKPt-7LRBObu9jDZvzxQZQSHny2W-sokuDTIpExqFJIqcSntfxWvfHQSzp4yaNJbS2nGc/s640/zilogblog1.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Depois de fazer o download, instalar e abrir o programa, vamos por a mão na massa. Na figura a seguir temos o programa aberto, se conseguiu acompanhar o último post, deve saber como abrir e usar o ZDSII, então vamos lá.&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;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiDMrs6WcnLP81rVPVF7mdHxwMV56pxqamYmcjbh6pdzrg_WwgnWqUz8cUHe0mEc4pWk_xyAau22h_Z5Z1NuBaxzP6Qcryb3GWOfOu0_D8uPoZkKQqqUVVWIhY5wMnBdQi2Dk2e7KHUA9Q/s1600/zilog_kit_1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;354&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiDMrs6WcnLP81rVPVF7mdHxwMV56pxqamYmcjbh6pdzrg_WwgnWqUz8cUHe0mEc4pWk_xyAau22h_Z5Z1NuBaxzP6Qcryb3GWOfOu0_D8uPoZkKQqqUVVWIhY5wMnBdQi2Dk2e7KHUA9Q/s640/zilog_kit_1.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; A partir de agora vamos nos concentrar no programa partindo do esquemático do projeto, este consiste no desenho a seguir que mostra a ligação dos LEDs ao Z8F0822 e valores dos resistores.&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;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmaiHJ7p6A4WODTzcxxJwd5jDwHZoDK0SW3AzDVpD5QAu5G8fj8MZZw9h1YmzJfHxkeQUUiNE8OII5kap-TvfKDi1TRINCGATULdo3e-9-es_LA5Rw_-1TnGmKGF9Cmoszs2GErzGkst4/s1600/zilog_kit.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;304&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmaiHJ7p6A4WODTzcxxJwd5jDwHZoDK0SW3AzDVpD5QAu5G8fj8MZZw9h1YmzJfHxkeQUUiNE8OII5kap-TvfKDi1TRINCGATULdo3e-9-es_LA5Rw_-1TnGmKGF9Cmoszs2GErzGkst4/s640/zilog_kit.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&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;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Não vamos discorrer sobre o circuito completo, o mesmo se chama um150.pdf e pode ser encontrado no site da Zilog em &lt;a href=&quot;http://www.zilog.com/&quot;&gt;www.zilog.com&lt;/a&gt; e pode ser baixado gratuitamente. Se o fez, vamos comentar o código e fazer o led acender conforme.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Com o ZDSII aberto, vamos criar um projeto no local de instalação do programa na pasta samples.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Nesta pasta, vamos criar uma nova pasta ou subpasta de nome &quot;projeto_novo&quot; e vamos dar um nome ao projeto como sendo &quot;novo_projeto&quot;, conforme imagem a seguir e os passos descritos.&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;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgkwERnlH2vjhcAvoHkZOrsbI5ZpjR6dveWsc2TB9N4FiFA2lI3ptTDus9GXnabcrO-IGcwirturcmd04Du-hkjU3wLPsQwMq-_r8zMj84n-rImL_wC2lXOxFzd45cT-PKr9xQr_NPFzHI/s1600/projeto_novo_1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;290&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgkwERnlH2vjhcAvoHkZOrsbI5ZpjR6dveWsc2TB9N4FiFA2lI3ptTDus9GXnabcrO-IGcwirturcmd04Du-hkjU3wLPsQwMq-_r8zMj84n-rImL_wC2lXOxFzd45cT-PKr9xQr_NPFzHI/s640/projeto_novo_1.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Logo depois, sua pasta ficara como a figura seguinte descreve.&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;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghqOO2YW9kpgZwVc1Zbfu4D_tGN29irtEIJJjkOHA_bdk_X_rTwSCNHHQaGRTWhLBxOMH2do6upfxjnH4dAgWEVfkeZgaLxRjzwoDc_5Q2Gn7hbRMlGRiq-9quhyl1O9tejkr-qo3JBz0/s1600/projeto_novo_2.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;404&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghqOO2YW9kpgZwVc1Zbfu4D_tGN29irtEIJJjkOHA_bdk_X_rTwSCNHHQaGRTWhLBxOMH2do6upfxjnH4dAgWEVfkeZgaLxRjzwoDc_5Q2Gn7hbRMlGRiq-9quhyl1O9tejkr-qo3JBz0/s640/projeto_novo_2.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; E temos nossa nova pasta de projetos que vamos criar do zero.&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;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEifGlHKoXUkmCUUPRvImFL7ldMudFseeIsi0UekdtXiI6c40zItZ-9OrFUzrOgQi3RWnamxeTGbb3sDsWLjzoGUYL-jSbDQs5nvPEaqr9BT6XkZyWlkoMzpnTt3GhXkNRRW4sdxJ_fDp0g/s1600/projeto_novo_3.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEifGlHKoXUkmCUUPRvImFL7ldMudFseeIsi0UekdtXiI6c40zItZ-9OrFUzrOgQi3RWnamxeTGbb3sDsWLjzoGUYL-jSbDQs5nvPEaqr9BT6XkZyWlkoMzpnTt3GhXkNRRW4sdxJ_fDp0g/s640/projeto_novo_3.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Depois clicamos em &quot;Select&quot; e temos nossa nova pasta, prontinha para ser usada e abusada. Agora vamos começar a fazer nosso projeto e ver o led funcionar.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Criando um projeto executável.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;b style=&quot;color: blue;&quot;&gt;No MENU selecione &quot;File&quot; -&amp;gt; &quot;New Project&quot;. (Na caixa que se abre, deixe como na figura a seguir, porém deve dar um nome ao projeto que foi escolhido como sendo &quot;novo_projeto&quot; clicando no quadradinho a direita com pontinhos dentro do lado de &quot;Project Name&quot;).&lt;/b&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;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgWLdBZHBsuIKRIBOtH77K8mUqcIscPKx3NK_g425QczrWcCe9UdZauvpVmutuNyxJoeBasV6nko4S75xKYo6PH6rkjJm2YI00LGswIdcORuDg2ciEsZOUePtLiPFjoVQgrdCVEiLLO0qw/s1600/projeto_novo_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;292&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgWLdBZHBsuIKRIBOtH77K8mUqcIscPKx3NK_g425QczrWcCe9UdZauvpVmutuNyxJoeBasV6nko4S75xKYo6PH6rkjJm2YI00LGswIdcORuDg2ciEsZOUePtLiPFjoVQgrdCVEiLLO0qw/s640/projeto_novo_4.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;ul style=&quot;color: blue; font-weight: bold;&quot;&gt;
&lt;li&gt;Na janela que se abre, conforme a figura abaixo, deixe como está e clique em &quot;Next&quot;.&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;color: blue; font-weight: bold;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: blue; font-weight: bold;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; color: blue; font-weight: bold; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiNQLwIfjBX5uHZEbUKjFV4DBvuYKauAuvkONzl1zl8eqAjlgoygIpA_lvkd0qAMdtCYrbXUm9jmquGngr1qFNfUyaxD4CTNJKxbdgDRME9OccZp6YR-j5c35WNLEyvMpK9KN_IO8Ho7Nw/s1600/projeto_novo_5.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;404&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiNQLwIfjBX5uHZEbUKjFV4DBvuYKauAuvkONzl1zl8eqAjlgoygIpA_lvkd0qAMdtCYrbXUm9jmquGngr1qFNfUyaxD4CTNJKxbdgDRME9OccZp6YR-j5c35WNLEyvMpK9KN_IO8Ho7Nw/s640/projeto_novo_5.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;color: blue; font-weight: bold;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-weight: bold;&quot;&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style=&quot;color: blue;&quot;&gt;Na figura que se abre, marque ou com final KIT ou KITG. Em &quot;Setup&quot; marque a frequência do seu cristal. Em &quot;Debug Tool&quot; selecione &quot;SerialSmartCable&quot; e no seu &quot;Setup&quot;, marque &quot;Baud Rate - 57600&quot; e o &quot;Port&quot; vai depender da sua porta serial ou física ou emulada com cabo USB - SERIAL. Clique em &quot;Next&quot; depois &quot;Next&quot; novamente e finalmente em &quot;Finish&quot;.&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;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi4ulwb1QwGzB24r89RZyj6z2tRjQsPoGbDR6nT9mAnMkTuFHadIrsZ_tpFbBBoGlI9NACl52HZEA8cvIau63QnweykAsKP8qw8889cayVF7vKpPZkqL0-q4WDHNB3DW6xWsgFj1xf7ALM/s1600/projeto_novo_6.jpg&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;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi4ulwb1QwGzB24r89RZyj6z2tRjQsPoGbDR6nT9mAnMkTuFHadIrsZ_tpFbBBoGlI9NACl52HZEA8cvIau63QnweykAsKP8qw8889cayVF7vKpPZkqL0-q4WDHNB3DW6xWsgFj1xf7ALM/s640/projeto_novo_6.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;font-weight: bold;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;O ZDSII criou um arquivo de projeto &quot;novo_projeto.zdsproj&quot; e é nesse projeto que vamos trabalhar, criando nosso programa para ser compilado e rodar na placa que estiver a MCU Z8F0822 da zilog.&lt;/div&gt;
&lt;div style=&quot;font-weight: bold;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-weight: bold;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Adicionando um arquivo fonte ao projeto.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-weight: bold;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;ul style=&quot;font-weight: bold;&quot;&gt;
&lt;li&gt;No Menu, clique em &quot;File&quot; -&amp;gt; &quot;New File&quot;. Abre uma janela em branco dentro da IDE e é nessa janela que vamos escrever nosso programa e fazer o led funcionar. Antes vamos fazer uma brincadeira para que se possa fixar a real maneira de trabalhar com esses microcontroladores.&lt;/li&gt;
&lt;li&gt;Agora vamos salvar o arquivo, mesmo vazio, para ter um nome e podermos acrescentar ao projeto. Para isso, podemos pressionar &quot;ctrl-s&quot;, clicar na figura &quot;Save As&quot; ou no menu em &quot;File&quot; -&amp;gt; &quot;New File&quot;. Ao abrir a janela &quot;Save As&quot; edite um nome para o arquivo. Aqui, vamos trabalhar com C inicialmente, para que o arquivo fique menor e mais compreensível aos programadores de outros microcontroladores. Posteriormente, o mesmo arquivo poderá ser em asm. No nosso caso é &quot;novo_projeto.c&quot;.&lt;/li&gt;
&lt;li&gt;No menu e em &quot;Project&quot; -&amp;gt; &quot;Add Files&quot;, escolha o arquivo que acaba de criar, ou seja, novo_projeto.c . Clique em Add e pronto.&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;font-weight: bold;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Agora temos um arquivo fonte no projeto atual, vamos incluir algumas linhas de código e fazer a compilação para ver o que ocorre. Escreva, na parte em branco que se abriu, ou o arquivo novo_projeto.c o texto a seguir :&lt;/div&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; text-align: left;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Salve o arquivo e clique em &quot;Build&quot; no Menu e em &quot;Build&quot; ou pressione F7 para compilar e montar o projeto. Aguarde um pouco e verá na aba de baixo o texto &quot;Build Succeeded&quot;, indicando que a compilação foi bem sucedida, conforme texto abaixo :&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: green; font-size: large;&quot;&gt;OUTPUT CHECKSUM&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: green; font-size: large;&quot;&gt;===============&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: green; font-size: large;&quot;&gt;novo_projeto.hex     8452&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: green; font-size: large;&quot;&gt;novo_projeto.lod     8452&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: green; font-size: large;&quot;&gt;Build succeeded.&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;pre&gt;&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;pre style=&quot;display: inline !important; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: green; font-size: large; font-weight: bold;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;Aqui, vamos mostrar como configurar o PORT ou pinos do microcontrolador conforme desejarmos, como estamos usando um LED, configuraremos os pinos para &quot;High Drive output&quot;, colocar os bits dos pinos em nível alto ou baixo ou o PORT todo, caso seja desejado. Fazer com que cada pino ou bit funcione independente dos outros do mesmo port, fazer operações lógicas e aritméticas e criar funções que agreguem mais recursos ao programa.&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;display: inline !important; font-weight: normal;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;         &amp;nbsp;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;display: inline !important; font-weight: normal;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;b style=&quot;font-size: x-large;&quot;&gt;Acessando os pinos do PORTx &lt;/b&gt;(  x = A~C )        &lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;display: inline !important; font-weight: normal;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;
&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;display: inline !important; font-weight: normal;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;          Para acessar os PORTS ou pinos do microcontrolador da linha Z8 ENCORE, acessamos de fato os registros de memórias mapeadas, isso quer dizer que podemos escrever ou ler dados dessas regiões de memórias onde os dados podem ser transferidos de ou para registros especiais que exercem funções específicas. Esses registros estão conectados de alguma forma aos pinos ou PORTs e alteram suas operações ou comportamento. Vamos acessar um PORT ou pinos que consigam drenar muita corrente elétrica e colocar este em modo saída, pois vamos acionar um LED ou LEDs e faremos isso em linguagem de programação C ou ASM. No programa anterior, criamos um arquivo e o compilamos e montamos, agora é incluir trechos de código que correspondam com a ação que queremos, no nosso caso o arquivo &lt;ez8 .h=&quot;&quot;&gt;, que contem informações sobre o mnemônico do código e permitirá que este compile sem erro. Inclua no topo do código este a chamada deste arquivo como se segue : &lt;/ez8&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;display: inline !important; font-weight: normal;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;
&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;display: inline !important; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;b&gt;#include &lt;ez8 .h=&quot;&quot;&gt;&lt;/ez8&gt;&lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;display: inline !important; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;b&gt;void main(void)                    // Função principal do programa&lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;display: inline !important; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;b&gt;                  {&lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;display: inline !important; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;b&gt;                   PAOUT = 0xFF; // nome do PORT em maiúsculo.&lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;display: inline !important; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;b&gt;                   PAOUT = 0x00 ; // Toda linha termina em ; se não for função. &lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;display: inline !important; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;b&gt;                   PAOUT = 0xFF ; // 0xFF =11111111 e 0x00 = 00000000 em binário.&lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;display: inline !important; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;b&gt;                   return ; // não é nome de registro, por isso é minúsculo.&lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;display: inline !important; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;b&gt;                   }&lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;display: inline !important; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;b&gt;
&lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;display: inline !important; font-weight: normal;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;b&gt;O arquivo de cabeçalho ez8.h&lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;display: inline !important; font-weight: normal;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;b&gt;
&lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;display: inline !important; font-weight: normal;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;b style=&quot;font-size: x-large;&quot;&gt;          &lt;/b&gt;Arquivo de cabeçalho, quando apropriadamente usados em linguagem C são fundamentais para gerar interfaces entre os registros e dar nomes aos operandos e registros. São fundamentais para definir o hardware e o software para um funcionamento perfeito, pois permitem que longas extensões de programas fiquem em um arquivo em separado e apenas chamado pelo programa principal com &quot;#include&quot;. Para o nosso caso, estamos definindo o PORTA com valor 0xFF que é 1 nos oito bits e 0x00, que é zero, em todos os 8 pinos do microcontrolador no PORTA. Isso é definido dentro do arquivo ez8.h como é mostrado neste trecho de código: &lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;display: inline !important; font-weight: normal;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;
&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;display: inline !important; font-weight: normal;&quot;&gt;&lt;span style=&quot;background-color: white; color: green; font-family: &amp;quot;courier new&amp;quot;; white-space: normal;&quot;&gt;&lt;b&gt;#define PAOUT &amp;nbsp;(*(unsigned char volatile far*)0xFD3)&lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;display: inline !important; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;b&gt;
&lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;display: inline !important; font-weight: normal;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;          O endereço do registro de saída do PORTA é, em hexadecimal, FD3 e por isso não precisamos definir este endereço no nosso código, uma vez que já é pre definido no arquivo de cabeçalho ez8.h. Quando escrevemos PAOUT = 0x00, estamos, de fato, escrevendo (*(unsigned char volatile far*)0xFD3) = 0x00. Observe como seria mais dispendioso escrever isso em um código complexo. Por este motivo, o arquivo de cabeçalho já o fez, deixando que a gente apenas referencie o que ele definiu em &quot;#define&quot;, que é &quot;PAOUT=0x00&quot;.&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;display: inline !important; font-weight: normal;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;          Agora vamos compilar o programa e montar com F7 e teremos como resposta no quadro do rodapé, &quot;Build succeeded&quot; indicando que o arquivo foi compilado e montado com sucesso. &lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;display: inline !important; font-weight: normal;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;          Se você executar o programa em modo DEBUG, vai perceber que o programa roda normalmente com as mudanças de valores nos registros do PORTA, porém se baixar o código gerado para o microcontrolador,os LEDs continuarão apagados. Isso foi de propósito. Antes de acender os LEDs, vamos a mais lições, para compreender como funcionam as outras opções de registros em modo propósito geral e função alternativa, pois cada pino pode exercer mais de uma função mas nem sempre ao mesmo tempo. &lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;display: inline !important; font-weight: normal;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;          &lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;display: inline !important; font-weight: normal;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;                                                                     Continua .... &lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/pre&gt;
</content><link rel='replies' type='application/atom+xml' href='http://cleapseletroeletronica.blogspot.com/feeds/3829892277617622099/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://cleapseletroeletronica.blogspot.com/2013/07/zilog-zdsii-ide-de-programacao-free-em.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3000668579123608637/posts/default/3829892277617622099'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3000668579123608637/posts/default/3829892277617622099'/><link rel='alternate' type='text/html' href='http://cleapseletroeletronica.blogspot.com/2013/07/zilog-zdsii-ide-de-programacao-free-em.html' title='Zilog - ZDSII a IDE de programação free em C. - 1ª Parte'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04117759606587902766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhmasHSJDdkgExFR_yAiFg0ZGE5c7k7LY9mZYlrbvy00mE8k20Dciv1odrlUYz1CVDkEgxj9ccdKAr8SgtSaIvqL3Fmjj_sS6UnH-LnaBJ6rlrnT6nnT8mtdmlbh7xig9JEiBiYzpqIw-Y/s72-c/parte1_zilogCurso.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3000668579123608637.post-6321261206930954880</id><published>2013-05-05T18:34:00.002-07:00</published><updated>2016-02-07T11:24:10.792-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Tutoriais"/><title type='text'>Zilog - Usando os pinos de I/Os dos Microcontroladores Z8 encore XP - exemplo.</title><content type='html'>&lt;span style=&quot;color: #274e13; font-size: large;&quot;&gt;&lt;b&gt;Zilog - (PS0199) - Aprenda a usar as IOs desse microcontrolador. Exemplo de código.&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #274e13; font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
 bb_bid = &quot;1674044&quot;;
 bb_lang = &quot;pt-BR&quot;;
 bb_keywords = &quot;GLCD,microcontrolador, TI, RENESAS, zilog,microchip,PLC,elevador, CD, programação,matemática,IC,LCD.&quot;;
 bb_name = &quot;custom&quot;;
 bb_limit = &quot;8&quot;;
 bb_format = &quot;bbb&quot;;
&lt;/script&gt;
&lt;script src=&quot;http://static.boo-box.com/javascripts/embed.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
&lt;br /&gt;
&lt;div style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzVusWmyQA_5s7hMzapDkjn6du2eiZYYKSo81dBFkcTQkyFDM3-SRnyFnJl05q6Ygl9Zh4IGy6ebdTLycwYxjcpfvrrWFCDki84_N9IOMtlbv5vG5ZgOvEmViZ7uPJTIIFohS58V9ayUw/s1600/Zilog_EncoreXP3.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;200&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzVusWmyQA_5s7hMzapDkjn6du2eiZYYKSo81dBFkcTQkyFDM3-SRnyFnJl05q6Ygl9Zh4IGy6ebdTLycwYxjcpfvrrWFCDki84_N9IOMtlbv5vG5ZgOvEmViZ7uPJTIIFohS58V9ayUw/s200/Zilog_EncoreXP3.jpg&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgK39WSWTCbSfjAj9wZqfgLXgpzQf_zz-BLA5ZWIOEmWfSn5xU6GfeHfxCFs0P4AqxjVkg4N9G6CAyI3yrIMR-Oy3HmF2d_ctFlF0RLrAIpttvws4qY5exchBOqATk_nLmcAqe4e6Dl7pc/s1600/Zilog_EncoreXP.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; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgK39WSWTCbSfjAj9wZqfgLXgpzQf_zz-BLA5ZWIOEmWfSn5xU6GfeHfxCFs0P4AqxjVkg4N9G6CAyI3yrIMR-Oy3HmF2d_ctFlF0RLrAIpttvws4qY5exchBOqATk_nLmcAqe4e6Dl7pc/s1600/Zilog_EncoreXP.jpg&quot; /&gt;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiB1n6WUruA-mDLK76t97RIhNKTtzWDCM703PkBX3RFr1-XcqGfjx1UzA_g-Hcncfc4XXTkRjJuXg8jfVRUSNCVB2D4qDMGot8-VkfKLSldHGQq0pTIgHwyqLZghbOM8IbYDvbfvpkKrn4/s1600/Zilog_EncoreXP2.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiB1n6WUruA-mDLK76t97RIhNKTtzWDCM703PkBX3RFr1-XcqGfjx1UzA_g-Hcncfc4XXTkRjJuXg8jfVRUSNCVB2D4qDMGot8-VkfKLSldHGQq0pTIgHwyqLZghbOM8IbYDvbfvpkKrn4/s1600/Zilog_EncoreXP2.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;b&gt;Finalidade :&lt;/b&gt;&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;div style=&quot;text-align: justify;&quot;&gt;
&lt;b style=&quot;font-size: x-large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/b&gt;Neste trabalho vamos mostrar como é fácil e rápido usar a IDE da ZILOG na programação de microcontroladores Zilog. usaremos os exemplos que já constam na documentação do programa e as formas de trabalhar com o mesmo. Este trabalho possui muita informação importante a respeito de como ler e escrever nos registros e nas entradas e saídas do microcontrolador em diferentes modos de operação.&lt;/div&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;Exemplo de código para a linha Z8 encore.&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b style=&quot;font-size: x-large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/b&gt;Os microcontroladores da Zilog com core Z8 encore XP são muito fáceis de serem programados e usados em diversos projetos de uso geral. Aqui vamos nos ater ao fato de mostrar como podemos criar nosso código, compilar e descarregar dentro dos microcontroladores de maneira rápida e fácil.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Primeiro de tudo, devemos ir no site &lt;a href=&quot;http://www.zilog.com/&quot;&gt;www.zilog.com&lt;/a&gt; e baixar a ultima versão do software ZDSII, que é uma IDE completa e sem limites em C e asm para programação e debugagem. Se você perdeu os ultimos posts sobre como montar um gravador serial para esta linha, procure no blog em&amp;nbsp;&lt;a href=&quot;http://cleapseletroeletronica.blogspot.com.br/2012_10_01_archive.html&quot;&gt;http://cleapseletroeletronica.blogspot.com.br/2012_10_01_archive.html&lt;/a&gt;&amp;nbsp;e fazer o seu.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Vou imaginar que você fez o download e a instalação. Agora vamos abrir o programa ZDSII para a linha Z8 ENCORE XP e para tal ou abrimos no menu iniciar ou na área de trabalho, isso pode ser &amp;nbsp;tanto no windows quanto no Linux. Essa é a sacada boa do compilador da Zilog, pode ser usado em duas plataformas de sistemas operacionais diferentes e sem estresse.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Clique no menu iniciar e ache a pasta do programa, abra-o.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &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: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiLczUoWrPt_aNEchwmXrqRs0StsY4gRFi0ObKvHj3SzBgxh-HLZXtxukG1AMMjT79GD-D0nTd2gGILrlTi4ryQSstwQl_pk24dbQ4Lf4XrCFRLt8Owr1rM-KxXS8hQBG4BqU2w4eU32v8/s1600/inicio+programa.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;408&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiLczUoWrPt_aNEchwmXrqRs0StsY4gRFi0ObKvHj3SzBgxh-HLZXtxukG1AMMjT79GD-D0nTd2gGILrlTi4ryQSstwQl_pk24dbQ4Lf4XrCFRLt8Owr1rM-KxXS8hQBG4BqU2w4eU32v8/s640/inicio+programa.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Teremos o programa aberto em poucos segundos com a aparência como se segue na figura a seguir e é a partir daí que poderemos realizar nosso trabalho de projetos.&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;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8j4ivofdbtUMTPIAzNViORdNboRgWITtrdGga2NGppTmmuL2sxk7JFAmH39H9fESfJErKTzCfJp10HRU0tixJZEU6UQ4wETzfuTgDd4E-_sf8wh0slw7H1OBQ_880Sn7Kz4lBnuxEnwU/s1600/programa1.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;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8j4ivofdbtUMTPIAzNViORdNboRgWITtrdGga2NGppTmmuL2sxk7JFAmH39H9fESfJErKTzCfJp10HRU0tixJZEU6UQ4wETzfuTgDd4E-_sf8wh0slw7H1OBQ_880Sn7Kz4lBnuxEnwU/s640/programa1.jpg&quot; width=&quot;780&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; A partir daí é só ir em FILE e, se for criar um projeto novo, em NEW Project, ou abrir um existente, em Open Project. No nosso caso, abriremos um projeto já existente, pois o espaço aqui não permite aprofundar nessa parte agora, que ficará para um outro momento, que é mostrar como começar do zero.&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;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEieig792EPDaXq1Vy6sAH4N1zxCLEwLEI2ip2SOkWVzY1Bcy10X30zHkNHrYB2lqrp6uoJoQEuRak__bPrMKINfnM5EH4YHO3gzw275Va-S4fWFumPVh0tdVbF-UpXpkGQhfbbM97jp_Bw/s1600/programa2.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;262&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEieig792EPDaXq1Vy6sAH4N1zxCLEwLEI2ip2SOkWVzY1Bcy10X30zHkNHrYB2lqrp6uoJoQEuRak__bPrMKINfnM5EH4YHO3gzw275Va-S4fWFumPVh0tdVbF-UpXpkGQhfbbM97jp_Bw/s400/programa2.jpg&quot; width=&quot;400&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: left;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Abre-se a janela a seguir e vamos em C:\ Arquivos de programa\ZiLOG\ZDSII_Z8Encore!5.0\samples\XP_F0822\XP_F0822_ledBlink_asm\src, &amp;nbsp;clicamos no arquivo de projeto que se segue.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQ41aYcjgUd4UEq2L9pmjtjZS5fTC7iv5jDDreJZ40LdLxbI8GIoPhNKKzeDNs2ZJ_fbLNfsChXNvWbOeZLgBEeHgI7dke-CcQK5jFXNovGXzs_W8b05W-1NYs5OPatDsO2gOTLs91Pxs/s1600/programa3.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;253&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQ41aYcjgUd4UEq2L9pmjtjZS5fTC7iv5jDDreJZ40LdLxbI8GIoPhNKKzeDNs2ZJ_fbLNfsChXNvWbOeZLgBEeHgI7dke-CcQK5jFXNovGXzs_W8b05W-1NYs5OPatDsO2gOTLs91Pxs/s400/programa3.jpg&quot; width=&quot;400&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: left;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; E temos a figura a seguir com o programa pronto para ser compilado e enviado ao microcontrolador e não podemos antes de configurar o hardware de gravação e escolha do microcontrolador exato e para isso vamos em project em em settings.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&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;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjfMHlWv8HgkUYyBhtOW3cILELadgLWmh5w63tazCPW7rO4wECgwv39FmnVubKXgkUCaRHw8nnvQeacUUpwNt_AvfxzaAKmGFYHqHo02b3i-pqm9BUmiKkz2uO3hCjzBMgIhLwRrcbfvFE/s1600/programa4.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;481&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjfMHlWv8HgkUYyBhtOW3cILELadgLWmh5w63tazCPW7rO4wECgwv39FmnVubKXgkUCaRHw8nnvQeacUUpwNt_AvfxzaAKmGFYHqHo02b3i-pqm9BUmiKkz2uO3hCjzBMgIhLwRrcbfvFE/s320/programa4.jpg&quot; width=&quot;780&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Abre-se a figura seguinte e em Debuger Tool selecionamos SerialSmartCable e em setup, escolhemos a configuração de nossa porta serial no computador. Em Target e clicando em SETUP é possível alterar o valor do cristal que será usado no microcontrolador. Como se vê na figura abaixo.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&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;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqORWDDImFAGpX3Jc-uoPAtpLmwdztTxYTrMYsbWtBDOr6oGPhwJ-BEasBwA884LaKMSoxvU9AODUf0otdzUf2SLJE9MDR5rjImFU9uFCgsnbc77e1I805CRZvaOKoD1Pc124yF41_FSA/s1600/programa6.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;507&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqORWDDImFAGpX3Jc-uoPAtpLmwdztTxYTrMYsbWtBDOr6oGPhwJ-BEasBwA884LaKMSoxvU9AODUf0otdzUf2SLJE9MDR5rjImFU9uFCgsnbc77e1I805CRZvaOKoD1Pc124yF41_FSA/s640/programa6.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: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Clicamos em compilar :&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiFd6jS-h_LfpU3vm4xwdmXUaqJgeaD5OAdGgofxqiGsTDsceJDI5PfpOt_R1xTUQCmuh3-pM15r364iczdg4CA5vyTC1lYqPdot8181e946pxEnKrhdpz_Vh0eDPr6ZJuj30ZGIdkhz6A/s1600/programa7.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;84&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiFd6jS-h_LfpU3vm4xwdmXUaqJgeaD5OAdGgofxqiGsTDsceJDI5PfpOt_R1xTUQCmuh3-pM15r364iczdg4CA5vyTC1lYqPdot8181e946pxEnKrhdpz_Vh0eDPr6ZJuj30ZGIdkhz6A/s320/programa7.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: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; E, se tivermos como resposta, a figura que mostra no rodapé do programa, como succeed, então o programa não tem erros e podemos gravar no microcontrolador.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&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;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuY7izM-dmkMlR9OONn6GYiV5cfEGeyMz-9Ac_2x3aVnvWoTCuSot9t_w3yCSR_bqGK6ktwSUO2Hb5oM6md1xYpwEk1Oz2XT7B7kz1Cdxa51oyzou-sSusFSv0tT4T_ytWS6U6Ne4EBK8/s1600/programa8.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;161&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuY7izM-dmkMlR9OONn6GYiV5cfEGeyMz-9Ac_2x3aVnvWoTCuSot9t_w3yCSR_bqGK6ktwSUO2Hb5oM6md1xYpwEk1Oz2XT7B7kz1Cdxa51oyzou-sSusFSv0tT4T_ytWS6U6Ne4EBK8/s640/programa8.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: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Agora é clicar em&amp;nbsp;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5jdus4dhiiWXgYSVW1KNll8Lwusrw5yOeGLFGl6ATLyjQv-PctlGA19NF-q0sqUfDdb9jiR3WCp2xcSN5OkuTLvVo9goZaqaxJzzFqFhp0_Wsak01wVtE8W5GLGDXpjCjJiaMGtMy_LE/s1600/programa9.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5jdus4dhiiWXgYSVW1KNll8Lwusrw5yOeGLFGl6ATLyjQv-PctlGA19NF-q0sqUfDdb9jiR3WCp2xcSN5OkuTLvVo9goZaqaxJzzFqFhp0_Wsak01wVtE8W5GLGDXpjCjJiaMGtMy_LE/s1600/programa9.jpg&quot; /&gt;&lt;/a&gt;&amp;nbsp;e conectar ao microcontrolador para debuggar e gravar seu programa compilado. Se tivermos a figura a seguinte é por que, ou o hardware está com problemas ou não está conectado adequadamente e por isso é bom verificar o que possa estar acontecendo.&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&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;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9C7GFxNzJOBJu8kXXDors7LH7DrOFU7OUov8tFIPZ8dh7vGBeZKESyItmYTUk-ilQ-R2_8ilR5n7h-9grrM01jw9m0cIRLefNIYys_impeA-9UE6ceSKZ7i1VYlQ13lIa6xkp6mZ9MGQ/s1600/programa10.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;164&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9C7GFxNzJOBJu8kXXDors7LH7DrOFU7OUov8tFIPZ8dh7vGBeZKESyItmYTUk-ilQ-R2_8ilR5n7h-9grrM01jw9m0cIRLefNIYys_impeA-9UE6ceSKZ7i1VYlQ13lIa6xkp6mZ9MGQ/s640/programa10.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: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Agora, se a mensagem for diferente e como é mostrado na figura abaixo, tudo certo, é só programar o microcontrolador e começar a fuçar no programa e ir modificando os parâmetros para ver o que acontece no microcontrolador e o que muda nos registradores no canto direito do programa, isso é debugar e verificar o interior do microcontrolador e acertar o que esteja fora do desejado.&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&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;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwICqpHQp0_GemYtp7FJqfAQgh6yrAiLVKMjINypWwoXZAALGlW8nqSdqhRUGG71WA1PA-NmJAl3UxigU5s7JPQp9vk-_Ra5VzVGHC_p6DaP2mCqtMiG9aIfgCfdH1D8gqcEyvLeUljXU/s1600/programa11.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;482&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwICqpHQp0_GemYtp7FJqfAQgh6yrAiLVKMjINypWwoXZAALGlW8nqSdqhRUGG71WA1PA-NmJAl3UxigU5s7JPQp9vk-_Ra5VzVGHC_p6DaP2mCqtMiG9aIfgCfdH1D8gqcEyvLeUljXU/s640/programa11.jpg&quot; width=&quot;780&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Depois de tudo isso, é só clicar em&amp;nbsp;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhrKXKt0D7v3CEXVE4ZkGoUYs7LDezkuoC7S4aQyEV85kVk1G8tE8FBzl6B6Jwg_YNgX4GmUELtifPiRuWn04xvyzGX-HA_HjKaH8nAELLR3pNR6xyQ_DPtZkzH-mVlYMTjDq9ot7fdB0s/s1600/programa12.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhrKXKt0D7v3CEXVE4ZkGoUYs7LDezkuoC7S4aQyEV85kVk1G8tE8FBzl6B6Jwg_YNgX4GmUELtifPiRuWn04xvyzGX-HA_HjKaH8nAELLR3pNR6xyQ_DPtZkzH-mVlYMTjDq9ot7fdB0s/s1600/programa12.jpg&quot; /&gt;&lt;/a&gt;&amp;nbsp;Download code e baixar seu arquivo .hex no microcontrolador e começar a brincar ou fazer seus projetos.&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Espero que com esse tutorial de como usar o programa ZDSII da Zilog, tenhamos alcançado seus objetivos, apesar de o texto do título falar de exemplo, é isso mesmo o nosso proposto, ou seja usar um exemplo pronto de programa e deixar o leitor fazer suas modificações e verificações, com isso queremos incitar a criatividade e a curiosidade.&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Os microcontroladores da Zilog são robustos e com uma gama muito grande de periféricos que permitem um desenvolvimento de projetos e protótipos.&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Caso tenham dúvidas, sugestões e reclamações, nosso site www.cleapseletroeletronica.com e nosso email andrepereira@ig.com.br estão abertos aos nossos leitores.&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Tentaremos fazer mais exemplos e projetos com os microcontroladores da Zilog e aguardamos suas sugestões. Até a próxima.&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://cleapseletroeletronica.blogspot.com/feeds/6321261206930954880/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://cleapseletroeletronica.blogspot.com/2013/05/zilog-usando-os-pinos-de-ios-dos.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3000668579123608637/posts/default/6321261206930954880'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3000668579123608637/posts/default/6321261206930954880'/><link rel='alternate' type='text/html' href='http://cleapseletroeletronica.blogspot.com/2013/05/zilog-usando-os-pinos-de-ios-dos.html' title='Zilog - Usando os pinos de I/Os dos Microcontroladores Z8 encore XP - exemplo.'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04117759606587902766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzVusWmyQA_5s7hMzapDkjn6du2eiZYYKSo81dBFkcTQkyFDM3-SRnyFnJl05q6Ygl9Zh4IGy6ebdTLycwYxjcpfvrrWFCDki84_N9IOMtlbv5vG5ZgOvEmViZ7uPJTIIFohS58V9ayUw/s72-c/Zilog_EncoreXP3.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3000668579123608637.post-7921457204901947398</id><published>2013-04-08T13:31:00.000-07:00</published><updated>2016-02-03T05:19:41.271-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Tutoriais"/><title type='text'>Zilog - Usando os pinos de I/Os dos Microcontroladores Z8 encore XP - parte 2</title><content type='html'>&lt;span style=&quot;color: #274e13; font-size: large;&quot;&gt;&lt;b&gt;Zilog - (PS0199) - Aprenda a usar as I/Os desse microcontrolador. Parte 2&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #274e13; font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
 bb_bid = &quot;1674044&quot;;
 bb_lang = &quot;pt-BR&quot;;
 bb_keywords = &quot;GLCD,microcontrolador, TI, RENESAS, zilog,microchip,PLC,elevador, CD, programação,matemática,IC,LCD.&quot;;
 bb_name = &quot;custom&quot;;
 bb_limit = &quot;8&quot;;
 bb_format = &quot;bbb&quot;;
&lt;/script&gt;
&lt;script src=&quot;http://static.boo-box.com/javascripts/embed.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
&lt;br /&gt;
&lt;div style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzVusWmyQA_5s7hMzapDkjn6du2eiZYYKSo81dBFkcTQkyFDM3-SRnyFnJl05q6Ygl9Zh4IGy6ebdTLycwYxjcpfvrrWFCDki84_N9IOMtlbv5vG5ZgOvEmViZ7uPJTIIFohS58V9ayUw/s1600/Zilog_EncoreXP3.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;200&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzVusWmyQA_5s7hMzapDkjn6du2eiZYYKSo81dBFkcTQkyFDM3-SRnyFnJl05q6Ygl9Zh4IGy6ebdTLycwYxjcpfvrrWFCDki84_N9IOMtlbv5vG5ZgOvEmViZ7uPJTIIFohS58V9ayUw/s200/Zilog_EncoreXP3.jpg&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgK39WSWTCbSfjAj9wZqfgLXgpzQf_zz-BLA5ZWIOEmWfSn5xU6GfeHfxCFs0P4AqxjVkg4N9G6CAyI3yrIMR-Oy3HmF2d_ctFlF0RLrAIpttvws4qY5exchBOqATk_nLmcAqe4e6Dl7pc/s1600/Zilog_EncoreXP.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; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgK39WSWTCbSfjAj9wZqfgLXgpzQf_zz-BLA5ZWIOEmWfSn5xU6GfeHfxCFs0P4AqxjVkg4N9G6CAyI3yrIMR-Oy3HmF2d_ctFlF0RLrAIpttvws4qY5exchBOqATk_nLmcAqe4e6Dl7pc/s1600/Zilog_EncoreXP.jpg&quot; /&gt;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiB1n6WUruA-mDLK76t97RIhNKTtzWDCM703PkBX3RFr1-XcqGfjx1UzA_g-Hcncfc4XXTkRjJuXg8jfVRUSNCVB2D4qDMGot8-VkfKLSldHGQq0pTIgHwyqLZghbOM8IbYDvbfvpkKrn4/s1600/Zilog_EncoreXP2.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiB1n6WUruA-mDLK76t97RIhNKTtzWDCM703PkBX3RFr1-XcqGfjx1UzA_g-Hcncfc4XXTkRjJuXg8jfVRUSNCVB2D4qDMGot8-VkfKLSldHGQq0pTIgHwyqLZghbOM8IbYDvbfvpkKrn4/s1600/Zilog_EncoreXP2.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: x-large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: x-large;&quot;&gt;Continuação :&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: x-large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dando continuidade com o nosso trabalho sobre o uso e configuração das I/Os dos microcontroladores da Zilog linha Z8 Encore, vamos falar mais um pouco dos periféricos e outras particularidades do microcontrolador e desenvolver algum exemplo prático.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;times&amp;quot; , &amp;quot;times new roman&amp;quot; , serif; font-size: large;&quot;&gt;Configurando os I/Os para operação de funções alternativas.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;times&amp;quot; , &amp;quot;times new roman&amp;quot; , serif; font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;Quando os pinos de I/Os são configurados para operação de funções alternativas, é dado acesso a funções especiais do microcontrolador como os TIMERS, Comunicação serial e demais periféricos. Para definir as I/Os para operação de funções alternativas, o registro de endereço do port em questão, deve ser definido como tipo de função alternativa que se queira naquele pino ou port e o registro de controle deve ser preenchido com valores pertinentes aos pinos do port específico envolvido com a função que se deseja usar nesse pino. A tabela a seguir lista as funções alternativas associadas com cada pino do port dos microcontroladores Z8 Encore XP.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;b&gt;Tabela – Mapeamento de funções alternativas dos PORTS&lt;/b&gt;&lt;br /&gt;
&lt;table border=&quot;0&quot; cellspacing=&quot;0&quot; cols=&quot;7&quot; frame=&quot;VOID&quot; rules=&quot;NONE&quot;&gt;
 &lt;colgroup&gt;&lt;col width=&quot;86&quot;&gt;&lt;/col&gt;&lt;col width=&quot;86&quot;&gt;&lt;/col&gt;&lt;col width=&quot;138&quot;&gt;&lt;/col&gt;&lt;col width=&quot;272&quot;&gt;&lt;/col&gt;&lt;col width=&quot;10&quot;&gt;&lt;/col&gt;&lt;col width=&quot;10&quot;&gt;&lt;/col&gt;&lt;col width=&quot;10&quot;&gt;&lt;/col&gt;&lt;/colgroup&gt;
 &lt;tbody&gt;
&lt;tr&gt;
   
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot; width=&quot;86&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot; width=&quot;138&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot; width=&quot;272&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot; width=&quot;10&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot; width=&quot;10&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-right: 1px solid #000000; border-top: 1px solid #000000;&quot; width=&quot;10&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;/tr&gt;
&lt;tr&gt;
   &lt;td align=&quot;LEFT&quot; height=&quot;18&quot; style=&quot;border-left: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-right: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;/tr&gt;
&lt;tr&gt;
   &lt;td align=&quot;LEFT&quot; height=&quot;18&quot; style=&quot;border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;b&gt;PORT&lt;/b&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;Pino&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;Mnemônico&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;Descrição da função alternativa&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-right: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;/tr&gt;
&lt;tr&gt;
   &lt;td align=&quot;LEFT&quot; height=&quot;18&quot; style=&quot;border-left: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-right: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;/tr&gt;
&lt;tr&gt;
   &lt;td align=&quot;LEFT&quot; height=&quot;18&quot; style=&quot;border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;PORTA&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;PA0&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;T0IN&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;Entrada do timer 0&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-right: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;/tr&gt;
&lt;tr&gt;
   &lt;td align=&quot;LEFT&quot; height=&quot;18&quot; style=&quot;border-left: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;PA1&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;T0OUT&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;Saída do timer 0&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-right: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;/tr&gt;
&lt;tr&gt;
   &lt;td align=&quot;LEFT&quot; height=&quot;18&quot; style=&quot;border-left: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;PA2&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;N/A&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;Sem função alternativa&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-right: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;/tr&gt;
&lt;tr&gt;
   &lt;td align=&quot;LEFT&quot; height=&quot;18&quot; style=&quot;border-left: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;PA3&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;CTS0 (Ativo EM 0)&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;UART 0 limpa antes de enviar&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-right: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;/tr&gt;
&lt;tr&gt;
   &lt;td align=&quot;LEFT&quot; height=&quot;18&quot; style=&quot;border-left: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;PA4&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;RXD0/IRRX0&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;UART 0/IrDA 0 recebe dados&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-right: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;/tr&gt;
&lt;tr&gt;
   &lt;td align=&quot;LEFT&quot; height=&quot;18&quot; style=&quot;border-left: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;PA5&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;TXD0/IRTX0&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;UART 0/IrDA 0 transmite dados&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-right: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;/tr&gt;
&lt;tr&gt;
   &lt;td align=&quot;LEFT&quot; height=&quot;18&quot; style=&quot;border-left: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;PA6&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;SCL&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;I²C clock ( OPEN-DRAIN automaticamente)&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-right: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;/tr&gt;
&lt;tr&gt;
   &lt;td align=&quot;LEFT&quot; height=&quot;18&quot; style=&quot;border-left: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;PA7&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;SDA&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;I²C Data ( Open-drain automaticamente )&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-right: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;/tr&gt;
&lt;tr&gt;
   &lt;td align=&quot;LEFT&quot; height=&quot;18&quot; style=&quot;border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;PORTB&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;PB0&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;ANA0&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;Entrada analógica do ADC&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-right: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;/tr&gt;
&lt;tr&gt;
   &lt;td align=&quot;LEFT&quot; height=&quot;18&quot; style=&quot;border-left: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;PB1&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;ANA1 &lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;Entrada analógica do ADC&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-right: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;/tr&gt;
&lt;tr&gt;
   &lt;td align=&quot;LEFT&quot; height=&quot;18&quot; style=&quot;border-left: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;PB2&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;ANA2&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;Entrada analógica do ADC&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-right: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;/tr&gt;
&lt;tr&gt;
   &lt;td align=&quot;LEFT&quot; height=&quot;18&quot; style=&quot;border-left: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;PB3&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;ANA3&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;Entrada analógica do ADC&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-right: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;/tr&gt;
&lt;tr&gt;
   &lt;td align=&quot;LEFT&quot; height=&quot;18&quot; style=&quot;border-left: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;PB4&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;ANA4&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;Entrada analógica do ADC&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-right: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;/tr&gt;
&lt;tr&gt;
   &lt;td align=&quot;LEFT&quot; height=&quot;18&quot; style=&quot;border-left: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;PB5&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;ANA5&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;Entrada analógica do ADC&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-right: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;/tr&gt;
&lt;tr&gt;
   &lt;td align=&quot;LEFT&quot; height=&quot;18&quot; style=&quot;border-left: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;PB6&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;ANA6&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;Entrada analógica do ADC&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-right: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;/tr&gt;
&lt;tr&gt;
   &lt;td align=&quot;LEFT&quot; height=&quot;18&quot; style=&quot;border-left: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;PB7&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;ANA7&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;Entrada analógica do ADC&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-right: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;/tr&gt;
&lt;tr&gt;
   &lt;td align=&quot;LEFT&quot; height=&quot;18&quot; style=&quot;border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;PORTC&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;PC0&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;T1IN&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;Entrada do Timer 1&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-right: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;/tr&gt;
&lt;tr&gt;
   &lt;td align=&quot;LEFT&quot; height=&quot;18&quot; style=&quot;border-left: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;PC1&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;T1OUT&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;Saída do Timer 1&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-right: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;/tr&gt;
&lt;tr&gt;
   &lt;td align=&quot;LEFT&quot; height=&quot;18&quot; style=&quot;border-left: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;PC2&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;SS (ATIVO EM 0 )&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;SPI seletor de escravo&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-right: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;/tr&gt;
&lt;tr&gt;
   &lt;td align=&quot;LEFT&quot; height=&quot;18&quot; style=&quot;border-left: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;PC3&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;SCK &lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;SPI serial clock&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-right: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;/tr&gt;
&lt;tr&gt;
   &lt;td align=&quot;LEFT&quot; height=&quot;18&quot; style=&quot;border-left: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;PC4&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;MOSI&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;SPI saída mestre, entrada escravo&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-right: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;/tr&gt;
&lt;tr&gt;
   &lt;td align=&quot;LEFT&quot; height=&quot;18&quot; style=&quot;border-left: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;PC5&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;MISO&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;SPI entrada mestre, saída escravo&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-right: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;/tr&gt;
&lt;tr&gt;
   &lt;td align=&quot;LEFT&quot; height=&quot;18&quot; style=&quot;border-left: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;PC6&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;T2IN&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;entrada do Timer 2&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-right: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;/tr&gt;
&lt;tr&gt;
   &lt;td align=&quot;LEFT&quot; height=&quot;18&quot; style=&quot;border-left: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;PC7&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;T2OUT&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;Saída do Timer 2&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-right: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;/tr&gt;
&lt;tr&gt;
   &lt;td align=&quot;LEFT&quot; height=&quot;18&quot; style=&quot;border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;PORTD&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;PD0&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;T3IN&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;Entrada do Timer 3&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-right: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;/tr&gt;
&lt;tr&gt;
   &lt;td align=&quot;LEFT&quot; height=&quot;18&quot; style=&quot;border-left: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;PD1&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;T3OUT&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;Saída do Timer 3 &lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-right: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;/tr&gt;
&lt;tr&gt;
   &lt;td align=&quot;LEFT&quot; height=&quot;18&quot; style=&quot;border-left: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;PD2&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;N/A&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;Sem função alternativa&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-right: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;/tr&gt;
&lt;tr&gt;
   &lt;td align=&quot;LEFT&quot; height=&quot;18&quot; style=&quot;border-left: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;PD3&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;N/A&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;Sem função alternativa&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-right: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;/tr&gt;
&lt;tr&gt;
   &lt;td align=&quot;LEFT&quot; height=&quot;18&quot; style=&quot;border-left: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;PD4&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;RXD1/IRRX1&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;UART 1/ IrDA 1 recebe dados&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-right: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;/tr&gt;
&lt;tr&gt;
   &lt;td align=&quot;LEFT&quot; height=&quot;18&quot; style=&quot;border-left: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;PD5&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;TXD1/IRTX1&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;UART 1/ IrDA 1 transmite dados&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-right: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;/tr&gt;
&lt;tr&gt;
   &lt;td align=&quot;LEFT&quot; height=&quot;18&quot; style=&quot;border-left: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;PD6&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;CTS1 (Ativo em 0 )&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;UART 1 limpa para enviar&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-right: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;/tr&gt;
&lt;tr&gt;
   &lt;td align=&quot;LEFT&quot; height=&quot;18&quot; style=&quot;border-left: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;PD7&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;RCOUT&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;Saída do oscilador RC do timer watch-dog&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-right: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;/tr&gt;
&lt;tr&gt;
   &lt;td align=&quot;LEFT&quot; height=&quot;18&quot; style=&quot;border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;PORTE&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;PE[7:0]&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;N/A&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;Sem função alternativa&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-right: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;/tr&gt;
&lt;tr&gt;
   &lt;td align=&quot;LEFT&quot; height=&quot;18&quot; style=&quot;border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;PORTF     &lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;PF[7:0]&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;N/A&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;Sem função alternativa&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-right: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;/tr&gt;
&lt;tr&gt;
   &lt;td align=&quot;LEFT&quot; height=&quot;18&quot; style=&quot;border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;PORTG&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;PG[7:0]&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;N/A&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;Sem função alternativa&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-right: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;/tr&gt;
&lt;tr&gt;
   &lt;td align=&quot;LEFT&quot; height=&quot;18&quot; style=&quot;border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;PORTH&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;PH0&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;ANA8&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;Entrada analógica do ADC&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-right: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;/tr&gt;
&lt;tr&gt;
   &lt;td align=&quot;LEFT&quot; height=&quot;18&quot; style=&quot;border-left: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;PH1&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;ANA9&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;Entrada analógica do ADC&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-right: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;/tr&gt;
&lt;tr&gt;
   &lt;td align=&quot;LEFT&quot; height=&quot;18&quot; style=&quot;border-left: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;PH2&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;ANA10&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;Entrada analógica do ADC&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-right: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;/tr&gt;
&lt;tr&gt;
   &lt;td align=&quot;LEFT&quot; height=&quot;18&quot; style=&quot;border-bottom: 1px solid #000000; border-left: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;PH3&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;ANA11&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;Entrada analógica do ADC&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
   &lt;td align=&quot;LEFT&quot; style=&quot;border-bottom: 1px solid #000000; border-right: 1px solid #000000; border-top: 1px solid #000000;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Por exemplo, digamos que se decida usar o periférico Timer 0 do microcontrolador Z8 Encore XP, configurando ou definindo o pino do PORTA para operação de função alternativa. Só e somente a função de saída no pino é considerado nesse exemplo.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; O &amp;nbsp;código do exemplo 1, mostra como é configurado ou definido o pino PA1 do PORTA para operação de função alternativa configurando os bits apropriados no registradores adequados.&lt;br /&gt;
&lt;br /&gt;
Exemplo 1 :&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; /***************************************************/&lt;br /&gt;
&amp;nbsp;// &amp;nbsp; &amp;nbsp; &amp;nbsp;inicialização &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;br /&gt;
&amp;nbsp;/***************************************************/&lt;br /&gt;
&lt;br /&gt;
PAADDR = 0x02 ; &amp;nbsp; &amp;nbsp;// Registro do endereço do PORTA seleciona sub-registro de função alternativa.&lt;br /&gt;
PACTL |= 0X02 ; &amp;nbsp; &amp;nbsp; &amp;nbsp;// Registro de controle do PORTA seta saída do TIMER0.&lt;br /&gt;
PAADDR = 0X01 ; &amp;nbsp; // Registro de endereço do PORTA sub-registro de direção de dados.&lt;br /&gt;
PACTL &amp;amp;= 0Xfd ; &amp;nbsp; &amp;nbsp;// Registro de controle do PORTA define bit 1 como saída, se Timer 0 selecionado.&lt;br /&gt;
PAADDR = 0X03 ; &amp;nbsp; // Registro de endereço do PORTA seleciona o sub-registro de controle de saída.&lt;br /&gt;
PACTL &amp;amp;= 0Xfd ; &amp;nbsp; &amp;nbsp;// Registro de &amp;nbsp;controle do PORTA define o bit 1 como push-pull.&lt;br /&gt;
PAADDR = 0X00 ; &amp;nbsp; // Permite bloquear os sub-registros contra alterações&amp;nbsp;inadvertidas&amp;nbsp;depois de &lt;br /&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;configurados. &lt;br /&gt;
&lt;br /&gt;
Exemplo 2 :&lt;br /&gt;
&lt;br /&gt;
/*****************************************************/&lt;br /&gt;
// Inicialização &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; &amp;nbsp;//&lt;br /&gt;
/*****************************************************/&lt;br /&gt;
&lt;br /&gt;
PAADDR = 0X02 ; &amp;nbsp;// Registro de endereço do PORTA seleciona sub-registro de função alternativa.&lt;br /&gt;
PACTL &amp;nbsp;|= 0X01 ; &amp;nbsp; // Registro de controle do PORTA define entrada do Timer0.&lt;br /&gt;
PAADDR = 0X01 ; // Registro de endereço do PORTA seleciona sub-registro de direção de dados.&lt;br /&gt;
PACTL |= 0X01 ; &amp;nbsp; // Registro de controle do PORTA define bit 0 como entrada, se Timer 0 selecionado.&lt;br /&gt;
PAADDR = 0X00 ; // Permite bloquear os sub-registros contra alterações&amp;nbsp;inadvertidas&amp;nbsp;depois de &lt;br /&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;configurados.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;NOTA: Os registros dos ports de A~H selecionam as funcionalidades dos I/Os acessíveis através dos registros de controle dos ports de A~H. Definindo os pinos dos ports como 1 nos registros dos endereços dos ports de A~H, através dos registros de controle dos ports, habilita o port correspondente para operação de função alternativa.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif; font-size: large;&quot;&gt;Definindo as I/Os como operação de modo misto.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Agora que aprendemos como definir os pinos dos microcontroladores Z8 Encore como entrada, saída e operação de função alternativa, temos, aqui, um exemplo de como usar, simultaneamente, pinos diferentes no mesmo PORT como entrada, saída e operação de função alternativa.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Por exemplo, assuma que você queira usar o pino do Timer 0 como saída definindo isso no pino PA1 do PORTA. Deseja-se usar os pinos PA&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt; e PA&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;5 como entrada, deseja-se, também, usar os pinos PA6 e PA7 como saídas dreno aberto. Depois de definir isso nos registradores, você deseja ler dados dos pinos [4,5] e escrever dados nos pinos [6,7] com lógica [1,0].&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; O código a seguir ilustra melhor como configurar o PORTA para operação mista.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;/******************************************************************************/&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;// Inicialização &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;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;/*****************************************************************************/&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;PAADDR = 0x02 ; &amp;nbsp;// Registro de endereço do PORTA seleciona sub-registro de função alternativa.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;PACTL |= 0x02 ; &amp;nbsp;// Registro de controle do PORTA define saída do Timer 0, demais pinos livres como I/O.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;PAADDR = 0x01 ; // Registro de endereço do PORTA seleciona sub-registro de direção de dados.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;PACTL &amp;amp;= 0x3d ; //3d = 00111101 define os bits 1,6 e 7 como saída e os pinos 4 e 5, como entrada.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;PAADDR = 0X03 ; &amp;nbsp; // Registro de endereço do PORTA seleciona o sub-registro de controle de saída.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;PACTL &amp;amp;= 0Xfd ; &amp;nbsp; &amp;nbsp;// Registro de &amp;nbsp;controle do PORTA define o bit 1 como push-pull.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;PAADDR = 0X00 ; &amp;nbsp; // Permite bloquear os sub-registros contra alterações&amp;nbsp;inadvertidas&amp;nbsp;depois de&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp;configurados. &amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
data = code ; // Lê os dados do registro de entrada do PORTA para dentro da variável &#39;data&#39;.&lt;/div&gt;
&lt;div&gt;
data = data &amp;amp; 0x03 ; // Faz uma operação lógica AND com 00110000 para mascarar os valores dos bits 4 e 5.&lt;/div&gt;
&lt;div&gt;
PAOUT = data | 0x40 ; //Faz uma operação lógica OR do valor em data com 01000000 e escreve no registro de saída do PORTA para setar os bits [6,7] para [1,0].&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;Conclusão :&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;Os pinos de I/Os são facilmente configuráveis usando os registros de endereços de ports junto com os registros de controle dos ports e seus respectivos sub-registros como explicado nesse documento.&amp;nbsp;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; O pino de qualquer I/O pode ser usado como fonte de interrupção externa quando configurados, somente, como entrada.&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; A tabela neste documento, acima descrita, demonstra que as funções de periféricos on-chip dos microcontroladores Z8 Encore XP depende de posição de bitsnos ports.&amp;nbsp;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; O acesso aos I/Os dos ports é feito através do registro de dados de entrada e de saída.&amp;nbsp;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Nesse ponto, finalizamos a parte de ensinar a acessar, configurar e usar os recursos de pinos e periféricos dos microcontroladores da Zilog para quem tivesse alguma dúvida. Nos posts seguintes, estarei procurando implementar algumas aplicações de exemplos para que o que foi ensinado possa ser visto no mundo real e ajudar aos demais a entenderem o fascinante mundo dos microcontroladores, em especial, os da zilog, a projetarem seus circuitos e projetos. Espero que tenham gostado e até a terceira parte dessa série.</content><link rel='replies' type='application/atom+xml' href='http://cleapseletroeletronica.blogspot.com/feeds/7921457204901947398/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://cleapseletroeletronica.blogspot.com/2013/04/zilog-usando-os-pinos-de-ios-dos.html#comment-form' title='1 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3000668579123608637/posts/default/7921457204901947398'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3000668579123608637/posts/default/7921457204901947398'/><link rel='alternate' type='text/html' href='http://cleapseletroeletronica.blogspot.com/2013/04/zilog-usando-os-pinos-de-ios-dos.html' title='Zilog - Usando os pinos de I/Os dos Microcontroladores Z8 encore XP - parte 2'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04117759606587902766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzVusWmyQA_5s7hMzapDkjn6du2eiZYYKSo81dBFkcTQkyFDM3-SRnyFnJl05q6Ygl9Zh4IGy6ebdTLycwYxjcpfvrrWFCDki84_N9IOMtlbv5vG5ZgOvEmViZ7uPJTIIFohS58V9ayUw/s72-c/Zilog_EncoreXP3.jpg" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3000668579123608637.post-7217170531118497487</id><published>2013-03-09T08:09:00.000-08:00</published><updated>2016-02-07T17:23:29.451-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Tutoriais"/><title type='text'>Zilog - Usando os pinos de I/Os dos Microcontroladores Z8 encore XP</title><content type='html'>&lt;h2&gt;
&lt;span style=&quot;color: #274e13; font-size: large;&quot;&gt;&lt;b&gt;Zilog - (PS0199) - Aprenda a usar as IOs desse microcontrolador.&lt;/b&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;span style=&quot;color: #274e13; font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
 bb_bid = &quot;1674044&quot;;
 bb_lang = &quot;pt-BR&quot;;
 bb_keywords = &quot;GLCD,microcontrolador, TI, RENESAS, zilog,microchip,PLC,elevador, CD, programação,matemática,IC,LCD.&quot;;
 bb_name = &quot;custom&quot;;
 bb_limit = &quot;8&quot;;
 bb_format = &quot;bbb&quot;;
&lt;/script&gt;
&lt;script src=&quot;http://static.boo-box.com/javascripts/embed.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
&lt;br /&gt;
&lt;div style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzVusWmyQA_5s7hMzapDkjn6du2eiZYYKSo81dBFkcTQkyFDM3-SRnyFnJl05q6Ygl9Zh4IGy6ebdTLycwYxjcpfvrrWFCDki84_N9IOMtlbv5vG5ZgOvEmViZ7uPJTIIFohS58V9ayUw/s1600/Zilog_EncoreXP3.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;200&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzVusWmyQA_5s7hMzapDkjn6du2eiZYYKSo81dBFkcTQkyFDM3-SRnyFnJl05q6Ygl9Zh4IGy6ebdTLycwYxjcpfvrrWFCDki84_N9IOMtlbv5vG5ZgOvEmViZ7uPJTIIFohS58V9ayUw/s200/Zilog_EncoreXP3.jpg&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgK39WSWTCbSfjAj9wZqfgLXgpzQf_zz-BLA5ZWIOEmWfSn5xU6GfeHfxCFs0P4AqxjVkg4N9G6CAyI3yrIMR-Oy3HmF2d_ctFlF0RLrAIpttvws4qY5exchBOqATk_nLmcAqe4e6Dl7pc/s1600/Zilog_EncoreXP.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; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgK39WSWTCbSfjAj9wZqfgLXgpzQf_zz-BLA5ZWIOEmWfSn5xU6GfeHfxCFs0P4AqxjVkg4N9G6CAyI3yrIMR-Oy3HmF2d_ctFlF0RLrAIpttvws4qY5exchBOqATk_nLmcAqe4e6Dl7pc/s1600/Zilog_EncoreXP.jpg&quot; /&gt;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiB1n6WUruA-mDLK76t97RIhNKTtzWDCM703PkBX3RFr1-XcqGfjx1UzA_g-Hcncfc4XXTkRjJuXg8jfVRUSNCVB2D4qDMGot8-VkfKLSldHGQq0pTIgHwyqLZghbOM8IbYDvbfvpkKrn4/s1600/Zilog_EncoreXP2.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiB1n6WUruA-mDLK76t97RIhNKTtzWDCM703PkBX3RFr1-XcqGfjx1UzA_g-Hcncfc4XXTkRjJuXg8jfVRUSNCVB2D4qDMGot8-VkfKLSldHGQq0pTIgHwyqLZghbOM8IbYDvbfvpkKrn4/s1600/Zilog_EncoreXP2.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;b&gt;Finalidade :&lt;/b&gt;&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;div style=&quot;text-align: justify;&quot;&gt;
&lt;b style=&quot;font-size: x-large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/b&gt;Este trabalho visa a mostrar como inicializar e a usar os pinos de entrada e saída dos microcontroladores da Zilog séries Z8 encore XP e na utilização de periféricos do mesmo. Este trabalho possui muita informação importante a respeito de como ler e escrever nos registros e nas entradas e saídas do microcontrolador em diferentes modos de operação.&lt;/div&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;Resumo de uso geral dos pinos de I/Os.&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b style=&quot;font-size: x-large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/b&gt;Os microcontroladores da Zilog com core Z8 encore XP suportam sete portas de 8 bits (portas de A~G) e uma de 4 bits (porta H) para operações de entrada e saída. Cada port possui ou está associada a um registro específico de controle e dados. O registro de controle é usado para determinar a direção dos dados, se dreno aberto, saída de sinal ou entrada e funções especiais dos periféricos. Na figura abaixo é mostrado um diagrama simplificado dos pinos dos ports do microcontrolador.&lt;br /&gt;
&lt;div style=&quot;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;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjfEKbRAlJ2io7bGmguxMVgwDk9sdm6Y90kmpeRXBPjKv1UGJAeDUb2nAvkut4FFqqSEAtOnOaKhhkFFrt0iiG0Qk9_2ubGQE-iZpxzoyXlLHK2iHzj8FBs9amnMCGrv_pHs6njLHvbc20/s1600/z8IOport3.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;380&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjfEKbRAlJ2io7bGmguxMVgwDk9sdm6Y90kmpeRXBPjKv1UGJAeDUb2nAvkut4FFqqSEAtOnOaKhhkFFrt0iiG0Qk9_2ubGQE-iZpxzoyXlLHK2iHzj8FBs9amnMCGrv_pHs6njLHvbc20/s640/z8IOport3.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;Quando qualquer pino do microcontrolador for configurado ou definido como entrada, o microcontrolador lê os dados desses pinos para dentro dos registros específicos, guarda-os e &amp;nbsp;os disponibiliza para futuros processamentos. Para facilitar, vamos chamar os pinos do microcontrolador de GPIO que ajuda a entender melhor o que são. Neste contexto, quando um pino de GPIO pode ser usado como fonte de interrupção externa se definido como operação de pino de entrada., assim como definido como pino de saída, dados de dentro do microcontrolador são enviados nestes pinos para circuitos ou dispositivos externos.Se definidos como pinos alternativos para periféricos internos sua finalidade vai depender de qual função o periférico tem para ser setado ou configurado.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Nem todos os microcontroladores da linha Z8 encore possuem acesso aos 8 ports da linha, como estamos focando em microcontroladores de 80 pinos, isso não é problema, mas para micros de 20 pinos ou menos, sim. Para uma lista mais completa de pinos acessíveis de acordo com o modelo do microcontrolador acesse o datasheet &quot;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;Z8 Encore! XP 64K Series Flash Microcontrollers Product Specification (PS0199)&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&quot; em&amp;nbsp;&lt;a href=&quot;http://www.zilog.com/docs/z8encore/ps0199.pdf&quot;&gt;http://www.zilog.com/docs/z8encore/ps0199.pdf&lt;/a&gt;&amp;nbsp;disponível do site da zilog em &lt;a href=&quot;http://www.zilog.com/&quot;&gt;www.zilog.com&lt;/a&gt;.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; A maneira mais comum de configurar o uso dos pinos do microcontrolador para entrada, saída ou alternativo, que é o uso dos periféricos é usando as funções dos registros internos e sub registros associados alista a seguir mostra melhor como isso funciona.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;Endereço do port (PxADDR)&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;Controle do port (PxCTL)&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; O estado dos pinos após um reset ou início de alimentação do micro é o seguinte :&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;Os pinos do port estão em modo normal - periféricos desativados.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;Todos os pinos estão configurados como entrada.&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;O conteúdo do registro de dados de entrada (PxIN) &amp;nbsp;é desconhecido.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;O conteúdo do registro de dados de saída (PxOUT) é 0X00.&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;Os pinos dos ports estão com o driver em tri-state.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Os valores dos registros dos ports e sub registros no modo reset estão nas tabelas a seguir.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiPxqJmchTvrfr9pH1bwHPOk-nwcGujHm84iXfSmvl5cEueUUH-aBVWFWqXMF-wXcg-3uVFXXxhRjSjfuAjcC-HXGEdcci3seBZXUG10NegtXKlYXDbQefVLepI-EvUR3IWbzvXxeSHCt8/s1600/tabelaz81.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;180&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiPxqJmchTvrfr9pH1bwHPOk-nwcGujHm84iXfSmvl5cEueUUH-aBVWFWqXMF-wXcg-3uVFXXxhRjSjfuAjcC-HXGEdcci3seBZXUG10NegtXKlYXDbQefVLepI-EvUR3IWbzvXxeSHCt8/s640/tabelaz81.png&quot; width=&quot;680&quot; /&gt;&lt;/a&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;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj2jS00xyvlOCXaR06oL2gU5W8GC4GJHe-6sN_Zc9NJR4wqezksrDiZbdItUNrJMFWhRvW8tOKdTmzXYmfv_jQXJnUj5fopztjksOb530dYrqdI9bkggiUP4umzvmgQtdrz4OtfYrspmfU/s1600/tabelaz82.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;180&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj2jS00xyvlOCXaR06oL2gU5W8GC4GJHe-6sN_Zc9NJR4wqezksrDiZbdItUNrJMFWhRvW8tOKdTmzXYmfv_jQXJnUj5fopztjksOb530dYrqdI9bkggiUP4umzvmgQtdrz4OtfYrspmfU/s640/tabelaz82.png&quot; width=&quot;680&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Todos os pinos GPIOs devem ser inicializados a um valor de estado referente ao que se deseja antes de serem usados. O trabalho aqui descrito se foca em uma parte desse processo de descrição dos registros da linha Z8 Encore! XP que serve para guiar os usuários a definirem bem os pinos do microcontrolador de forma organizada e desejada.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Z8 Encore! XP descrição breve dos registros.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; São quatro registros do microcontrolador Z8 Encore! XP que permitem o acesso aos pinos do mesmo no que se refere a controle do GPIO, dadoa de entrada e dados de saída. Os endereços dos ports de A-H e registro de controle juntos, são usados para se ter acesso aos sub registros para configuração e controle dos ports.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Esses quatro registros do microcontrolador Z8 Encore! XP são brevemente explicados a seguir:&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Registro de endereço de PORT (PxADDR) seleciona o sub registro adequado a funcionalidade do port e do GPIO. É usado em conjunto com o registro de controle de portas e ter acesso a todos os controles de pinos do GPIO.&lt;/li&gt;
&lt;li&gt;Registro de controle de port (PxCTL) &amp;nbsp;define o controle do port GPIO permitindo acesso aos sub registros.&lt;/li&gt;
&lt;li&gt;Registro de entrada de dados (PxIN) retorna um valor no pino do port associado para ser processado.&lt;/li&gt;
&lt;li&gt;Registro de dados de saída (PxOUT) escreve os dados de dentro do microcontrolador nos pinos correspondentes a fim de controlar cargas ou circuitos.&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: red; font-size: large;&quot;&gt;NOTA: &lt;/span&gt;Os quatro registros mencionados acima estão definido no arquivo de cabeçalho ez8.h. &amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div&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; Para usar as definições de código inclua o arquivo no seu programa como &quot;#include&amp;nbsp;&lt;/div&gt;
&lt;div&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;&#39;&amp;lt;ez8 .h&amp;gt;&#39;, no seu código C para microcontroladores zilog.&amp;nbsp;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Uma breve descrição do sub registro de port usado com o registro de endereço de port é dado a seguir.&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Sub registro de direção de dados (DATA_DIR) contem defino o valor de acesso a dados como sendo 0x01 e é usado para definir pinos do port tanto como entrada como saída. Definindo valores de 1 para setar o pino como entrada e 0 como saída.&lt;/li&gt;
&lt;li&gt;Sub registro de função alternativa (ALT_FUN) é usado para ativar as funções internas dos periféricos do microcontrolador e é definido como valor de dado de 0x02. Definindo valores de 1 para acionar as funções alternativas dos periféricos.&lt;/li&gt;
&lt;li&gt;Sub registro de controle de saída (OUT_CTL) define o pino de saída como push-pull se valor for 0 e dreno aberto, se valor for 1. Este sub registro contem valores de dado de 0x03 e afeta on pinos diretamente.&lt;/li&gt;
&lt;li&gt;Sub registro de habilitar alta corrente de saída (HDR_EN) é usado para habilitar e desabilitar operações em pinos em operação de alto consumo de corrente (como em LEDs). Este sub registro contem valor de dado de 0x04 e afeta diretamente os pinos do microcontrolador.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Sub registro de habilitar fonte de recuperação em modo STOP (SMRS_EN) configura o pino como fonte de modo recuperação de dados e é definido como valor de dado de 0x05.&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Os valores dos sub registros são definidos como se segue em todos os exemplos citados neste trabalho.:&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;font-family: &amp;quot;times&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;#define DATA_DIR &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0x01 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // direção dos dados nos pinos.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;times&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;#define ALT_FUN &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0x02 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // função alternativa.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;times&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;#define OUT_CTL &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0x03 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Controle de saída de sinal/bit/bite.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;times&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;#define HDR_EN &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0x04 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Habilita controle de corrente no pino.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;times&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;#define SMRS_EN &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0x05 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// Habilita/desabilita fonte de recuperação em modo STOP.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;times&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;times&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: red; font-size: large;&quot;&gt;&lt;b&gt;NOTA:&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;times&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Para salvaguardar os valores nos sub registros de serem sobre escritos acidentalmente, defina valor de 0x00 no registro PxADDR antes de modificar os outros sub registros para uso particular conforme se deseja.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;times&amp;quot; , &amp;quot;times new roman&amp;quot; , 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: &amp;quot;times&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; text-align: justify;&quot;&gt;Para uma lista mais completa de sub registros acessíveis de acordo com o modelo do microcontrolador acesse o datasheet &quot;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; text-align: justify;&quot;&gt;Z8 Encore! XP 64K Series Flash Microcontrollers Product Specification (PS0199)&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; text-align: justify;&quot;&gt;&quot; em&amp;nbsp;&lt;a href=&quot;http://www.zilog.com/docs/z8encore/ps0199.pdf&quot;&gt;http://www.zilog.com/docs/z8encore/ps0199.pdf&lt;/a&gt;&amp;nbsp;disponível do site da zilog em&amp;nbsp;&lt;a href=&quot;http://www.zilog.com/&quot;&gt;www.zilog.com&lt;/a&gt;.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , 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: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;b&gt;Definindo os pinos GPIOs como entrada.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;b style=&quot;font-size: x-large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/b&gt;Para configurar ou definir os pinos do port GPIO como entrada, use o registro de endereço do port apropriado juntamente com o registro de controle de port e o sub registro de direção de dados. Para evitar alguma interferência em outras funções do port, o sub registro de função alternativa é colocado um valor padrão de 0x00. Para acessar dados do pino do port, use o registro de dados de entrada do port em questão.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Por exemplo, assuma que você queira usar o pino 6 do port F (PF6) como pino de entrada, o pedaço de código a seguir ilustra bem como você pode fazer para usar o pino 6 do port F como entrada.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , 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: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;/**********************************************************************************************************/&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&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; exemplo de inicialização de pino 6 do port F usado como entrada &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;/**********************************************************************************************************/&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;PFADDR = 0x02; &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; // Selecionamos port F e sub registro função &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// &amp;nbsp;alternativa.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;PFCTL &amp;amp;= 0x00; &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;// O registro de controle do port F é colocado&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&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; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;//valor padrão pois este não possui função alternativa&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;PFADDR = 0x01; &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;// Registro de endereço do port F habilita sub &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//registro de direção de dados.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;PFCTL |= 0x40; &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;// registro de controle do port F seleciona bit 6 &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //como entrada.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //Não é necessário selecionar o sub registro de &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//saída desde que a configuração desejada seja &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//de entrada.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;/**********************************************************************************************************/&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&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; lendo dados do pino 6 port F &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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;/**********************************************************************************************************/&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , 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: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;while(1)&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Data = PFIN; &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; // guarda dados do port F para um registro &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&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; &amp;nbsp; &amp;nbsp; &amp;nbsp;//temporário ( dados são colhidos do registro de &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//dados de entrada).&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (( Data &amp;amp; 0x40) == 0x00) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// testa se o bit 6 é zero.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&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;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&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; user_routine(); &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;// coloque seu código aqui.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&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;}&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Todos os pinos do port GPIOs dos microcontroladores Z8 Encore! XP podem ser configurados para receberem interrupções externas com sinais de borda de subida ou borda de descida nas entradas de cada pino. As operações de requisição de inrterrupção só podem ser realizadas com os pinos configurados ou definidos como entrada e com inicialização apropriada para esta função. Para mais informações de como inicializar as interrupções externas, referencie o documento &quot;&lt;a href=&quot;http://www.zilog.com/docs/z8encore/ps0199.pdf&quot;&gt;Z8 Encore! XP 64K Series Flash Microcontrollers Product Specification (PS0199&lt;/a&gt;)&quot; disponível em &lt;a href=&quot;http://www.zilog.com/&quot;&gt;www.zilog.com&lt;/a&gt;&amp;nbsp;.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , 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: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;b&gt;Definindo os port GPIOs como saída.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Para definir os pinos do port GPIO como saída, o registro do endereço do port e o registro do de controle serão usados com seus respectivos sub registros ( direção dos dados e controle de saída). Exteriorizar os dados de saída para os pinos dos ports, o registro de dados de saída dos ports é também usado.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Por exemplo, assuma que você queira usar os ports G e E como saída ( onde os dados são direcionados através dos pinos configurados como saída), dessa forma se escolheu, aleatoriamente, que o port G é ativo em nível alto ou&amp;nbsp;+VCC e o port E, ativo em nível lógico baixo.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; O seguinte trecho de código ilustra melhor como podemos definir o port G e E como pinos de saída e&amp;nbsp;direcionar&amp;nbsp;os dados através desses pinos.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , 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: &amp;quot;times&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;/********************************************************************************/&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;// &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Inicialização dos ports G e E como saída &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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;/********************************************************************************/&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times&amp;quot; , &amp;quot;times new roman&amp;quot; , 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: &amp;quot;times&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;PGADDR = 0x02 ; &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;// Registro do endereço do port G seleciona sub &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // registro de função alternativa.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;PGCTL &amp;amp;= 0x00 ; &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; // Controle de port G define valor padrão por que &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // port G não tem função alternativa..&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;PGADDR = 0x01 ; &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;// Registro de endereço do port G acessa sub registro&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // de direção de dados.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;PGCTL &amp;amp;= 0x00 ; &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; // Registro do port G define todos os pinos desse&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//port como sendo saída.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;PGADDR = 0x03 ; &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; // Registro de endereço do port G seleciona o&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//controle de saída.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;PGCTL &amp;amp;= 0x00 ; &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;// Registro de controle do port G é definido como&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&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;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;times&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&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; //push-pull, ou seja, com os resistores ligados ao&amp;nbsp;+VCC.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;PEADDR =0X02 ; &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;// Registro de endereço do port E seleciona o sub &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//registro de função alternativa.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;PECTL &amp;amp;= 0X00 ; &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; // Registro de controle do port E desabilita as&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//funções alternativas de periféricos.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;PEADDR = 0X01 ; &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; // Registro de endereço do port E seleciona o sub &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //registro de direção de dados.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;PECTL &amp;amp;= 0X00 ; &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; // Registro de controle do port E define todos os &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //pinos como saída.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;PEADDR = 0X03 ; &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; // Registro de endereço do port E acessa sub &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//registro de controle de saída.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;PECTL &amp;amp;= 0X00 ; &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; // Registro de controle do port E define o controle&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//de saída em push-pull.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;/********************************************************************************/&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;// &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;código que permite o pino ou pinos em nível alto &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;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;/********************************************************************************/&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times&amp;quot; , &amp;quot;times new roman&amp;quot; , 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: &amp;quot;times&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;void Drive_High_to_Port_G(void)&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&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;PGOUT = 0X07 ; &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; // Define os bits de 0~6 em nível alto.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&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;PEOUT &amp;nbsp;&amp;amp;= 0X00; &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;Define todos os bits do port E em nível baixo.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times&amp;quot; , &amp;quot;times new roman&amp;quot; , 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: &amp;quot;times&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;/********************************************************************************/&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;// &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;código que permite colocar os bits de um port ou pinos em nível baixo &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;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;/********************************************************************************/&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;void Drive_Low_to_Port_G(void)&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;&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;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PGOUT = 0x00 ; &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;// define todos os bits em lógica nível baixo.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PEOUT = 0x00 ; &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; // define todos os bits em nível lógico baixo.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;&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;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times&amp;quot; , &amp;quot;times new roman&amp;quot; , 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: &amp;quot;times&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Concluindo, estes são os passos para se conseguir, por exemplo, acender um led com os microcontroladores da Zilog, uma nova abordagem e tradução parcial do documento da empresa que aqui foi idealizado.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; No próximo post falaremos de como acessar alguns periféricos do microcontrolador e em um terceiro post &amp;nbsp;do assunto, tentaremos fazer alguns circuitos e usos do mesmo no mundo real.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times&amp;quot; , &amp;quot;times new roman&amp;quot; , 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: &amp;quot;times&amp;quot; , &amp;quot;times new roman&amp;quot; , 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: &amp;quot;times&amp;quot; , &amp;quot;times new roman&amp;quot; , 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: &amp;quot;times&amp;quot; , &amp;quot;times new roman&amp;quot; , 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: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , 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: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , 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: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , 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: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , 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: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://cleapseletroeletronica.blogspot.com/feeds/7217170531118497487/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://cleapseletroeletronica.blogspot.com/2013/03/zilog-usando-os-pinos-de-ios-dos.html#comment-form' title='1 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3000668579123608637/posts/default/7217170531118497487'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3000668579123608637/posts/default/7217170531118497487'/><link rel='alternate' type='text/html' href='http://cleapseletroeletronica.blogspot.com/2013/03/zilog-usando-os-pinos-de-ios-dos.html' title='Zilog - Usando os pinos de I/Os dos Microcontroladores Z8 encore XP'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04117759606587902766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzVusWmyQA_5s7hMzapDkjn6du2eiZYYKSo81dBFkcTQkyFDM3-SRnyFnJl05q6Ygl9Zh4IGy6ebdTLycwYxjcpfvrrWFCDki84_N9IOMtlbv5vG5ZgOvEmViZ7uPJTIIFohS58V9ayUw/s72-c/Zilog_EncoreXP3.jpg" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3000668579123608637.post-7376091647313792935</id><published>2013-02-04T15:11:00.000-08:00</published><updated>2016-02-03T05:16:47.724-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Início"/><title type='text'>Lixo de informática - onde descartar alguns itens ? </title><content type='html'>&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;Lixo de informática - onde descartar alguns itens ?
&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;script type=&quot;text/javascript&quot;&gt;
 bb_bid = &quot;1674044&quot;;
 bb_lang = &quot;pt-BR&quot;;
 bb_keywords = &quot;GLCD,microcontrolador, TI, RENESAS, zilog,microchip,PLC,elevador, CD, programação,matemática,IC,LCD.&quot;;
 bb_name = &quot;custom&quot;;
 bb_limit = &quot;8&quot;;
 bb_format = &quot;bbb&quot;;
&lt;/script&gt;
&lt;script src=&quot;http://static.boo-box.com/javascripts/embed.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
&lt;/div&gt;
&lt;br /&gt;
&amp;nbsp;&lt;span style=&quot;color: orange;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &lt;span style=&quot;color: #38761d;&quot;&gt;( contato : André Pereira da Silva - andrepereira@ig.com.br - 21 91267264 )&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Com certeza, uma das dores de cabeça de quem gosta de informática é quando se tem aquele equipamento ou produto de informática que queima, ocorre algum defeito ou se faz uma atualização para algo mais moderno e esse material acaba ocupando espaço na casa.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Pensando nisso eu criei um serviço de coleta seletiva desse material em certa quantidade para quem vai jogar fora HDs, modens, placas mães, memórias e uma infinidade de aparelhos de informática e de música e vídeo que muita gente joga no lixo e não se dá conta dos perigos disso no meio ambiente.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgLBDbH2UsyzLeRPvVzUuvO4eZrzlsaUKnHp3-rF3NcQD8d7y7o3ybCKhCMKfsTqHidvJeXt5OpmvbYk7yur2ZU9Jmo5YglbgqJNrrIJ1p05KNKsSXk_zYSw8k5Iv5KKIx7B0_uO9GVQts/s1600/HD1.jpeg&quot; /&gt;

&lt;img border=&quot;0&quot; height=&quot;215&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh5CYuJxAnHqs3YnaRSlRY_KOy5xi62vCwKDTVWcnSwfMF61oRH1SC0xqMrkcOSdS4YUUOMyyfXOnVWIsYgiSvyjl7IFeCxNu90zGxg4HBME6rUCj7DsnEoglgOJBWOEYdHuhGRx_0Gf6I/s320/memoria.jpeg&quot; width=&quot;235&quot; /&gt;
&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjKMm_k5Zco_a9d2MWM3V-UmnrOGd7cx3TzaT6uckRG7pvcLi0hrv9S262dicfinSWal7eTiX-D6hUduVkFv5g3NglG_su4b1uOIbT4rtQkea3D3hKM9kcie4Xj-ZEuD6l9toOjZEDOXgw/s1600/placamae.jpeg&quot; /&gt;&lt;/div&gt;
&amp;nbsp;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Esses materiais seriam descartados e jogados no lixo, nossa missão é dar nova vida a muito disso tudo. Por exemplo, os HDs ainda bons são instalados sistema operacional Linux para as mais diversas utilidades, como em máquinas computadorizadas que poderiam trazer renda e arte a pessoas necessitadas e assim dar novos horizontes. As placas mães ainda em uso associadas a memórias ainda em uso, mas todo esse material que seria descartado, se transformariam em novas máquinas ou produtos, livrando a lixeira de receber esses metais pesados e tóxicos.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Mas, e as peças que não são mais reutilizadas, o que você vai fazer ? Eu as destino a empresas de reciclagem, que leva esse material para São Paulo e depois para países como China e Alemanha para a purificação e retirada de material reciclável. Então, para o lixo, nada disso é destinado.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Você pode separar esse material, juntar com os vizinhos e amigos e nos comunicar para que se possa fazer a retirada aqui no Rio de Janeiro dentro de certos limites, para quem mora longe, o correio é um meio, mas não efetuamos o pagamento de frete, isso corre por conta do doador, infelizmente ainda estamos no início do processo e fica inviável pagar frete, por exemplo, de Manaus para o Rio de Janeiro, motivo este de irmos buscar no local dentro do município do RJ e redondezas. Esperamos a compreensão de quem quer contribuir mas tem esse detalhe como barreira. Com certeza, outras pessoas ou empresas na sua região fazem esse trabalho. Só colabore para que, ao jogar no lixo esse material, ele vai acabar em um lixão e em contato com a chuva e intempéries diversas contaminando o solo.&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;color: orange;&quot;&gt;E os outros produtos de informática e eletrônicos ? &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Os celulares, são utilizados os visores em projetos de eletrônica, onde se é retirado o visor e as memórias, além de unidades de rádio e bluetooth embutidos para pequenos projetos. O Plástico é a placa restante é enviada a empresas de reciclagem assim como os materiais acima descritos.&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Os MP3 e MP4 dentre outros da mesma categoria possuem memórias e dispositivos de rádio e visores ( Telas de LCD) que a gente reaproveita no uso de projetos de eletrônica e descartamos o restante em empresas de reciclagem.&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhoU48coiX9p_6kkRhG_PhmKc3F1yet1cRoiNAF11KqTz-XR-AXo6wIvmUS-n11Ut-XALNNvwYHUUyAu8Q02UIxN3kN1b5rKHw05Zp-DvOjF5iN_rDGBaG-acSD0z-wnpyGz18VAN1LFac/s1600/mp3_1.jpeg&quot; /&gt;
&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYwQIlEZNyshqukQqiw316C_BUwKOKDrfm2sgCXt5PD4qHOEI7hGuspY9yAz3QusIzpcltK3_-Usgp-eM8wFP3TJUA_IaQHbzqUxYK-NfgECVTPcwsqB9VhV9jhYM7J8qPERrf9aid9Zk/s1600/cameras_1.jpeg&quot; /&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEipbMn_tWrvjIJ56PG6t6mNmrn5zowqkPlieQEsZHRmqy1oaWX4qKYDF0NtsZB0QE8dWcJ63BBmph8_SEcC7_t6onQhDeA-aCSnYiie9LOZIQ5FbraHer0XIM1yWZMIvVu6z_dvlNBson0/s1600/celulares.jpeg&quot; /&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhAcYND0itzCX2dJjEZqFevUwPxUxEAW-yMlCJOuRc_cWdGdO6mXul70eoXTTFWTZk4ZDqLFnkhNsOsSSrDg24YRv0Ea7rSNcBHXazf-5I8C-eCDQpY1PtlbIZVF7oV6pHggEN8SlGsFBE/s1600/mp4_1.jpeg&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Bom, neste contexto, espero que entendam a finalidade dessa postagem, pois conseguimos dar vida nova a muitos equipamento de informática que se tornaram controladores de máquinas CNC para corte de chapas de metais, madeira e jateadeiras de vidros. Tudo isso graças as doações de pessoas que não jogaram seus produtos de informática no lixo, ao invés, nos deram.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Para mais detalhes, quem tiver Laptops com defeito ou querendo jogar fora, nós aproveitamos as Telas de LCD e os processadores mais as memórias, o restante vai para empresas de reciclagem em SP que depois envia para a China e Alemanha para reciclagem dos metais peasados.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Para ficar claro o que esses produtos podem fazer depois do uso que se destinou, dou como exemplo a construção de máquinas CNC para cortar ferro, madeira e outros materiais, em formatos desenhados pelo criador e permitindo uma melhor opção de geração de renda em locais necessitados. Além de bijuterias feitas desses materiais.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Abaixo alguns exemplos de reuso e de&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: orange;&quot;&gt; &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;onde são usados seus lixos eletrônicos, que para a gente é material de trabalho.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;Máquina opensource de impressão 3D com motores de passo de impressoras usadas.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;Abaixo outra máquina de corte a plasma.&lt;/span&gt;&lt;/span&gt;&amp;nbsp; &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjeaDH4tRGSvhyOWyXiUpRrpiAypBWoIvAWwqUaxmMFpOfYs5BjPKtmlJCh7VkbrkNrYOf4KZH88szW0rJSyfhLHMNHN2ZZWspw_81XG5Wivt8X2N7mePM515HSkL5Sfar8LnzXCLsUmFo/s1600/3Dmaquina2.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; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjeaDH4tRGSvhyOWyXiUpRrpiAypBWoIvAWwqUaxmMFpOfYs5BjPKtmlJCh7VkbrkNrYOf4KZH88szW0rJSyfhLHMNHN2ZZWspw_81XG5Wivt8X2N7mePM515HSkL5Sfar8LnzXCLsUmFo/s1600/3Dmaquina2.jpg&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgIjvI0sEr0asN1qumh6R71NuJlPzpW_yQu2TDbhsQ2SjiedjmAlr4pkhHneqxQp4Xwl4TZoCKOwDOp0nKQnSUswLqacTffWNnUegypI3S5CK-UGbbihQUeqLgPMjl8yvQXAS-1IKcwjwU/s1600/plasma-cutting-services-250x250.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgIjvI0sEr0asN1qumh6R71NuJlPzpW_yQu2TDbhsQ2SjiedjmAlr4pkhHneqxQp4Xwl4TZoCKOwDOp0nKQnSUswLqacTffWNnUegypI3S5CK-UGbbihQUeqLgPMjl8yvQXAS-1IKcwjwU/s1600/plasma-cutting-services-250x250.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Exemplo de portão personalizado feito com essas máquinas controladas com placas mães e outros produtos de informática.&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgfGfONFrgT6Dr9LwwC0k3g1eu1rbbwUDTTKSUOe3HpxE0gDMo1r25KUW5EEWxzlYXHHb7h4Rke88F9aAet-YDc1v4kZUGJpVi-1jn4uG5O3e2dGUFq3dhYIoVHByipur9ERkj5SnlY6h0/s1600/portaodecorativo.jpeg&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; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgfGfONFrgT6Dr9LwwC0k3g1eu1rbbwUDTTKSUOe3HpxE0gDMo1r25KUW5EEWxzlYXHHb7h4Rke88F9aAet-YDc1v4kZUGJpVi-1jn4uG5O3e2dGUFq3dhYIoVHByipur9ERkj5SnlY6h0/s1600/portaodecorativo.jpeg&quot; /&gt;&lt;/a&gt;&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Alguns exemplos de uso e reuso de LCDs de celulares para estudos e desenvolvimentos de projetos.&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&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;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEij3_YOzbWjf3EX1_x2cqNZUE_1FUae_mqKdSbnER16nG59DYQWULOJrt-MSq456blnKOVh8KHd4SjmPcqUWtVEBWQI6GarqZSupRBe4PXicy8z5JvtIYpXQfzhAo4VyXhZBVxxMeNIlv4/s1600/LCD_arduino.jpeg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEij3_YOzbWjf3EX1_x2cqNZUE_1FUae_mqKdSbnER16nG59DYQWULOJrt-MSq456blnKOVh8KHd4SjmPcqUWtVEBWQI6GarqZSupRBe4PXicy8z5JvtIYpXQfzhAo4VyXhZBVxxMeNIlv4/s1600/LCD_arduino.jpeg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://cleapseletroeletronica.blogspot.com/feeds/7376091647313792935/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://cleapseletroeletronica.blogspot.com/2013/02/lixo-de-informatica-onde-descartar.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3000668579123608637/posts/default/7376091647313792935'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3000668579123608637/posts/default/7376091647313792935'/><link rel='alternate' type='text/html' href='http://cleapseletroeletronica.blogspot.com/2013/02/lixo-de-informatica-onde-descartar.html' title='Lixo de informática - onde descartar alguns itens ? '/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04117759606587902766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgLBDbH2UsyzLeRPvVzUuvO4eZrzlsaUKnHp3-rF3NcQD8d7y7o3ybCKhCMKfsTqHidvJeXt5OpmvbYk7yur2ZU9Jmo5YglbgqJNrrIJ1p05KNKsSXk_zYSw8k5Iv5KKIx7B0_uO9GVQts/s72-c/HD1.jpeg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3000668579123608637.post-6440638334547334190</id><published>2012-11-17T12:36:00.001-08:00</published><updated>2016-02-07T11:47:55.589-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Tutoriais"/><title type='text'>Pequeno tutorial KICAD-PCB parte 2 - O esquemário.</title><content type='html'>&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;h2&gt;
&lt;span style=&quot;color: blue; font-size: x-large;&quot;&gt;Pequeno tutorial KICAD-PCB parte 2&lt;/span&gt;&lt;/h2&gt;
&lt;/div&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
 bb_bid = &quot;1674044&quot;;
 bb_lang = &quot;pt-BR&quot;;
 bb_keywords = &quot;GLCD,microcontrolador, TI, RENESAS, zilog,microchip,PLC,elevador, CD, programação,matemática,IC,LCD.&quot;;
 bb_name = &quot;custom&quot;;
 bb_limit = &quot;8&quot;;
 bb_format = &quot;bbb&quot;;
&lt;/script&gt;
&lt;script src=&quot;http://static.boo-box.com/javascripts/embed.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Depois de ir no site oficial do Kicad, baixar o programa e instalar é hora de brincar com ele e para isso vamos começar fazendo uma breve apresentação dos componentes do menu lateral e da barra de menus.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Abrimos o programa e teremos uma tela parecida com a que vemos abaixo, lembrando que o Kicad possui várias telas iniciais de acordo com a versão instalada, mas o nome dos componentes é o mesmo, sendo necessário seguir os nomes desses componentes para acompanhar este minicurso.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Clique em criar novo projeto. Ao abrir a tela, crie um novo diretório e em NOME: dê um nome para o projeto que terá uma terminação .pro . Eu utilizo o diretório BIN da pasta Kicad para colocar esses diretórios com os projetos por comodidade, cada um tem suas preferências. &amp;nbsp;Clique em salvar&amp;nbsp;e teremos outra tela com o programa quase pronto para dar início. &lt;br /&gt;
&lt;br /&gt;
Veja também:&amp;nbsp;&lt;a href=&quot;http://cleapseletroeletronica.blogspot.com.br/2012/11/pequeno-tutorial-kicad-pcb-parte-1.html&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;Pequeno tutorial KICAD-PCB parte 1 &lt;/a&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;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgWGa19gabtoh6WrI-jjIYMANlupLMItPRBDvNzogZfmnCng_ZuNllFeOhe6UIeggCQWOId0ql6A245KW2gfu5MNdLTKErGIyMV0vtVUvzhxubetHfzJM2ZCVh22XWkqM5t9biXWQRswoE/s1600/Captura+de+tela+de+2012-11-16+13:02:17.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;356&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgWGa19gabtoh6WrI-jjIYMANlupLMItPRBDvNzogZfmnCng_ZuNllFeOhe6UIeggCQWOId0ql6A245KW2gfu5MNdLTKErGIyMV0vtVUvzhxubetHfzJM2ZCVh22XWkqM5t9biXWQRswoE/s640/Captura+de+tela+de+2012-11-16+13:02:17.png&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: left;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Na tela a seguir vemos o projeto já pronto e falta definir o esquemário e o layout da placa logo a seguir. No meu caso, o Kicad está rodando sob LINUX mas poderia estar rodando sob windows o que daria na mesma tela sem muito estresse ou complicação, aliás, criando seus projetos em kicad você pode salvar em um pendrive e usar ou modificar este em qualquer sistema operacional com muita comodidade.&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&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;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhviwZoHioNuSiZ4dd889d85O4Fasg7QzSDRG1e-qco2KsQNaBSWrevYJ63jzwwPLHDLbAO4pK9UACP_RzuhXXkTwIWNLmLDJ8j9smL7OWij0p3tDkCDVNWP-kjm_47k4VPSQQatvdVp-8/s1600/Captura+de+tela+de+2012-11-16+13:12:40.png&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;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhviwZoHioNuSiZ4dd889d85O4Fasg7QzSDRG1e-qco2KsQNaBSWrevYJ63jzwwPLHDLbAO4pK9UACP_RzuhXXkTwIWNLmLDJ8j9smL7OWij0p3tDkCDVNWP-kjm_47k4VPSQQatvdVp-8/s640/Captura+de+tela+de+2012-11-16+13:12:40.png&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: left;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Clicando em &amp;nbsp;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEioIyle7w9uSEmK8jyyyQtuMO5KjS-VF4h9HdWcedBGycOcmNk1urehzIGuTy59Rt6ZPpO3bm22wnZfJcJiFDqbp8u7i49Quh_tWmf4Hto0N7QMBxSgBuFh-6APg6EwLHDleTTb-0iNUBc/s1600/Eeschema.png&quot; /&gt;&amp;nbsp;(Eeschema) teremos a tela a seguir :&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&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;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-B69pxjXa7YxJHp7EbB_BjLhVIkLjWR7CRW19QS0zMrIXIRMLk1XXePozAdCOembsoE4Hud6roxsup6bhs0twwZzrQ3atYASU9B4PRXhP6DXPoCvKFkwP8CBn_uOqx0RKDFV5c3YUwVA/s1600/Captura+de+tela+de+2012-11-16+13:24:09.png&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;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-B69pxjXa7YxJHp7EbB_BjLhVIkLjWR7CRW19QS0zMrIXIRMLk1XXePozAdCOembsoE4Hud6roxsup6bhs0twwZzrQ3atYASU9B4PRXhP6DXPoCvKFkwP8CBn_uOqx0RKDFV5c3YUwVA/s640/Captura+de+tela+de+2012-11-16+13:24:09.png&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: left;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Como é a primeira tela de desenho, é óbvio que não temos nenhum componente e assim recebemos este aviso de que o programa não encontrou o arquivo e neste caso basta clicar em ok e pronto, estamos prestes a fazer uma demostração de uso do KICAD a nível de brincadeira só para sentir a forma profissional que este programa livre e aberto tem.&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Vamos salvar o projeto a partir daqui para não perdermos nada que já fora criado e clicamos em configuração de página&amp;nbsp;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEipTqT9MKaL5W49o916JOeVpmgwkwio9S9np-bkAVkb7uh2vrtks-pOEBousZ0eWeDptG5KV9RpL8OvqR25VMHFgEttEZOVFqxKT2JRSPOk63Io2jGB24her1ArS2JW-6KGTaqSLb8U-SU/s1600/configpage.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEipTqT9MKaL5W49o916JOeVpmgwkwio9S9np-bkAVkb7uh2vrtks-pOEBousZ0eWeDptG5KV9RpL8OvqR25VMHFgEttEZOVFqxKT2JRSPOk63Io2jGB24her1ArS2JW-6KGTaqSLb8U-SU/s1600/configpage.png&quot; /&gt;&lt;/a&gt;&amp;nbsp;e temos a figura a seguir :&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&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;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjA_hw5appa_xNbvNrhLMaaQngkSu8jg5HpUoJ3pBIgeTozUELGP20lOrlO1iQkLksVp9E0HqXLX9F4hkBsQloi8jb715QHb_W_5qz5KT8hPJ__4xgqWyWSE2EIF8IjVqZcpZaBA9TLVnw/s1600/Captura+de+tela+de+2012-11-16+17:04:30.png&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;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjA_hw5appa_xNbvNrhLMaaQngkSu8jg5HpUoJ3pBIgeTozUELGP20lOrlO1iQkLksVp9E0HqXLX9F4hkBsQloi8jb715QHb_W_5qz5KT8hPJ__4xgqWyWSE2EIF8IjVqZcpZaBA9TLVnw/s640/Captura+de+tela+de+2012-11-16+17:04:30.png&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: left;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Clicamos em ok &amp;nbsp;e temos a nossa página pronta para receber os componentes e começar a fazer um esquemário.Como o espaço é pequeno vou mostrar no vídeo como é feito o processo de criar um esqemário.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;iframe allowfullscreen=&quot;allowfullscreen&quot; frameborder=&quot;0&quot; height=&quot;415&quot; src=&quot;http://www.youtube.com/embed/nZczSYgSQvU?list=UUJs7bG0u0P6PZVBHKsoUnfA&amp;amp;hl=pt_BR&quot; width=&quot;760&quot;&gt;&lt;/iframe&gt;

&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://cleapseletroeletronica.blogspot.com/feeds/6440638334547334190/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://cleapseletroeletronica.blogspot.com/2012/11/pequeno-tutorial-kicad-pcb-parte-2-o.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3000668579123608637/posts/default/6440638334547334190'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3000668579123608637/posts/default/6440638334547334190'/><link rel='alternate' type='text/html' href='http://cleapseletroeletronica.blogspot.com/2012/11/pequeno-tutorial-kicad-pcb-parte-2-o.html' title='Pequeno tutorial KICAD-PCB parte 2 - O esquemário.'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04117759606587902766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgWGa19gabtoh6WrI-jjIYMANlupLMItPRBDvNzogZfmnCng_ZuNllFeOhe6UIeggCQWOId0ql6A245KW2gfu5MNdLTKErGIyMV0vtVUvzhxubetHfzJM2ZCVh22XWkqM5t9biXWQRswoE/s72-c/Captura+de+tela+de+2012-11-16+13:02:17.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3000668579123608637.post-5470109460354656452</id><published>2012-11-16T06:34:00.002-08:00</published><updated>2016-02-07T11:43:09.314-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Tutoriais"/><title type='text'>Pequeno tutorial KICAD-PCB parte 1 - Apresentação. </title><content type='html'>&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;h2&gt;
&lt;span style=&quot;color: blue; font-size: x-large;&quot;&gt;Pequeno tutorial KICAD-PCB parte 1&amp;nbsp;&lt;/span&gt;&lt;/h2&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
 bb_bid = &quot;1674044&quot;;
 bb_lang = &quot;pt-BR&quot;;
 bb_keywords = &quot;GLCD,microcontrolador, TI, RENESAS, zilog,microchip,PLC,elevador, CD, programação,matemática,IC,LCD.&quot;;
 bb_name = &quot;custom&quot;;
 bb_limit = &quot;8&quot;;
 bb_format = &quot;bbb&quot;;
&lt;/script&gt;
&lt;script src=&quot;http://static.boo-box.com/javascripts/embed.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
&lt;br /&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;A pedidos de amigos e demais interessados começamos aqui um mini curso de KICAD, uma ferramenta de desenho de placas de circuito impresso de código aberto e livre. Ideal para ser usado em universidades, escolas técnicas e onde este for necessário.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Observem o fluxo de trabalho que permite o desenvolvimento de qualquer arquivo no KICAD. Ele funciona do mesmo jeito que a maioria dos programas livres e grátis, com a exceção de ser mais popular e mais desenvolvido, ou seja, possui mais gente trabalhando no seu desenvolvimento.&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;h3&gt;
&lt;u&gt;&lt;span style=&quot;color: red; font-size: x-large;&quot;&gt;Fluxo de trabalho do Kicad-PCB&amp;nbsp;&lt;/span&gt;&lt;/u&gt;&lt;/h3&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0iRwge34FFts8cKAJhi66FoEUxmMbHN1WaeZw6Vhcjtd5-76_h3D6-uVXS2PPJfsi1pwjK3DFzHXSM2FmUnPvIBc9Wa723Ip-35Jc7Bv4xHPDTWPkPLrnUgbtT8ZlVvJMqULAzX44yJ0/s1600/worddav95dd529f0c95ad5ba69c320fd03ddd73.png&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;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0iRwge34FFts8cKAJhi66FoEUxmMbHN1WaeZw6Vhcjtd5-76_h3D6-uVXS2PPJfsi1pwjK3DFzHXSM2FmUnPvIBc9Wa723Ip-35Jc7Bv4xHPDTWPkPLrnUgbtT8ZlVvJMqULAzX44yJ0/s640/worddav95dd529f0c95ad5ba69c320fd03ddd73.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Apesar da similaridade com outros programas, o kicad trabalha os componentes e o footprint de maneira separada o que permite que um componente possa ter interconexão com vários footprints, como exemplo, um PIC18F2550 em encapsulamento DIP ter outro footprint em encapsulamento SMD e esses serem associados a outros componentes o que facilita na criação de PCBs.&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Kicad é uma ferramenta composta de duas ações importantes na criação de projetos eletrônicos. Uma delas é a criação de um esquemário e a outra a de criação de um layout da placa de circuito impresso e ambas as ações estão relacionadas em um único ambiente.&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; As bibliotecas de componentes e de footprints já acompanham o programa na maioria dos casos em que se necessite e você pode criar ou personalizar as suas próprias caso precise ou queira em modo desenvolvimento ou só usando a parte do programa para isso. Uma das maravilhas é poder criar a placa e poder alterar o componente sem ter de sair do projeto, isso é maravilhoso.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Uma das maravilhas do KICAD é poder criar suas próprias libs &amp;nbsp;de maneira rápida e transparente o que agrada na criação de componentes novos que não tenham vindo junto com a instalação do programa. Acesse o link e experimente :&amp;nbsp;&lt;a href=&quot;http://kicad.rohrbacher.net/quicklib.php&quot;&gt;http://kicad.rohrbacher.net/quicklib.php&lt;/a&gt;.&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Na fugura abaixo, que é meu desktop, tem um modelo de um simples projeto e na internet é possível achar outros projetos até mesmo em microvias e multilayers, mostrando o potencial do KICAD como ferramenta de criação de PCB de maneira profissional.&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&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;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQqnhtgpN8b6VheZBNwkmnQ37Mu8bzHUKPCOosyQun2AlP1kstzuv8g8wm9ZgullqjUpF9RQZdOOL-JQtKQjAjy-akK8ZWimH6iUrjYUvtbNUlTuc5p9TSa7pn0Aj67N2ug06txp0Q_58/s1600/Captura+de+tela+de+2012-11-16+11:51:10.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;356&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQqnhtgpN8b6VheZBNwkmnQ37Mu8bzHUKPCOosyQun2AlP1kstzuv8g8wm9ZgullqjUpF9RQZdOOL-JQtKQjAjy-akK8ZWimH6iUrjYUvtbNUlTuc5p9TSa7pn0Aj67N2ug06txp0Q_58/s640/Captura+de+tela+de+2012-11-16+11:51:10.png&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: left;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Na criação de componentes 3D, foi escolhido o http://www.wings3d.org como ferramenta de criação de componetes .wrl que o kicad usa para poder mostrar os componentes 3D como na figura acima. Neste caso, se não gostou do modelo básico dos resistores e quiser mudar, basta entrar com o programa wings3d e abrir o resistor, modificar acrescentando outra forma ou mais cores conforme os valores e salvando com outro nome ou outra biblioteca de componentes 3D e assim ter um visual mais completo e bonito. Vejamos uma demonstração do wings3D na figura abaixo :&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&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;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh7Wo549lx02MdTrQY7IJ2vkQgcCpD8E_VYrWp9mNEN1eBfssvBnzwF6FziV6LbZTFUdyiuPFleetaqs5n-SO9edLFt-zZ6VU7hBoSB71w7muStuIhjXxkq4nFrvtb-swyHxfiAcWjYGrk/s1600/renie_resistor.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;272&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh7Wo549lx02MdTrQY7IJ2vkQgcCpD8E_VYrWp9mNEN1eBfssvBnzwF6FziV6LbZTFUdyiuPFleetaqs5n-SO9edLFt-zZ6VU7hBoSB71w7muStuIhjXxkq4nFrvtb-swyHxfiAcWjYGrk/s400/renie_resistor.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Acima um exemplo de resistores completos em cores, um trabalho de um grande amigo de Niterói , nosso amigo Renie Marquet que também é o tradutor para o nosso português do programa e do manual, alem de imensa quantidade de componentes criados por ele. Acessem o site do nosso amigo aqui&amp;nbsp;&lt;a href=&quot;http://www.reniemarquet.cjb.net/&quot;&gt;http://www.reniemarquet.cjb.net/&lt;/a&gt;&amp;nbsp;é muito importante enviar um e-mail de agradecimento pelo tempo que ele perde fazendo o KICAD ser o que é para os brasileiros, então encham a caixa postal dele com todo tipo de agradecimentos isso ajuda no ego e no engajamento que ele já possui nesse projeto.&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Como existem comunidades grandes ao redor do projeto kicad, apresento outros componentes em 3D na figura a seguir só para mostrar a funcionalidade desse maravilhoso programa.&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&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;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjBgFTWhys8hlHrF-Z_1e-NufxIl76HYJLFZmGv2nsyAOntHzSe8Jom1dAZQeBsKb2CX5SvuysQBgTRammfRmWyx2noDy7mx3NqTpx75ASBiy0F6I52p47Ow5z4v44TrhnQHYJ1PFyPyU4/s1600/componente4skicad.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjBgFTWhys8hlHrF-Z_1e-NufxIl76HYJLFZmGv2nsyAOntHzSe8Jom1dAZQeBsKb2CX5SvuysQBgTRammfRmWyx2noDy7mx3NqTpx75ASBiy0F6I52p47Ow5z4v44TrhnQHYJ1PFyPyU4/s1600/componente4skicad.jpg&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: left;&quot;&gt;
&lt;/div&gt;
&lt;ol&gt;
&lt;li&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;font-size: large;&quot;&gt; &amp;nbsp; Sites importantes sobre kicad.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&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;a href=&quot;http://per.launay.free.fr/kicad/kicad_php/composant.php&quot;&gt;http://per.launay.free.fr/kicad/kicad_php/composant.php&lt;/a&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&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;&lt;a href=&quot;http://www.kicad-pcb.org/&quot;&gt;http://www.kicad-pcb.org&lt;/a&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&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;&lt;a href=&quot;http://www.reniemarquet.cjb.net/kicad.htm&quot;&gt;http://www.reniemarquet.cjb.net/kicad.htm&lt;/a&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&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;&lt;a href=&quot;http://library.oshec.org/&quot;&gt;http://library.oshec.org&lt;/a&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Essa foi uma breve apresentação, complementar a anterior e vamos seguindo com o mini-curso de kicad para que você possa desenvolver sua placa e se familiarizar com este maravilhoso programa de desenho de circuito impresso e até o próximo post ....&amp;nbsp;&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;color: red; font-size: x-large;&quot;&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://cleapseletroeletronica.blogspot.com/feeds/5470109460354656452/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://cleapseletroeletronica.blogspot.com/2012/11/pequeno-tutorial-kicad-pcb-parte-1.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3000668579123608637/posts/default/5470109460354656452'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3000668579123608637/posts/default/5470109460354656452'/><link rel='alternate' type='text/html' href='http://cleapseletroeletronica.blogspot.com/2012/11/pequeno-tutorial-kicad-pcb-parte-1.html' title='Pequeno tutorial KICAD-PCB parte 1 - Apresentação. '/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04117759606587902766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0iRwge34FFts8cKAJhi66FoEUxmMbHN1WaeZw6Vhcjtd5-76_h3D6-uVXS2PPJfsi1pwjK3DFzHXSM2FmUnPvIBc9Wa723Ip-35Jc7Bv4xHPDTWPkPLrnUgbtT8ZlVvJMqULAzX44yJ0/s72-c/worddav95dd529f0c95ad5ba69c320fd03ddd73.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3000668579123608637.post-7159521723429982409</id><published>2012-11-15T19:12:00.001-08:00</published><updated>2016-02-03T10:48:27.842-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Início"/><title type='text'>IDE eclipse no desenvolvimento em microcontroladores</title><content type='html'>&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: x-large;&quot;&gt;IDE Eclipse e os microcontroladores&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;color: blue; font-size: x-large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;color: blue; font-size: x-large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
 bb_bid = &quot;1674044&quot;;
 bb_lang = &quot;pt-BR&quot;;
 bb_keywords = &quot;GLCD,microcontrolador, TI, RENESAS, zilog,microchip,PLC,elevador, CD, programação,matemática,IC,LCD.&quot;;
 bb_name = &quot;custom&quot;;
 bb_limit = &quot;8&quot;;
 bb_format = &quot;bbb&quot;;
&lt;/script&gt;
&lt;script src=&quot;http://static.boo-box.com/javascripts/embed.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Neste artigo quero falar do ambiente de desenvolvimento com eclipse IDE. IDE é uma abreviação de ambiente de desenvolvimento integrado e que representa um ambiente gráfico para se escrever códigos em diversas linguagens e de domínio público e grátis.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Inicialmente as empresas voltadas a criarem softwares para dispositivos diversos, como TV, laptops, computadores pessoais e servidores, tablets e celulares, dentre outros,&amp;nbsp;possuíam&amp;nbsp;seus próprios programas ou IDEs para essa finalidade o que incorria em que os desenvolvedores devessem possuir conhecimento em diversas linguagens e ambientes para poderem ter um excelente trabalho voltado ao resultado. Imaginem um programador C, PHP e assembler ter de dominar diversos ambientes e plataformas em uma confusão de sintaxes e familiarização de um amplo mundo de softwares e todos espalhados em muitas maneiras.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Para corrigir isso, um grupo de pessoas criaram o eclipse IDE, um ambiente de desenvolvimento onde as empresas desenvolvedoras de qualquer software passível de ser integrado ao eclipse, com o intuito de se ter em um único ambiente a possibilidade de programar ou criar códigos em diversas linguagens em um único local e melhor, poder desenvolver plugins mais eficientes e distribuir para mais pessoas terem acesso.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; No decorrer dos anos, as empresas proprietárias se deram conta de que o mercado opensource e livre já estava consolidado e que elas é que deveriam se adequar a essa nova realidade e foi o que aconteceu com as empresas desenvolvedoras de IDEs para microcontroladores, permitindo aos desenvolvedores uma maior chance de conhecer os hardwares dessas empresas, como seus kits e MCUs.&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;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjgqei4MhZzYXc2Qje6dvh8yZHFIZGv8xnDOTYF8R5p_n6nLmsSeodnB_T_oC4A2FuI7_JokdociO0EWG7EIzuCgbOZrictfAbBH5Ig0-lWEoIbnKxv_xAcmE1p8Q63QxfxAYjSBVuvTOU/s1600/eclipse_IDE.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;263&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjgqei4MhZzYXc2Qje6dvh8yZHFIZGv8xnDOTYF8R5p_n6nLmsSeodnB_T_oC4A2FuI7_JokdociO0EWG7EIzuCgbOZrictfAbBH5Ig0-lWEoIbnKxv_xAcmE1p8Q63QxfxAYjSBVuvTOU/s400/eclipse_IDE.jpg&quot; width=&quot;400&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: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: blue; font-size: x-large;&quot;&gt;Plugin AVR para ECLIPSE&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;color: lime;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;color: lime;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;Para quem programa códigos específicos para a linha AVR de microcontroladores da ATMEL é possível usar o GCC do Eclipse incluindo um simples plugin chamado AVReclipse e começar a digitar os códigos, ele aceita também aqueles gravadores USBASP que podem rodar tanto em linux quanto em windows e pode sewr baixado aqui em &lt;span style=&quot;color: blue;&quot;&gt;&lt;a href=&quot;http://www.blogger.com/goog_372626106&quot;&gt;http://avr-eclipse.sourceforge.net&lt;/a&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: &amp;quot;arial&amp;quot; , sans-serif; line-height: 15px;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp;e é possível escrever os códigos em C/C++ ou assembler o que torna este plugin ideal para programadores que possuem uma ou as duas habilidades.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &amp;quot;arial&amp;quot; , sans-serif; line-height: 15px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Posso até descrever como instalar o eclipse em outra ocasião, basta os leitores se manifestarem sobre os posts e assuntos. A contendo, deixo esta parte do post para aqueles que não conheciam esta alternativa e agora podem se deliciar com mais este método de programação.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: x-small; line-height: 15px;&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;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj164bxVCCpKUI7iLm_ygdCIq1uDpfmuNZKYXlsTOtZ7nNPKjotJDRZvdYYqLVztjk0gOzEOsxgwWDkYW0dRUPyFCkhA_3cjoCVqbWxRcC5hbIWtIwdtGMmCgjcKFdGyjB44OMpBq_rgUU/s1600/avr_eclipse_win_01_med.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;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj164bxVCCpKUI7iLm_ygdCIq1uDpfmuNZKYXlsTOtZ7nNPKjotJDRZvdYYqLVztjk0gOzEOsxgwWDkYW0dRUPyFCkhA_3cjoCVqbWxRcC5hbIWtIwdtGMmCgjcKFdGyjB44OMpBq_rgUU/s640/avr_eclipse_win_01_med.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: left;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: x-small; line-height: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: x-small; line-height: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: x-small; line-height: 15px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Para usar o programa basta instalar e depois de reiniciar o plugin já estará pronto para uso. Para obter o plugin que ativa o gravador dentro do eclipse, acesse este site&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: #eeeeee; font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;verdana&amp;quot; , sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;http://www.fischl.de/usbasp/&quot; rel=&quot;nofollow&quot; style=&quot;background-color: #eeeeee; font-family: Arial, Helvetica, Verdana, sans-serif; font-size: 13px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;http://www.fischl.de/usbasp/&lt;/a&gt;&amp;nbsp;&lt;/span&gt;que possui as demais informações. Por hora é só, se manifestem para projetos ou tutorial completo.&amp;nbsp;&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;
&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue; font-size: x-large;&quot;&gt;CCS - Code Composer Studio - Eclipse para MSP430&amp;nbsp;&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;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiTjgIciYILYQXIDQb8Fi_R3lMGuncef2N6kAyTIT6VmqOrocMDKf7gEAmyRJo4Tgyh3ROxubL14g3_o3hLsgjt-DQ2jxYssf_UX4YaQoZlaleltCZklI90374xk8CB4VZ624t0PBB8Ma8/s1600/CCS_TI.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;232&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiTjgIciYILYQXIDQb8Fi_R3lMGuncef2N6kAyTIT6VmqOrocMDKf7gEAmyRJo4Tgyh3ROxubL14g3_o3hLsgjt-DQ2jxYssf_UX4YaQoZlaleltCZklI90374xk8CB4VZ624t0PBB8Ma8/s400/CCS_TI.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;color: blue; font-size: x-large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Depois temos a plataforma de programação chamada CCS, que é uma abreviação de Code Composer Studio da Texas Instruments, uma IDE em eclipse para os microcontroladores da linha MSP430 da TI.&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Para obter uma cópia, basta seguir o link&amp;nbsp;&lt;a href=&quot;http://www.ti.com/tool/ccstudio&quot;&gt;http://www.ti.com/tool/ccstudio&lt;/a&gt;&amp;nbsp;e fazer o download.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; A Texas Instruments, percebeu também a consolidação do mundo opensource e resolveu desenvolver sua IDE também nesta plataforma, o que agrada poder usar o linux no desenvolvimento de projetos e códigos com o eclipse.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&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;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEho4bdbtQt7HSQ8VoZrngWAK26DPQAY35ngZAW6dvzJU799obI3GnNLBoYqiPwQpK5HIoBM_mkDD7TINYUCS0uJIk2tAnRHpvAGnMKo0hfFYM_OZ7IRG6YUnMZ57Q-tTJVjXkbZKS-3lkc/s1600/med_ccstudio_ccsv5a_72.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;410&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEho4bdbtQt7HSQ8VoZrngWAK26DPQAY35ngZAW6dvzJU799obI3GnNLBoYqiPwQpK5HIoBM_mkDD7TINYUCS0uJIk2tAnRHpvAGnMKo0hfFYM_OZ7IRG6YUnMZ57Q-tTJVjXkbZKS-3lkc/s640/med_ccstudio_ccsv5a_72.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;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt; &lt;span style=&quot;font-size: x-large;&quot;&gt;MPLABX - IDE da Microchip.&amp;nbsp;&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;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;www.netbeans.org&amp;nbsp;&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;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-size: x-large;&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;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdmRC47hDZOD7kOcOR877CHldsbSlnzoYUh4xqaPza8kUaoAhVNaSRaAkez_yNUooJZX1VLwwPLnNFGO46LJXEad3dMPYIfHG9EbdM49dQJFy3fl_7u3D-jVJoR1fAFg4C4WEXbye-ZDE/s1600/MPLABX.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;182&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdmRC47hDZOD7kOcOR877CHldsbSlnzoYUh4xqaPza8kUaoAhVNaSRaAkez_yNUooJZX1VLwwPLnNFGO46LJXEad3dMPYIfHG9EbdM49dQJFy3fl_7u3D-jVJoR1fAFg4C4WEXbye-ZDE/s640/MPLABX.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: left;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Outra grande sacada da Microchip foi desenvolver sua IDE baseada no Netbeans, pois permite aos desenvolvedores de aplicações em outras plataformas possuir uma única IDE e os diversos plugins para serem portados para windows e linux sem estresse algum o que facilita a integração de código e de lógica. Por exemplo, recebo um programa para PIC e quero desenvolver para AVR, não preciso abrir várias IDEs, só preciso ter a lógica do programa e desenvolver conforme os recursos dos microcontroladores sem muita procura. Não estou falando de converter arquivos, mesmo por que os compiladores são diferentes. Falo em poder seguir regras de programação para usar uma lógica para outro microcontrolador na mesma IDE.&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Para quem quer saber mais sobre a IDE da microchip, basta seguir o link&amp;nbsp;&lt;a href=&quot;http://www.microchip.com/pagehandler/en-us/family/mplabx/&quot;&gt;http://www.microchip.com/pagehandler/en-us/family/mplabx/&lt;/a&gt;&amp;nbsp;, baixar os arquivos desejados e começar a programar. É bom salientar que o PICKIT2 mesmo clone funciona muito bem nesta nova IDE.&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&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;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuoqV6uGKNVJp_4dOtrsvUT5YmnvrruKmNjWHBX4CQHD9pSrl5j_vV-5KZGwVoYTpMIjhNtoH5sv1CO9qt2ICS3RdzcNTQ4fIsbR8pp_2kBzAi8RLlYY7M1IkOFwDQU2bknz3_wmqeLYo/s1600/MPABXIDE.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;462&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuoqV6uGKNVJp_4dOtrsvUT5YmnvrruKmNjWHBX4CQHD9pSrl5j_vV-5KZGwVoYTpMIjhNtoH5sv1CO9qt2ICS3RdzcNTQ4fIsbR8pp_2kBzAi8RLlYY7M1IkOFwDQU2bknz3_wmqeLYo/s640/MPABXIDE.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;span style=&quot;color: blue; font-size: x-large;&quot;&gt;KPIT Eclipse e E2STUDIO - Ferramentas Renesas de microcontroladores.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;color: blue; font-size: x-large;&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;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi4rW5BZHKf0NNpQo1CEK5xVDOVEdHSJ0yPIa_NvifJRQEoowzwdRjKDnEhdyM_FbsEqpJuXhK0hMj0Wx7TX9X3h1GRJJqELZ2b_OaOvBY1E-si11vfb6PPYfP1czOSLagt2P_yhO7eEJU/s1600/e2studio.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;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi4rW5BZHKf0NNpQo1CEK5xVDOVEdHSJ0yPIa_NvifJRQEoowzwdRjKDnEhdyM_FbsEqpJuXhK0hMj0Wx7TX9X3h1GRJJqELZ2b_OaOvBY1E-si11vfb6PPYfP1czOSLagt2P_yhO7eEJU/s320/e2studio.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgZUPFgpL4wvcF0zbEEJJeEB1tPhW7H8JsBHiXLdxOmb8q1D4pjvxA8jCY-pq49tgOe7cCSIUoRBnQ3GWk0KaOpX7ZflFl19DYZkt2c0DceN4Doymasvd-F0_uuTT6WhnL7ERn56Es9UsI/s1600/Kpiteclipse.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;208&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgZUPFgpL4wvcF0zbEEJJeEB1tPhW7H8JsBHiXLdxOmb8q1D4pjvxA8jCY-pq49tgOe7cCSIUoRBnQ3GWk0KaOpX7ZflFl19DYZkt2c0DceN4Doymasvd-F0_uuTT6WhnL7ERn56Es9UsI/s400/Kpiteclipse.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue; font-size: x-large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;A Renesas, maior fabricante de microcontroladores de diversas linhas desde 8 até 32 bits, desenvolveu uma IDE baseada em Eclipse também, apesar de possuir o HEW, uma IDE proprietária específica para os microcontroladores mais antigos e de antes das novas fusões com a Hitachi e a NEC. Com uma família crescente e cada vez mais diversificada a empresa já contava com uma participação da KPIT Cummins, uma empresa de desenvolvimento de softwares que desenvolveu o KPIT GNU uma IDE baseada no eclipse para desenvolvimento em linguagem C/C++ e assembler para os microcontroladores da Renesas. Depois de algum tempo, saiu do forno a IDE da própria Renesas para ser usado com as novas linhas de microcontroladores.&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Para os interessados em desenvolver para microcontroladores da Renesas em eclipse, podem acessar o site &lt;a href=&quot;http://www.kpitgnutools.com/&quot;&gt;http://www.kpitgnutools.com&lt;/a&gt;&amp;nbsp;&lt;span style=&quot;background-color: white; color: #009933; font-family: &amp;quot;arial&amp;quot; , sans-serif; line-height: 15px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: &amp;quot;arial&amp;quot; , sans-serif; line-height: 15px;&quot;&gt;desenvolvido para ser usado de forma independente e pegando as linhas mais antigas como R8C e as demais ou o link&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;http://www.renesas.com/products/tools/ide/ide_e2studio/index.jsp&quot;&gt;http://www.renesas.com/products/tools/ide/ide_e2studio/index.jsp&lt;/a&gt;&amp;nbsp;para quem deseja usar a própria IDE, também baseada em eclipse, para os mais novos microcontroladores da Renesas.&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&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: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-size: x-large;&quot;&gt;Finalizando.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; As empresas perceberam que a IDE eclipse ficou mais poderosa e que as ferramentas GNU, principalmente a GCC e a DBG, tendo nas mãos delas uma forma de perpertuarem seus produtos de forma mais rápida e prática, uma vez que basta ter atualizações para a IDE que automaticamente se tem para o GCC e outras ferramentas que ajudam no desenvolvimento dessas plataformas dentro do Eclipse. O mais importante é poder conhecer novos horizontes.&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; No caso do CCS eu não gostei da limitação de código, que, uma vez feito em eclipse, a Texas falhou com o usuário neste&amp;nbsp;quesito, uma vez que estamos falando de ferramentas opensource e livre e usar algo que deveria ser assim para finalidade puramente comercial, já que se pode ganhar em volume de vendas de microcontroladores, foi demais. Mesmo assim, o limite permite desenvolver muita coisa bem significante e eficiente. Para quem desenvolve para os MSP430 não vejo problemas em desenvolvimento de softwares complexos com essa limitação. minha bronca é com a limitação, mesmo esta não afetando os microcontroladores MSP430, uma vez que estes, dificilmente, alcançarão o limite da IDE.&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Percebemos também que a MICROCHIP usou uma outra IDE igualmente opensource e livre que é o netbeans e portanto é uma outra variante igual ao eclipse, embora incompatíveis entre si em alguns aspectos, mas que aceitam um o programa do outro normalmente, seguindo algumas alterações.&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; No mais é isso e até a próxima..... &amp;nbsp;&amp;nbsp;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://cleapseletroeletronica.blogspot.com/feeds/7159521723429982409/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://cleapseletroeletronica.blogspot.com/2012/11/ide-eclipse-no-desenvolvimento-em.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3000668579123608637/posts/default/7159521723429982409'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3000668579123608637/posts/default/7159521723429982409'/><link rel='alternate' type='text/html' href='http://cleapseletroeletronica.blogspot.com/2012/11/ide-eclipse-no-desenvolvimento-em.html' title='IDE eclipse no desenvolvimento em microcontroladores'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04117759606587902766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjgqei4MhZzYXc2Qje6dvh8yZHFIZGv8xnDOTYF8R5p_n6nLmsSeodnB_T_oC4A2FuI7_JokdociO0EWG7EIzuCgbOZrictfAbBH5Ig0-lWEoIbnKxv_xAcmE1p8Q63QxfxAYjSBVuvTOU/s72-c/eclipse_IDE.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3000668579123608637.post-4470723115720998747</id><published>2012-11-07T11:28:00.000-08:00</published><updated>2016-02-03T10:49:09.157-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Tutoriais"/><title type='text'>Gravando e debugando Zilog Z8 encore com conversor USB-serial em LINUX</title><content type='html'>&lt;span style=&quot;color: blue; font-size: x-large;&quot;&gt;&lt;b&gt;Gravando e debugando Zilog Z8 encore com conversor USB-serial em LINUX

&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;form action=&quot;https://www.paypal.com/cgi-bin/webscr&quot; method=&quot;post&quot;&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;input name=&quot;cmd&quot; type=&quot;hidden&quot; value=&quot;_s-xclick&quot; /&gt;
&lt;input name=&quot;hosted_button_id&quot; type=&quot;hidden&quot; value=&quot;QEYQ5M7NRZVVG&quot; /&gt;
&lt;input alt=&quot;PayPal - A maneira mais fácil e segura de efetuar pagamentos online!&quot; border=&quot;0&quot; name=&quot;submit&quot; src=&quot;https://www.paypalobjects.com/pt_BR/BR/i/btn/btn_donateCC_LG.gif&quot; type=&quot;image&quot; /&gt;
&lt;img alt=&quot;&quot; border=&quot;0&quot; height=&quot;1&quot; src=&quot;https://www.paypalobjects.com/pt_BR/i/scr/pixel.gif&quot; width=&quot;1&quot; /&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/form&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
 bb_bid = &quot;1674044&quot;;
 bb_lang = &quot;pt-BR&quot;;
 bb_keywords = &quot;GLCD,microcontrolador, TI, RENESAS, zilog,microchip,PLC,elevador, CD, programação,matemática,IC,LCD.&quot;;
 bb_name = &quot;custom&quot;;
 bb_limit = &quot;8&quot;;
 bb_format = &quot;bbb&quot;;
&lt;/script&gt;
&lt;script src=&quot;http://static.boo-box.com/javascripts/embed.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Olá amigos do blog, venho neste artigo falar dos conversores USB-Serial no Linux, especificamente nas distribuições DEBIAN e variantes (Ubuntu, Mint, etc...) que muita gente possui dificuldades em fazer funcionar devido as restrições do próprio sistema linux que prega a segurança em primeiro lugar e que para usuários do windows pode parecer decepcionante quando não se tem acesso a informação que permita essas funcionalidades serem automáticas. Bom ! No Linux, tudo é penoso pelo fato do sistema pregar a linha da segurança e quando o próprio dono escreve os scripts e códigos é considerado que o sistema funcione com essa intervenção, diferentemente do windows, onde a maioria das coisas funcionam diretamente o que permite a entrada de programas maliciosos e vírus diversos com a maior facilidade, motivo pelo qual, muitas empresas acabam usando como servidor os sistemas operacionais linux e variantes.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Para os usuários linux, que compraram um conversor USB-Serial e ao instalarem programas que rodam redondo no linux mas são programas windows rodando sob o Wine e que acessam a porta serial emulada mas não funcionam, eis aqui a solução não definitiva mas funcional.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Na figura abaixo temos um modelo chamado HL-340, que é um conversor USB-Serial comum e encontrado em diversos sites de compras de produtos de eletrônica e informática e servem também outros modelos, como as variantes do PL-2303 ou FTDI.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjReX1im9bMbEBzv2smC3VbZmTiJ0f0t_-1SW67LjO05voyhgN4Vm5NxWJb7XKFJ5DtkJYglPzo70754nbIGQCehITfJmalPPUFzzGMj2-dgstiBFwITZcH8AdnNLZNT4pxBt8pkHp0J1E/s1600/HL340b.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;222&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjReX1im9bMbEBzv2smC3VbZmTiJ0f0t_-1SW67LjO05voyhgN4Vm5NxWJb7XKFJ5DtkJYglPzo70754nbIGQCehITfJmalPPUFzzGMj2-dgstiBFwITZcH8AdnNLZNT4pxBt8pkHp0J1E/s400/HL340b.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Inicialmente, abrimos o terminal e digitamos &quot;lsusb&quot; como root mesmo, só para saber algumas informações do seu adaptador usb para serial e temos :&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; root@root-A31G:~$ &lt;span style=&quot;background-color: yellow;&quot;&gt;lsusb&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Teremos a seguinte resposta : &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Bus 002 Device 002: ID 0d8c:000e C-Media Electronics, Inc. Audio Adapter (Planet UP-100, &amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Genius G-Talk)&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Bus 005 Device 002: ID 1bcf:0007 Sunplus Innovation Technology Inc. Optical Mouse&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;background-color: yellow;&quot;&gt;Bus 002 Device 007: ID 1a86:7523 QinHeng Electronics HL-340 USB-Serial adapter&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Na parte amarela foi definido pelo sistema o barramento e o dispositivo USB e lido as informações como sendo vendor=0x1a86 e product=0x7523, assim, com essas informações poderemos autorizar o sistema operacional Linux a liberar este dispositivo usb sem problemas.&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Digitamos no terminal o comando de manipulação de módulos do Kernel do Linux, com:&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; root@root-A31G:~$ &lt;span style=&quot;background-color: yellow;&quot;&gt;modprobe usbserial vendor=0x1a86 product=ox7523&lt;/span&gt;&amp;nbsp; &amp;nbsp;e dê ENTER.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Pronto, sua porta serial emulada está liberada para uso. Basta, agora, configurar algumas informações de baudrate e tipo de com, mas vou deixar como default e automática.&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Como estou utilizando o ZDSII da Zilog para gravar e debugar os microcontroladores Z8 encore com pino único de DBG ou debuger, vou criar, no WINE, uma regra de acesso com o comando :&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;background-color: yellow;&quot;&gt;&lt;span style=&quot;color: #3e3e3e; font-family: &amp;quot;tahoma&amp;quot; , &amp;quot;calibri&amp;quot; , &amp;quot;verdana&amp;quot; , &amp;quot;geneva&amp;quot; , sans-serif; font-size: 13px;&quot;&gt;root@root-A31G:~$ ln -s /dev/ttyUSB0 /home/SUA_PASTA/.wine/dosdevices/com2&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Aqui, &quot;SUA_PASTA&quot; é a que se tem no diretório /home do seu linux e onde esteja instalado o WINE e teremos o programa que usa a porta serial emulada funcionando perfeitamente.&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; A seguir temos o programa ZDSII e um exemplo de projeto para Z8F0822 aberto. Em project selecionamos a opção &quot;Settings&quot; e temos a figura abaixo. Configure conforme se pede.&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhaGPEIJ0rHADpBbrrCQ8zB_bPwoNJm3kXQi4Nu1Vbu-nHQGlURhTEwGU81E2hJTPJsBdl4oEhHxsQkFSnKTsHBk6HsVUgGrfgj_e1fNh9KqRjMpVgfj8c54stZQiOYYHFQMGs2nCOIBY0/s1600/zds2_blogger.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;490&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhaGPEIJ0rHADpBbrrCQ8zB_bPwoNJm3kXQi4Nu1Vbu-nHQGlURhTEwGU81E2hJTPJsBdl4oEhHxsQkFSnKTsHBk6HsVUgGrfgj_e1fNh9KqRjMpVgfj8c54stZQiOYYHFQMGs2nCOIBY0/s640/zds2_blogger.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Em seguida, vamos conectar o cabo usb-serial com o gravador DIY que foi dado o esquema no post que fala sobre gravador. Olhe os posts anteriores para saber como fazer o seu ou compre um nosso, conforme se vê na figura a seguir :&amp;nbsp;&lt;/div&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;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNO7a-D9FlZ_o5Agx5UKKnLNa6T7_hW9ZYUWrN-_ubBrg-dpC1kgOtgMwVXysRILQQ4EiLF_ZdkIjkcXPTGUS3nuvZAVhLBg60f6GnxzhulKnL8qSbjk1CEJusMHhpVMWtbIp0gq2WaCU/s1600/DSC00070.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;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNO7a-D9FlZ_o5Agx5UKKnLNa6T7_hW9ZYUWrN-_ubBrg-dpC1kgOtgMwVXysRILQQ4EiLF_ZdkIjkcXPTGUS3nuvZAVhLBg60f6GnxzhulKnL8qSbjk1CEJusMHhpVMWtbIp0gq2WaCU/s640/DSC00070.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: left;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Agora vamos ver como tudo foi feito assistindo a um vídeo bem ilustrativo e que demonstra como é simples, prático e rápido mexer com microcontroladores Zilog. A demanda por este micro sendo considerável, posso tentar trazer alguns kits ou MCUs para a galera poder brincar um pouco com elas. Aceito sugestões de projetos e vou ver se faço alguns para o pessoal poder ir se familiarizando com esta linha de microcontrolador .... Obrigado.&amp;nbsp;&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;iframe allowfullscreen=&quot;allowfullscreen&quot; frameborder=&quot;0&quot; height=&quot;480&quot; src=&quot;http://www.youtube.com/embed/T4yUbosRlwU&quot; width=&quot;640&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://cleapseletroeletronica.blogspot.com/feeds/4470723115720998747/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://cleapseletroeletronica.blogspot.com/2012/11/gravando-e-debugando-zilog-z8-encore.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3000668579123608637/posts/default/4470723115720998747'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3000668579123608637/posts/default/4470723115720998747'/><link rel='alternate' type='text/html' href='http://cleapseletroeletronica.blogspot.com/2012/11/gravando-e-debugando-zilog-z8-encore.html' title='Gravando e debugando Zilog Z8 encore com conversor USB-serial em LINUX'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04117759606587902766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjReX1im9bMbEBzv2smC3VbZmTiJ0f0t_-1SW67LjO05voyhgN4Vm5NxWJb7XKFJ5DtkJYglPzo70754nbIGQCehITfJmalPPUFzzGMj2-dgstiBFwITZcH8AdnNLZNT4pxBt8pkHp0J1E/s72-c/HL340b.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3000668579123608637.post-5153116944570347041</id><published>2012-11-02T18:03:00.001-07:00</published><updated>2016-02-03T10:50:14.642-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Início"/><title type='text'>Renesas uma abordagem importante ... </title><content type='html'>&lt;span style=&quot;color: blue; font-size: x-large;&quot;&gt;Renesas uma abordagem importante ....&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-size: x-large;&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;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiX3Hk1g9CiB4ESxdWk2ee-V9F1OfM0nIQvZBouUZhucemDf0GRG5MBuu7YO5S8seflTcP1pvV4DQKLg_TeiKP2eEzis1MtqyQCK9Iq3WtOPplAt2SmDlWMCFWQl2EseCcWZk-6YEITJ-g/s1600/renesas.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;202&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiX3Hk1g9CiB4ESxdWk2ee-V9F1OfM0nIQvZBouUZhucemDf0GRG5MBuu7YO5S8seflTcP1pvV4DQKLg_TeiKP2eEzis1MtqyQCK9Iq3WtOPplAt2SmDlWMCFWQl2EseCcWZk-6YEITJ-g/s640/renesas.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;color: blue; font-size: x-large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: blue; font-size: x-large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;form action=&quot;https://www.paypal.com/cgi-bin/webscr&quot; method=&quot;post&quot;&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;input name=&quot;cmd&quot; type=&quot;hidden&quot; value=&quot;_s-xclick&quot; /&gt;
&lt;input name=&quot;hosted_button_id&quot; type=&quot;hidden&quot; value=&quot;QEYQ5M7NRZVVG&quot; /&gt;
&lt;input alt=&quot;PayPal - A maneira mais fácil e segura de efetuar pagamentos online!&quot; border=&quot;0&quot; name=&quot;submit&quot; src=&quot;https://www.paypalobjects.com/pt_BR/BR/i/btn/btn_donateCC_LG.gif&quot; type=&quot;image&quot; /&gt;
&lt;img alt=&quot;&quot; border=&quot;0&quot; height=&quot;1&quot; src=&quot;https://www.paypalobjects.com/pt_BR/i/scr/pixel.gif&quot; width=&quot;1&quot; /&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/form&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
 bb_bid = &quot;1674044&quot;;
 bb_lang = &quot;pt-BR&quot;;
 bb_keywords = &quot;GLCD,microcontrolador, TI, RENESAS, zilog,microchip,PLC,elevador, CD, programação,matemática,IC,LCD.&quot;;
 bb_name = &quot;custom&quot;;
 bb_limit = &quot;8&quot;;
 bb_format = &quot;bbb&quot;;
&lt;/script&gt;
&lt;script src=&quot;http://static.boo-box.com/javascripts/embed.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Olá, nobres leitores.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Quero apresentar a vocês mais uma empresa de microcontroladores de alta performance e alto padrão de tecnologia. Uma empresa de concepção japonesa e com sede, atualmente, em Santa Clara, Califórnia nos EUA. e é uma união de várias empresas japonesas com uma última a entrar de nome NEC, tornando a RENESAS a número um em fornecimento de MCUs de alto padrão e tecnologia.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; A empresa está focada em três principais mercados de consumo que são: MCUs , analógicos e Sistemas em um CHIP ( SoC ) e procura estar sempre a frente com investimentos em marketing fora do japão, principalmente em mercados emergentes e de grande prospecção de negócios em eletrônica ao redor do mundo.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; A empresa promove seus produtos com kits de desenvolvimento que esta dá a pessoas ou empresas chaves que possam fazer testes e devolver um retorno do que encontraram de pró ou contra e assim permitir as melhorias que comportem os pedidos dos desenvolvedores ao redor do mundo e ajuda aos pequenos desenvolvedores nos testes dos microcontroladores permitindo que estes recebam amostras tanto de kits quanto de chips e são entregues na sua porta no menor tempo possível via curier e pagos pela empresa o frete e os impostos.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; A linha de MCUs vai de pequenos micros de 8 bits a máquinas de 32bits e um leque variado de opções de modelos. Assim, iniciando com os modelos M16C, R8C, H8 e SH, temos as mais recentes linhas RL78 e RX além de outras e cada qual com suas peculiaridades e funcionalidades. Para receber maiores informações de como receber amostras ou participar de promoções que dão kits, basta entrar no site &lt;a href=&quot;http://www.renesas.com/&quot;&gt;www.renesas.com&lt;/a&gt; e navegar pelo mesmo. Para discutir o assunto relacionado a esta linha de MCUs &amp;nbsp;temos a lista de discussão &lt;a href=&quot;http://www.renesasrulz.com/&quot;&gt;www.renesasrulz.com&lt;/a&gt; e tenham suas dúvidas sanadas. Aqui no Brasil, é possível tirar as dúvidas e trocar informações com o grupo do google escrevendo para o mesmo pedindo sua adesão em&amp;nbsp;renesas_brasil@googlegroups.com e outras informações podem ser obitidas no link &lt;a href=&quot;http://int2float.blogspot.com.br/&quot;&gt;http://int2float.blogspot.com.br&lt;/a&gt; e seguir os exemplos do nosso amigo André Oliveira que pode ser a pessoa que mais conhece a RENESAS e tem nos ajudado de diversas formas.&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;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlTSizII6BhST9KqLXfDpNpNMJPE7v_vSGE9FvDf9ZdPI9bHwOyd8lLIQVZNriT4hfOmfbZ2tv5AxusPtKdNLyA6_vFJeLD5xDAL_aBf3Fc2ZrsFA1Sdy0afItlH8iMFjcg6H6pQlV71U/s1600/renesas2.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;367&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlTSizII6BhST9KqLXfDpNpNMJPE7v_vSGE9FvDf9ZdPI9bHwOyd8lLIQVZNriT4hfOmfbZ2tv5AxusPtKdNLyA6_vFJeLD5xDAL_aBf3Fc2ZrsFA1Sdy0afItlH8iMFjcg6H6pQlV71U/s640/renesas2.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; No link&amp;nbsp;&lt;a href=&quot;http://am.renesas.com/products/tools/ide/index.jsp&quot;&gt;http://am.renesas.com/products/tools/ide/index.jsp&lt;/a&gt;&amp;nbsp;é possível ter as diversas ferramentas para poder iniciar seu desenvolvimento se conseguiu amostras de graça para iniciar algum projeto. A tendencia, hoje, é o uso da plataforma Eclipse como IDE e mesmo assim tem para esta mesma plataforma e versão &lt;a href=&quot;http://www.kpitgnutools.org/&quot;&gt;www.kpitgnutools.org&lt;/a&gt; que também usa o eclipse IDE.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Se você gostou deste assunto e quer saber mais, basta seguir os links acima e terá uma visão melhor do maravilhoso mundo dos microcontroladores de alta tecnologia. Precisando saber alguma novidade, o próprio link permite que se registre nos sites e fique por dentro dos acontecimentos.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Por hora, é só e conforme forem feitos projetos ou novidades correlatas, tentaremos expor aqui e até o próximo artigo...&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://cleapseletroeletronica.blogspot.com/feeds/5153116944570347041/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://cleapseletroeletronica.blogspot.com/2012/11/renesas-uma-abordagem-importante.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3000668579123608637/posts/default/5153116944570347041'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3000668579123608637/posts/default/5153116944570347041'/><link rel='alternate' type='text/html' href='http://cleapseletroeletronica.blogspot.com/2012/11/renesas-uma-abordagem-importante.html' title='Renesas uma abordagem importante ... '/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04117759606587902766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiX3Hk1g9CiB4ESxdWk2ee-V9F1OfM0nIQvZBouUZhucemDf0GRG5MBuu7YO5S8seflTcP1pvV4DQKLg_TeiKP2eEzis1MtqyQCK9Iq3WtOPplAt2SmDlWMCFWQl2EseCcWZk-6YEITJ-g/s72-c/renesas.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3000668579123608637.post-8761546681157811291</id><published>2012-10-30T06:32:00.003-07:00</published><updated>2016-02-03T10:45:05.376-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Novidades"/><title type='text'></title><content type='html'>&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: x-large;&quot;&gt;&lt;b&gt;Zilog - Z8 encore &amp;nbsp;gravação, debugagem &amp;nbsp;e circuito de conversor por transistor comum...&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;form action=&quot;https://www.paypal.com/cgi-bin/webscr&quot; method=&quot;post&quot;&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;input name=&quot;cmd&quot; type=&quot;hidden&quot; value=&quot;_s-xclick&quot; /&gt;
&lt;input name=&quot;hosted_button_id&quot; type=&quot;hidden&quot; value=&quot;QEYQ5M7NRZVVG&quot; /&gt;
&lt;input alt=&quot;PayPal - A maneira mais fácil e segura de efetuar pagamentos online!&quot; border=&quot;0&quot; name=&quot;submit&quot; src=&quot;https://www.paypalobjects.com/pt_BR/BR/i/btn/btn_donateCC_LG.gif&quot; type=&quot;image&quot; /&gt;
&lt;img alt=&quot;&quot; border=&quot;0&quot; height=&quot;1&quot; src=&quot;https://www.paypalobjects.com/pt_BR/i/scr/pixel.gif&quot; width=&quot;1&quot; /&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/form&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
 bb_bid = &quot;1674044&quot;;
 bb_lang = &quot;pt-BR&quot;;
 bb_keywords = &quot;GLCD,microcontrolador, TI, RENESAS, zilog,microchip,PLC,elevador, CD, programação,matemática,IC,LCD.&quot;;
 bb_name = &quot;custom&quot;;
 bb_limit = &quot;8&quot;;
 bb_format = &quot;bbb&quot;;
&lt;/script&gt;
&lt;script src=&quot;http://static.boo-box.com/javascripts/embed.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Vamos agora abordar a parte de gravação dos microcontroladores da Zilog usando um conversor serial para TTL transistorizado e integrado todos os circuitos que são necessários para que a gravação seja perfeita.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Na figura abaixo podemos perceber que temos componentes simples e fáceis de serem encontrados na loja &lt;a href=&quot;http://www.cleapseletroeletronica.com/&quot;&gt;www.cleapseletroeletronica.com&lt;/a&gt;&amp;nbsp;e o que não encontrar basta deixar um aviso ou comentário no próprio site. Perceba que o circuito é muito simples e foi criado em um programa opensource chamado KICAD PCB e que pode ser baixado e usado livremente no site &lt;a href=&quot;http://www.kicad-pcb.org/&quot;&gt;www.kicad-pcb.org&lt;/a&gt;&amp;nbsp;. Desenvolvemos este gravador para que as pessoas possam fazer em casa de maneira prática e fácil.&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;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhrpv_2pcCDCppQgzrYF1mbmhYGGZX2Gy9HLjhmw7L4M60HXluhhTNOSpB8HnsEubWP5RXot0w_bmTiM4t9kBEyhvgl8onSMEXOdA3QZ7kZYoYVIJ96sR9YuyKzb6Bu1Sjch96PExhA3dY/s1600/gravador_Z8_transistor.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;356&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhrpv_2pcCDCppQgzrYF1mbmhYGGZX2Gy9HLjhmw7L4M60HXluhhTNOSpB8HnsEubWP5RXot0w_bmTiM4t9kBEyhvgl8onSMEXOdA3QZ7kZYoYVIJ96sR9YuyKzb6Bu1Sjch96PExhA3dY/s640/gravador_Z8_transistor.png&quot; width=&quot;840&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Observe que a alimentação vem da placa com o microcontrolador e é só plugar o gravador ou desplugar sem comprometer nenhum pino do MCU o que é fantástico quando se está trabalhando com gravação de microcontrolador.&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Neste contexto, sempre que perdermos um gravador, comprado e caro e um debugador também, temos a infelicidade de comprar novos sempre que perdemos ou temos de atualizar algo pagando algum tipo de licença e com os microcontroladores da Zilog, isso não acontece.&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; É importante observar que não é comum achar esses microcontroladores no Brasil, mas é possível conseguir amostras para seus experimentos e usando nosso circuito de gravação e debugagem de custo baixo é possível diminuir, drasticamente, os riscos com investimentos altos em produtos caros.&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Bom, a zilog não tem uma política de marketing no Brasil devido ao número pequeno de desenvolvedores e de usuários, vamos ver se isso muda com a divulgação dos seus chips e da empresa e assim poder desmistificar a ideia de empresa que sumiu. O que não é verdade e que está mais forte que nunca.&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Observamos na figura a seguir que o pino DBG é o único pino que fica separado somente para a função de carregar e descarregar o programa feito no ZDSII. Sendo muito importante essa característica quando estamos desenvolvendo algum projeto ou trabalho e precisamos ficar preocupados com que pino usar e que não ofereça conflito com nossos periféricos, ou do microcontrolador, ou externos.&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Na figura abaixo criamos um circuito também simples e que deve ser alimentado com 3.3V, lembrando que os microcontroladores da zilog são tolerantes a tensão de 5V somente nos pinos no modo entrada e evitados nos pinos de alimentação.&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; No nosso caso, colocamos dois diodos 1N4007 em série para reduzir os 5V de entrada para perto de 4.0 V sem carga e para perto de 3.4V com carga. e não tivemos nenhum problema no nosso laboratório, inclusive acendendo leds e acionando relés.&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&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;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg2PvKXiDzmKxg1CVLPh9Fh5LHjCR0qfs-pGLmLdWU07-PFeSzV4RvjBlJcnUieQFUGM3GZgzIU3Olnn5JrpHzfpvrpUNyWef9d-Xp12WcR1ieXyd83NA9DT_T39HpTm0dAAxY5C4ZXxCs/s1600/circuito_Z8_dbg.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;350&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg2PvKXiDzmKxg1CVLPh9Fh5LHjCR0qfs-pGLmLdWU07-PFeSzV4RvjBlJcnUieQFUGM3GZgzIU3Olnn5JrpHzfpvrpUNyWef9d-Xp12WcR1ieXyd83NA9DT_T39HpTm0dAAxY5C4ZXxCs/s640/circuito_Z8_dbg.png&quot; width=&quot;840&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Quero, aqui comunicar, que saibam da intenção de criar um kit que a pessoa simplesmente só precisa baixar o ZDSII da zilog e plugar no computador ou no laptop o tal kit e já começar a digitar os códigos e ir criando seus projetos e trabalhos. Se for de interesse, se manifestem para eu poder saber da dimensão do interesse das pessoas nessa linha de microcontroladores e assim poder saber quantos kits poderei criar.&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Por hora é só e até a próxima aventura ....&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; andrepereira@ig.com.br&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; www.cleapseletroeletronica.com&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://cleapseletroeletronica.blogspot.com/feeds/8761546681157811291/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://cleapseletroeletronica.blogspot.com/2012/10/zilog-z8-encore-debugagem-circuito-de.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3000668579123608637/posts/default/8761546681157811291'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3000668579123608637/posts/default/8761546681157811291'/><link rel='alternate' type='text/html' href='http://cleapseletroeletronica.blogspot.com/2012/10/zilog-z8-encore-debugagem-circuito-de.html' title=''/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04117759606587902766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhrpv_2pcCDCppQgzrYF1mbmhYGGZX2Gy9HLjhmw7L4M60HXluhhTNOSpB8HnsEubWP5RXot0w_bmTiM4t9kBEyhvgl8onSMEXOdA3QZ7kZYoYVIJ96sR9YuyKzb6Bu1Sjch96PExhA3dY/s72-c/gravador_Z8_transistor.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3000668579123608637.post-51329724106220742</id><published>2012-10-27T17:36:00.000-07:00</published><updated>2016-02-03T10:43:51.187-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Novidades"/><title type='text'>Zilog - MCU de fácil debugagem/gravação ...</title><content type='html'>&lt;span style=&quot;color: blue; font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;Zilog - Z8encore e outras MCUs , gravação e debugagem pela serial do PC.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;form action=&quot;https://www.paypal.com/cgi-bin/webscr&quot; method=&quot;post&quot;&gt;
&lt;input name=&quot;cmd&quot; type=&quot;hidden&quot; value=&quot;_s-xclick&quot; /&gt;
&lt;input name=&quot;hosted_button_id&quot; type=&quot;hidden&quot; value=&quot;QEYQ5M7NRZVVG&quot; /&gt;
&lt;input alt=&quot;PayPal - A maneira mais fácil e segura de efetuar pagamentos online!&quot; border=&quot;0&quot; name=&quot;submit&quot; src=&quot;https://www.paypalobjects.com/pt_BR/BR/i/btn/btn_donateCC_LG.gif&quot; type=&quot;image&quot; /&gt;
&lt;img alt=&quot;&quot; border=&quot;0&quot; height=&quot;1&quot; src=&quot;https://www.paypalobjects.com/pt_BR/i/scr/pixel.gif&quot; width=&quot;1&quot; /&gt;
&lt;/form&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
 bb_bid = &quot;1674044&quot;;
 bb_lang = &quot;pt-BR&quot;;
 bb_keywords = &quot;GLCD,microcontrolador, TI, RENESAS, zilog,microchip,PLC,elevador, CD, programação,matemática,IC,LCD.&quot;;
 bb_name = &quot;custom&quot;;
 bb_limit = &quot;8&quot;;
 bb_format = &quot;bbb&quot;;
&lt;/script&gt;
&lt;script src=&quot;http://static.boo-box.com/javascripts/embed.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Olá pessoal, quero falar agora sobre a sacada fenomenal da Zilog na forma de como podemos escrever os códigos, compilar e descarregar no chip com uma simples porta serial e aceitando, inclusive, conversores de porta usb para serial, inclusive encontrada no site &lt;a href=&quot;http://www.cleapseletroeletronica.com/&quot;&gt;www.cleapseletroeletronica.com&lt;/a&gt;&amp;nbsp;para uso em laptops ou computadores sem porta serial física ou por hardware na placa mãe.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; A zilog, como disse, tem um portifólio de microcontroladores e outros dispositivos de memória e sistemas on chip e é uma empresa norte americana que ficou esquecida por aqui no Brasil desde os vídeos games em que eram usados com o microprocessador de nome Z80 e que deu alegria a muitas crianças e adultos com video games tipo ZX spectrum e outros da SEGA.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Com o tempo a empresa e seus produtos acabaram ficando restritos a poucos desenvolvedores aqui no Brasil em virtude de falta de informação e de produtos a venda no mercado nacional associado a isso outros fatores como investimentos mais pesados de seus concorrentes por aqui, como a &lt;a href=&quot;http://www.ti.com/&quot;&gt;www.ti.com&lt;/a&gt; e &lt;a href=&quot;http://www.microchip.com/&quot;&gt;www.microchip.com&lt;/a&gt;&amp;nbsp;que praticamente ofuscaram e fizeram com que a zilog deixasse de existir.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Depois de algum tempo eles resolveram otimizar os CHIPS e o software de programação, criando as linhas Z8 encore e Z8 encore XP, além de outras. Essas duas linhas de microcontroladores são de alta performance e programáveis on chip com uma simples porta serial e conversores seriais Cmos para TTL de 3.3V. Isso mesmo, os chips da Zilog são de baixo consumo e baixa voltagem com uma maior performance comparado com a arquitetura antiga do Z80, mas seguindo a mesma linha de programação em assembler.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Depois de receber algumas amostras do modelo Z8F6423FT020EG e fazer alguns testes, percebi que programar nele é uma tarefa fácil e confortável e o fato de poder usar um pino apenas de debugem &amp;nbsp;e gravação, fiquei muito feliz. Fiz o famoso &quot;hello world&quot; dos microcontroladores que é o acender dos leds e a manipulação dos dados internos e dos periféricos da MCU com a maior desenvoltura. Achava eu que teria que ter uma paciência maior e não foi assim.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Aqui no Brasil eu não sei quem vende ou revende Zilog, mas se houver interessados eu importo alguns kits ou microcontroladores dessa empresa para poder ofertar ao mercado. Se manifestem, se gostaram da novidade.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Conforme se vê no exemplo de um gravador por porta serial é, somente, por um pino que o microcontrolador recebe os dados que serão gravados nele e debugar as informações contidas nele. É percebível a facilidade e a genialidade de quem criou essa forma de gravar o microcontrolador pois libera os outros pinos de serem sacrificados para essa função como acontece com muitos outros microcontroladores de concorrentes. Querendo deixar claro que não existe microcontrolador melhor um do outro, pois cada um tem suas características que se enquadram no problema a ser resolvido associando a isso as ferramentas e os softwares que vão compor a solução de algum problema, sendo assim, fuja de profissionais que alegam que os micros que eles conhecem são melhores, pois isso é o ponto de vista deles e não a realidade em questão. &lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjmA91tiDLugmanCmBThjmodfITbVVRvLIcldh18ua5choQGuwJsUPXY5jCqDmbT4qvC0Lvo4xZ76UoEink7mNKwd368dozx_87TrzfYwS7Z6xNIqHM77Zmhu2Ukv3v-rQBnvoscDJMvDI/s1600/zilogprogrammer.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;422&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjmA91tiDLugmanCmBThjmodfITbVVRvLIcldh18ua5choQGuwJsUPXY5jCqDmbT4qvC0Lvo4xZ76UoEink7mNKwd368dozx_87TrzfYwS7Z6xNIqHM77Zmhu2Ukv3v-rQBnvoscDJMvDI/s640/zilogprogrammer.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Para efeito de exemplo, a linha Z8 encore e Z8 encore XP contam com um leque de periféricos como, UART, TIMERS,I2C e outras funções que compõem outras famílias de microcontroladores dos concorrentes. O diferencial é ter o software para linguagem assembler e totalmente ilimitado para ANSI C, se comparado com alguns softwares dos concorrentes que limitam o tamanho do código de suas MCUs, o que permite escrever códigos complexos sem se preocupar com tamanho do código com relação a essas limitações do programa, se preocupando com a quantidade de memória do microcontrolador.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Na figura abaixo temos um diagrama em blocos dos periféricos que compõem essa linha e podemos tirar como exemplo o modelo Z8F6423FT020EG que é um microcontrolador de 20Mhz, funcionando com 3.3V, 64Kb de memória flash, 4Kb de RAM,Conversor AD de 10bits em 12 canais, até 4 timers de 16bits com capacidade de manipular PWM, WDT com oscilador interno, até três canais de DMA, até 60 I/Os, 24 interrupções com prioridades configuráveis, OCD que permite usar um pino para gravação e debugagem, Brown out protect, Power-on reset e funciona com 3.3V tolerante a aceitar sinais de entrada de 5volts.&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;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhwS0TKUEhGdxP2En1EG21Dmou3GPKkoq2MEuiW1diIrSTTuWcNACec707fsH80Rzk9uz8agwzEAUSXJRFGWKavo1GkzGCvfpIjYg8EyV6_tq1AntmFWB33Jxd6GCJhtDbMGAdpVHPe72M/s1600/Z8F6423_bd_1319060082.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;640&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhwS0TKUEhGdxP2En1EG21Dmou3GPKkoq2MEuiW1diIrSTTuWcNACec707fsH80Rzk9uz8agwzEAUSXJRFGWKavo1GkzGCvfpIjYg8EyV6_tq1AntmFWB33Jxd6GCJhtDbMGAdpVHPe72M/s640/Z8F6423_bd_1319060082.jpg&quot; width=&quot;570&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: left;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Tentaremos fazer um kit e escrever alguns códigos para apresentar o produto como mais uma alternativa para quem trabalha, vive de ou gosta de eletrônica pura e simplesmente. Mas preciso que se manifestem a fim de poder sensibilizar o pessoal da Zilog nos EUA para olharem mais para o mercado brasileiro. Quero que lembrem que este tipo de produto e dessa empresa embarcou muitos videos games nas nossas casas e projetar e programar esses microcontroladores hoje em dia seria muito gratificante e desafiador em virtude de ser uma novidade mesmo existindo a mais de 40 anos essa empresa.&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; No mais é isso e queria receber comentário, dicas ou sugestões. Meu email de contato é &lt;a href=&quot;mailto:andrepereira@ig.com.br&quot;&gt;andrepereira@ig.com.br&lt;/a&gt; e meu site de produtos é &lt;a href=&quot;http://www.cleapseletroeletronica.com/&quot;&gt;www.cleapseletroeletronica.com&lt;/a&gt; e muito obrigado a todos ....&amp;nbsp;&lt;/div&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://cleapseletroeletronica.blogspot.com/feeds/51329724106220742/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://cleapseletroeletronica.blogspot.com/2012/10/zilog-mcu-de-facil-debugagemgravacao.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3000668579123608637/posts/default/51329724106220742'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3000668579123608637/posts/default/51329724106220742'/><link rel='alternate' type='text/html' href='http://cleapseletroeletronica.blogspot.com/2012/10/zilog-mcu-de-facil-debugagemgravacao.html' title='Zilog - MCU de fácil debugagem/gravação ...'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04117759606587902766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjmA91tiDLugmanCmBThjmodfITbVVRvLIcldh18ua5choQGuwJsUPXY5jCqDmbT4qvC0Lvo4xZ76UoEink7mNKwd368dozx_87TrzfYwS7Z6xNIqHM77Zmhu2Ukv3v-rQBnvoscDJMvDI/s72-c/zilogprogrammer.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3000668579123608637.post-6036244842257699697</id><published>2012-10-25T14:26:00.002-07:00</published><updated>2016-02-03T10:25:58.188-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Início"/><title type='text'>Zilog MCU uma abordagem ... </title><content type='html'>&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;background-color: #f3f3f3; font-size: x-large;&quot;&gt;Zilog MCU uma abordagem ...&amp;nbsp;&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;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjxIL5-b4s7hA_0o_rJqFk6LkbKIKbsmYkJ-pOBuYJJ8VBLGlUXe_tFqoQmNWsZ_3ZlnAtrTAF5mQm1i_hyphenhyphend7_P-EK7ez_Py61iTMjsdmEOGQs2PCm7W7LSydDcSRSFZMVYbWqWg0uoTJs/s1600/ziloglogo.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjxIL5-b4s7hA_0o_rJqFk6LkbKIKbsmYkJ-pOBuYJJ8VBLGlUXe_tFqoQmNWsZ_3ZlnAtrTAF5mQm1i_hyphenhyphend7_P-EK7ez_Py61iTMjsdmEOGQs2PCm7W7LSydDcSRSFZMVYbWqWg0uoTJs/s1600/ziloglogo.jpg&quot; /&gt;&lt;/a&gt;


Achou interessante e quer ajudar com um valor simbólico ? Clique !&lt;/div&gt;
&lt;form action=&quot;https://www.paypal.com/cgi-bin/webscr&quot; method=&quot;post&quot;&gt;
&lt;input name=&quot;cmd&quot; type=&quot;hidden&quot; value=&quot;_s-xclick&quot; /&gt;
&lt;input name=&quot;hosted_button_id&quot; type=&quot;hidden&quot; value=&quot;QEYQ5M7NRZVVG&quot; /&gt;
&lt;input alt=&quot;PayPal - A maneira mais fácil e segura de efetuar pagamentos online!&quot; border=&quot;0&quot; name=&quot;submit&quot; src=&quot;https://www.paypalobjects.com/pt_BR/BR/i/btn/btn_donateCC_LG.gif&quot; type=&quot;image&quot; /&gt;
&lt;img alt=&quot;&quot; border=&quot;0&quot; height=&quot;1&quot; src=&quot;https://www.paypalobjects.com/pt_BR/i/scr/pixel.gif&quot; width=&quot;1&quot; /&gt;
&lt;/form&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
 bb_bid = &quot;1674044&quot;;
 bb_lang = &quot;pt-BR&quot;;
 bb_keywords = &quot;GLCD,microcontrolador, TI, RENESAS, zilog,microchip,PLC,elevador, CD, programação,matemática,IC,LCD.&quot;;
 bb_name = &quot;custom&quot;;
 bb_limit = &quot;8&quot;;
 bb_format = &quot;bbb&quot;;
&lt;/script&gt;
&lt;script src=&quot;http://static.boo-box.com/javascripts/embed.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;




&lt;br /&gt;
&lt;span style=&quot;background-color: #f3f3f3; font-size: x-large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white;&quot;&gt;
&lt;div style=&quot;color: #333333; font-family: Arial, Verdana, Helvetica, sans-serif; text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: 12px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;A ZILOG é uma empresa fundada por Federico Faggin em 1974 sendo ele um dos inventores dos primeiros microprocessadores do mundo.&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: Arial, Verdana, Helvetica, sans-serif; text-align: left;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; A empreza produz produtos em semicondutores para usuários de engenharia, técnicos e entusiastas em eletrônica para a criação de projetos inovadores e criativos.&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: Arial, Verdana, Helvetica, sans-serif; text-align: left;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; A ZiLOG é, também, uma empresa ganhadora de prêmios mundiais na sua categoria e já produziu mais de 1 bilhão de microprocessadores e microcontroladores das linhas Z80 e Z8. Desenvolvedores e empresas podem conseguir maiores possibilidades de colocarem no mercado produtos mais inovadores muito mais rápido devido às ferramentas de desenvolvimento e depuração em hardware e software que ajudam na criação dessas possibilidades na construção de máquinas diversas, telecomunicações, máquinas de venda sistemas de automação residencial e industrial, controles remotos e diversas outras possibilidades.&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: Arial, Verdana, Helvetica, sans-serif; text-align: left;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dentre as possibilidades, a empresa conta com uma produção em massa de semicondutores diversos e para vários segmentos. Podemos dizer que seu foco é em microprocessadores, microcontroladores, memórias e processadores de informações digitais que podem ser programados de acordo com a necessidade do desenvolvedor e do problema a ser resolvido.&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: Arial, Verdana, Helvetica, sans-serif; text-align: left;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Seus produtos são de uso geral e para aplicações específicas (ASSAPs). Os produtos de aplicações específicas não são proprietárias para simples usuários isso por que os produtos de uso geral não são nem para aplicações e nem para desenvolvedor específico, podendo cada um desenvolver o que a imaginação permitir &amp;nbsp;pois os microcontroladores e microprocessadores possuem áreas internas para se gravar o código que quiser.&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: Arial, Verdana, Helvetica, sans-serif; text-align: left;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; A Zilog fornece produtos para as mais variadas aplicações, incluindo aí eletrônica de consumo e aplicações, automação de fábricas processos de transações bancárias, periféricos para computador e automotiva dentre várias outras aplicações.&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: &amp;quot;arial&amp;quot; , &amp;quot;verdana&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;O número total de modelos de semicondutores é muito amplo e somente uma visita ao site &lt;a href=&quot;http://www.zilog.com/&quot;&gt;www.zilog.com&lt;/a&gt; poderia sanar algumas dúvidas e escolher o que mais se&amp;nbsp;adequa&amp;nbsp;as suas necessidades.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: Arial, Verdana, Helvetica, sans-serif; text-align: left;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;O histórico de modelos de produtos é muito rico e permite sempre inovação de acordo com o mercado e na otimização de firmware na programação desses micros. Eles reinventam continuamente os cores dos seus produtos e, recentemente, introduziram a linha Z8 encore e eZ80 Acclaim! &amp;nbsp;de microcontroladores. Essas famílias oferecem uma excelente performance e facilidade de uso e aprendizagem. A empresa se preocupa em fornecer continuamente produtos com um número cada vez maior e melhor de funcionalidades permitindo ao mercado ter um produto cada vez mais do tipo SoC ou &quot;system on chip&quot;. Essas funcionalidades incluem funções analógicas como conversores analógico para digital, funções de comunicação do tipo UARTs, SPI, I2C e Ethernet, além de funções de auto diagnóstico e proteção, como WDT, Brown out detect e power on reset, simultaneamente, a empresa procura desenvolver cada chip com áreas maiores de memórias RAM e memórias de programa para a execução de programas mais complexos e facilidade com interação com códigos feitos em linguagem C.&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh7PHCOmw07pVVy5fm183P4yyfu0e9n3SeFnjWykHcs7C9990sPqrCI6jh8COmcyUyjO1Dtg0UxGtOZUs-2H8GVi-8A0_hIdYyPMi-uclWDiBwa0pkz4qmniC8brjvM85EJpPJudrVlFq8/s1600/z8encore2.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; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh7PHCOmw07pVVy5fm183P4yyfu0e9n3SeFnjWykHcs7C9990sPqrCI6jh8COmcyUyjO1Dtg0UxGtOZUs-2H8GVi-8A0_hIdYyPMi-uclWDiBwa0pkz4qmniC8brjvM85EJpPJudrVlFq8/s1600/z8encore2.jpg&quot; /&gt;&lt;/a&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjZDSXzCFXUPIk4fhmmVoifttMxCZMfJlHNLsa_6Irbem53uehQvX2JlcuWHzzq3U7289cbJS7DRc4mi_bFeJ-oeRZ_f-FhrpQ6LmZamAwwoeJr9H_YOgHS4zFpnFVOV12uANMJMSpAdfo/s1600/z8encore1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjZDSXzCFXUPIk4fhmmVoifttMxCZMfJlHNLsa_6Irbem53uehQvX2JlcuWHzzq3U7289cbJS7DRc4mi_bFeJ-oeRZ_f-FhrpQ6LmZamAwwoeJr9H_YOgHS4zFpnFVOV12uANMJMSpAdfo/s1600/z8encore1.jpg&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgLsXoygEaf0B6F-9mj22MmqJeVKDhFSaTJe7kRSP0hD8w4nWY2YkrXzZgKwoF-Ni1LPaC8fZWom5OL8HTrpPizWxPgzN4Ck2TTLHwnqJzHiJPpKppvltw5OyZFP-UUn4BL1hmdhxNHdbE/s1600/Z8F6423_bd_1319060082.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;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgLsXoygEaf0B6F-9mj22MmqJeVKDhFSaTJe7kRSP0hD8w4nWY2YkrXzZgKwoF-Ni1LPaC8fZWom5OL8HTrpPizWxPgzN4Ck2TTLHwnqJzHiJPpKppvltw5OyZFP-UUn4BL1hmdhxNHdbE/s200/Z8F6423_bd_1319060082.jpg&quot; width=&quot;178&quot; /&gt;&lt;/a&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; A algum tempo a zilog fez um grande investimento na atualização da sua ferramenta de desenvolvimento por software criando o Developer Studio II, um conjunto de programas em uma IDE, &amp;nbsp;com melhores e maiores quantidades de bibliotecas, linkadores, assembladores, debugador e compilador C e tudo isso compatível para a maioria das famílias de microcontroladores e microprocessadores. A Zilog também aceita uma variedade grande de ferramentas de terceiros.&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Seus novos planos e melhoramentos estão, agora, no desenvolvimento de programas e códigos de licença grátis para serem usados em sua linha de microcontroladores focando em protocolos de comunicação como TCP/IP e IrDA. &amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Seu principal software de desenvolvimento é o Developer Studio I e II, conhecidos como ZDSII e podem ser encontrados no site da própria ZILOG e é de uso ilimitado quanto a código e aceita tanto assembler quanto compilador C e programa a maioria dos microcontroladores com um pino apenas, o chamado DBG que aceita, inclusive ser reconhecido por uma porta serial emulada por USB-SERIAL. Nem todos, mas conseguimos gravar o CHIP com um modelo HL-340 que usa um prolific 2303 qualquer.&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhb5XbkRAk9ukzzAUCAOUeOMSGrs_W6nYB_kY_ryvBIRutHEQSpsLsSPMeSQQHAi1ZeBvoheWbefSW3HkLVUGZq_UBpnIaNdEBXaXtbrBQ3tklmREExqZuHHg0-EHsfqbMgsU9VgLEAx34/s1600/ZDSII_1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;289&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhb5XbkRAk9ukzzAUCAOUeOMSGrs_W6nYB_kY_ryvBIRutHEQSpsLsSPMeSQQHAi1ZeBvoheWbefSW3HkLVUGZq_UBpnIaNdEBXaXtbrBQ3tklmREExqZuHHg0-EHsfqbMgsU9VgLEAx34/s400/ZDSII_1.jpg&quot; width=&quot;400&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: left;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Se você gostou desse post e quer mais informação sobre os produtos da Zilog, pode acessar o site deles. Tentaremos postar alguns projetos e assuntos correlatos para que este maravilhoso microcontrolador possa fazer parte do nosso portifólio e assim aumentar o leque de opções para nossos futuros e atuais desenvolvedores de projetos eletrônicos e merecer um país mais desenvolvido e criativo.&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Comentem, é muito importante .... &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: Arial, Verdana, Helvetica, sans-serif;&quot;&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://cleapseletroeletronica.blogspot.com/feeds/6036244842257699697/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://cleapseletroeletronica.blogspot.com/2012/10/zilog-mcu-uma-abordagem.html#comment-form' title='2 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3000668579123608637/posts/default/6036244842257699697'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3000668579123608637/posts/default/6036244842257699697'/><link rel='alternate' type='text/html' href='http://cleapseletroeletronica.blogspot.com/2012/10/zilog-mcu-uma-abordagem.html' title='Zilog MCU uma abordagem ... '/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04117759606587902766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjxIL5-b4s7hA_0o_rJqFk6LkbKIKbsmYkJ-pOBuYJJ8VBLGlUXe_tFqoQmNWsZ_3ZlnAtrTAF5mQm1i_hyphenhyphend7_P-EK7ez_Py61iTMjsdmEOGQs2PCm7W7LSydDcSRSFZMVYbWqWg0uoTJs/s72-c/ziloglogo.jpg" height="72" width="72"/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3000668579123608637.post-2528243141512095515</id><published>2012-10-20T16:04:00.004-07:00</published><updated>2016-02-07T12:01:18.706-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Tutoriais"/><title type='text'>Ferramentas de desenho de PCB - KICAD </title><content type='html'>&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;h2&gt;
&lt;span style=&quot;color: blue; font-size: x-large;&quot;&gt;Ferramentas de desenho de PCB - KICAD&amp;nbsp;&lt;/span&gt;&lt;/h2&gt;
&lt;/div&gt;
Achou interessante e quer ajudar com um valor simbólico ? Clique !&lt;br /&gt;
&lt;form action=&quot;https://www.paypal.com/cgi-bin/webscr&quot; method=&quot;post&quot;&gt;
&lt;input name=&quot;cmd&quot; type=&quot;hidden&quot; value=&quot;_s-xclick&quot; /&gt;
&lt;input name=&quot;hosted_button_id&quot; type=&quot;hidden&quot; value=&quot;QEYQ5M7NRZVVG&quot; /&gt;
&lt;input alt=&quot;PayPal - A maneira mais fácil e segura de efetuar pagamentos online!&quot; border=&quot;0&quot; name=&quot;submit&quot; src=&quot;https://www.paypalobjects.com/pt_BR/BR/i/btn/btn_donateCC_LG.gif&quot; type=&quot;image&quot; /&gt;
&lt;img alt=&quot;&quot; border=&quot;0&quot; height=&quot;1&quot; src=&quot;https://www.paypalobjects.com/pt_BR/i/scr/pixel.gif&quot; width=&quot;1&quot; /&gt;
&lt;/form&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0zySbOteCdedJ_EOntFqa_Tt4W66cBv__2kErtqwTFz5BjhROa38U0Anvi0N9zKU_R8JAmjkFyk7dPBpsQ0cBbQDSW-6tYnd-c0nenEB-beRqLJP68PYm-ib9rH1JCkewJqq2oB6QKjc/s1600/kicadd22.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;232&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0zySbOteCdedJ_EOntFqa_Tt4W66cBv__2kErtqwTFz5BjhROa38U0Anvi0N9zKU_R8JAmjkFyk7dPBpsQ0cBbQDSW-6tYnd-c0nenEB-beRqLJP68PYm-ib9rH1JCkewJqq2oB6QKjc/s320/kicadd22.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;

&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhp9HWzsr77FvxCpgtsWY4KcFhCZ6Qd9cFGYYWMcuZonkYX9xpYBapQIpsWdmTexJfNwqMJgp__nQ_OTW8jVQ-uvtJt67qAto6XhHEv9iGjdMZhaiMHdomTVbpGljiEf_QnTq4zvaF50ic/s1600/3d_to_power.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;188&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhp9HWzsr77FvxCpgtsWY4KcFhCZ6Qd9cFGYYWMcuZonkYX9xpYBapQIpsWdmTexJfNwqMJgp__nQ_OTW8jVQ-uvtJt67qAto6XhHEv9iGjdMZhaiMHdomTVbpGljiEf_QnTq4zvaF50ic/s320/3d_to_power.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Olá nobres leitores, gostaria de comentar sobre um programa opensource para desenho de placa de circuito impresso de nome KICAD que pode ser baixado em &lt;a href=&quot;http://www.kicad-pcb.org/&quot;&gt;www.kicad-pcb.org&lt;/a&gt; e é um programa que roda em Lnux, windows e MAC e que vem crescendo muito em virtude do acréscimo de novos desenvolvedores ao redor do mundo que o faz um software potente para trabalhos industriais e profissionais. Até a presente data não consta a inclusão de simuladores mas já existem grupos de usuários que já colocaram scripts SPICE nele para efetuarem algumas simulações, uma glooglada deve levar a algum grupo de desenvolvedores com outras funcionalidades e plugins, além de bibliotecas feitas por usuários.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; O KICAD é hoje um programa de desenho de placas de circuito impresso e esquemários &amp;nbsp;de eletrônica e elétricos e serve para uso eletrônico e de circuitos elétricos, sendo útil para eletricistas e eletrônicos.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Kica gera arquivos gerber, postcript e vetoriais do tipo SVG. Seu aprendizado é muito rápido e a criação de desenho muito eficiente, permitindo que o programa seja de acesso rápido para escolas técnicas e universidades com cursos de sistemas e engenharias elétricas e eletrônicas.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Um coadjuvante do KICAD para a criação de peças em 3D é o &lt;a href=&quot;http://www.wings3d.org/&quot;&gt;www.wings3d.org&lt;/a&gt; , um programa de modelagem 3D opensource e o escolhido para gerar arquivos .wrl que o kicad aceita. &amp;nbsp;Existe a possibilidade de termos como programa 3D o &lt;a href=&quot;http://www.blender.org/&quot;&gt;www.blender.org&lt;/a&gt; &amp;nbsp;que é mais completo e de difícil aprendizado e que pode dar maior realismo para as peças criadas.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjbUMU12-6JxPrcOGLJvXqaREPLSGPyKVK4msALxfOYnTS4ROAj4Xwu7s__7157XtgUsb3iWOrmdcIuUyACXRL2heJxr9LEPxQlnEnRsHPQ8_fKcc7KME1QdVk_N4M6tGeAqCQ5-CgKB4w/s1600/kicad_pcbnew.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;433&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjbUMU12-6JxPrcOGLJvXqaREPLSGPyKVK4msALxfOYnTS4ROAj4Xwu7s__7157XtgUsb3iWOrmdcIuUyACXRL2heJxr9LEPxQlnEnRsHPQ8_fKcc7KME1QdVk_N4M6tGeAqCQ5-CgKB4w/s640/kicad_pcbnew.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Desenhar com o kicad é muito fácil e rápido. Brevemente tentarei postar um tutorial bem básico de Kicad e transferência térmica para que o leitor possa criar suas plaquinhas &amp;nbsp;e assim fazer alguns projetos em eletrônica.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; No mais é interessante conhecer este programa pela potencialidade dele que permite fazer projetos profissionais com qualidade industrial. Qualquer meio capaz de trazer inovações e ser gratuito, ou mesmo baixo custo, é importante para alavancar a profissão ou o trabalho de quem dependa dessas ferramentas.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; A muito tempo o programa favorito dos projetistas era o EAGLE pcb, gratuito com limitações de tamanho das placas e até dois layers. Então surge o KICAD com limitações profissionais de programa e após anos de aperfeiçoamento, se tornou uma ferramenta de grandes qualidades e potencialidades.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Se você gostou e quer dar sua opinião ou tem dúvidas sobre o programa e deseja maiores informações, fique a vontade para perguntar. &lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;color: blue; font-size: x-large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://cleapseletroeletronica.blogspot.com/feeds/2528243141512095515/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://cleapseletroeletronica.blogspot.com/2012/10/ferramentas-de-desenho-de-pcb-kicad.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3000668579123608637/posts/default/2528243141512095515'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3000668579123608637/posts/default/2528243141512095515'/><link rel='alternate' type='text/html' href='http://cleapseletroeletronica.blogspot.com/2012/10/ferramentas-de-desenho-de-pcb-kicad.html' title='Ferramentas de desenho de PCB - KICAD '/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04117759606587902766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0zySbOteCdedJ_EOntFqa_Tt4W66cBv__2kErtqwTFz5BjhROa38U0Anvi0N9zKU_R8JAmjkFyk7dPBpsQ0cBbQDSW-6tYnd-c0nenEB-beRqLJP68PYm-ib9rH1JCkewJqq2oB6QKjc/s72-c/kicadd22.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3000668579123608637.post-3238123723601229748</id><published>2012-10-16T16:27:00.002-07:00</published><updated>2016-02-03T05:23:32.028-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Tutoriais"/><title type='text'>LaunchPad MSP430G2 no UBUNTU</title><content type='html'>&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;u&gt;Rodando a Launchpad da Texas instruments no Linux UBUNTU&amp;nbsp;&lt;/u&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/span&gt;&lt;/b&gt;Achou interessante e quer ajudar com um valor simbólico ? Clique !&lt;br /&gt;
&lt;form action=&quot;https://www.paypal.com/cgi-bin/webscr&quot; method=&quot;post&quot;&gt;
&lt;input name=&quot;cmd&quot; type=&quot;hidden&quot; value=&quot;_s-xclick&quot; /&gt;
&lt;input name=&quot;hosted_button_id&quot; type=&quot;hidden&quot; value=&quot;QEYQ5M7NRZVVG&quot; /&gt;
&lt;input alt=&quot;PayPal - A maneira mais fácil e segura de efetuar pagamentos online!&quot; border=&quot;0&quot; name=&quot;submit&quot; src=&quot;https://www.paypalobjects.com/pt_BR/BR/i/btn/btn_donateCC_LG.gif&quot; type=&quot;image&quot; /&gt;
&lt;img alt=&quot;&quot; border=&quot;0&quot; height=&quot;1&quot; src=&quot;https://www.paypalobjects.com/pt_BR/i/scr/pixel.gif&quot; width=&quot;1&quot; /&gt;
&lt;/form&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
 bb_bid = &quot;1674044&quot;;
 bb_lang = &quot;pt-BR&quot;;
 bb_keywords = &quot;GLCD,microcontrolador, TI, RENESAS, zilog,microchip,PLC,elevador, CD, programação,matemática,IC,LCD.&quot;;
 bb_name = &quot;custom&quot;;
 bb_limit = &quot;8&quot;;
 bb_format = &quot;bbb&quot;;
&lt;/script&gt;
&lt;script src=&quot;http://static.boo-box.com/javascripts/embed.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;



&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhl1nc_e5ELTOd8tY9-nLRIlGTbvmZVk5aDAOr_W33a4zQH9b2cB0TCuUdTB3gqXLI0j8f4kA7Yb7-ChOa-J-fCCNWz2gXwtfBv41ab4KP_RKoUissf_h2ZzFxmrDxCFfMumTTVDZMgdc8/s1600/launchpad1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhl1nc_e5ELTOd8tY9-nLRIlGTbvmZVk5aDAOr_W33a4zQH9b2cB0TCuUdTB3gqXLI0j8f4kA7Yb7-ChOa-J-fCCNWz2gXwtfBv41ab4KP_RKoUissf_h2ZzFxmrDxCFfMumTTVDZMgdc8/s1600/launchpad1.jpg&quot; /&gt;&lt;/a&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEipYn6PGhfycQXFu4GIYMq-Q0B6G8AG9yOORUxE4RYXj6T8L6n8P-BZVy1mmoG_Qc4Q_Ow7D5FUgWtiUlHzOH27281Otf0YoMUlgPSDqb6HKGuki7lGBoUI0a9rNNoUhoJVxD10SU_vZCg/s1600/Energia.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;120&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEipYn6PGhfycQXFu4GIYMq-Q0B6G8AG9yOORUxE4RYXj6T8L6n8P-BZVy1mmoG_Qc4Q_Ow7D5FUgWtiUlHzOH27281Otf0YoMUlgPSDqb6HKGuki7lGBoUI0a9rNNoUhoJVxD10SU_vZCg/s320/Energia.png&quot; width=&quot;300&quot; /&gt;&lt;/a&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Para quem usa linux para rodar esses programas que usam qualquer dispositivo plugado na porta USB como a nossa launchpad, deve ficar atento quando não tiver nada funcionando ao instalar o programa e achar ser algo anormal e difícil de resolver. Como todos os usuários de Linux deve saber, as portas do computador são protegidas e só liberadas pelo usuário segundo regras que este define e que para muitos usuários é complicado de definir. Motivo pelo qual o LINUX é um sistema operacional destinado a pessoas que querem desenvolver seja lá como for e o que for pois é destinado a pessoas que querem uma liberdade de deixar seus trabalhos dos seus jeitos e é deixado de lado de imediato por pessoas ainda viciadas no windows que é só ligar e usar e que já vem com várias portas e até programas abertos para qualquer invasão ou inclusão de vírus.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Bom, com relação a nossa plaquinha, vamos começar ensinando como habilitar a porta USB para que o ENERGIA possa ver a launchpad e, assim, gravar o programa que você deseja.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Se você teve o seguinte erro ao iniciar um projeto no ENERGIA e ficou frustrado, não se preocupe, tem solução :&lt;br /&gt;
&lt;span style=&quot;text-align: center;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;text-align: center;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;background-color: lime;&quot;&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: lime;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;Trying to open interface 1 on 033&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;background-color: lime;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;rf2500: warning: can&#39;t detach kernel driver: Operation not permitted&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;background-color: lime;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;rf2500: can&#39;t claim interface: Operation not permitted&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;background-color: lime;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;rf2500: failed to open RF2500 device&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Primeiro vamos abrir o terminal. Acho que todos sabem abrir o terminal, se não, basta ir no menu do UBUNTU e procurar por acessórios -&amp;gt; Terminal que deve parecer com o que se vê a seguir :&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&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;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjjXxbOwfGkT8G9ebJqQGLpRGgEasoRBfzaLkLbt8ssYAj_Qjyth2s8WhWJw2VUeZBrXhqm75fcQTZ5XbHaodkUnbI9IRMBMLnnNZWZTUN8G27zeIXOE9BiDBtE-swIlolQLXEJcHvP52E/s1600/terminal.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;285&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjjXxbOwfGkT8G9ebJqQGLpRGgEasoRBfzaLkLbt8ssYAj_Qjyth2s8WhWJw2VUeZBrXhqm75fcQTZ5XbHaodkUnbI9IRMBMLnnNZWZTUN8G27zeIXOE9BiDBtE-swIlolQLXEJcHvP52E/s400/terminal.jpg&quot; width=&quot;400&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: left;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; A partir daqui vamos falar de terminal da forma como se apresenta acima, ok ?&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Se observar, sempre que falarmos em entrarem modo root ou não, sempre acrescente a palavra &#39;sudo&#39; para poder entrar com a senha do computador e poder trabalhar em modo administrador e, assim, proceder com o projeto.&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Primeiro conecte sua launchpad na porta USB disponível e no terminal digite &#39;&lt;span style=&quot;background-color: yellow;&quot;&gt;lsusb&#39;&lt;/span&gt; e teremos o Vendor ID e product ID de quem estiver conectado. Se somente a launchpad for a felizarda, aparecerá a relação de dispositivos.&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; No caso aqui no computador,&amp;nbsp;temos VID e PID como sendo 0451:f432 e usaremos essa informação para habilitar a launchpad e assim ela poder funcionar perfeitamente.&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;background-color: yellow;&quot;&gt;Bus 005 Device 005: ID 0451:f432 Texas Instruments, Inc. eZ430 Development Tool&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;background-color: yellow;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Agora, digitando no terminal &amp;nbsp;:&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: yellow;&quot;&gt;sudo nano /etc/udev/rules.d/46-TI_launchpad.rules &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Abriremos o nano, um programa de configuração e criação de regras de funcionamento de muitas funcionalidades do LINUX Ubuntu e Mint e digitamos o que se segue :&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;background-color: yellow;&quot;&gt;ATTRS{idVendor}==0451,&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;background-color: yellow;&quot;&gt;ATTRS{idProduct}==f432,&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;background-color: yellow;&quot;&gt;MODE=0660,&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;background-color: yellow;&quot;&gt;GROUP=plugdev &amp;nbsp; &lt;/span&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;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Para salvar e sair basta apertar CTRL-O e CTRL-X e novamente entramos no terminal e digitamos &lt;span style=&quot;background-color: yellow;&quot;&gt;&#39;sudo restart udev&#39;&lt;/span&gt; saímos do terminal e com a launchpad plugada abrimos o energia na pasta onde este foi baixado e descompactado e instalado. Diferentemente de programas windows, para abrir o ENERGIA clicamos no script e escolhemos executar, a partir de então sua launchpad pode ser usada para gravar seus programas pŕediletos.&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Vamos abrir o energia e digitar o seguinte código e salvar, depois gravar e ver os efeitos nos dois leds da placa :&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;background-color: yellow;&quot;&gt;*&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;background-color: yellow;&quot;&gt;&amp;nbsp;LED pisca&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;background-color: yellow;&quot;&gt;&amp;nbsp;Liga e desliga os leds conectados em P1.0 e P1.6 por aprocimadamente um segundo repetidamente.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;background-color: yellow;&quot;&gt;&amp;nbsp;Este trecho de código é de uso público .&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;background-color: yellow;&quot;&gt;&amp;nbsp;*/&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;background-color: yellow;&quot;&gt;void setup() { &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;background-color: yellow;&quot;&gt;&amp;nbsp; // Inicializa os pinos digitais como saída.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;background-color: yellow;&quot;&gt;&amp;nbsp; // Pino 2 e 14 possuem leds conectados :&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;background-color: yellow;&quot;&gt;&amp;nbsp; pinMode(14, OUTPUT); &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;background-color: yellow;&quot;&gt;&amp;nbsp; pinMode(2, OUTPUT); &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;background-color: yellow;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;background-color: yellow;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;background-color: yellow;&quot;&gt;void loop() {&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;background-color: yellow;&quot;&gt;&amp;nbsp; digitalWrite(14, HIGH); &amp;nbsp; // Led ligado&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;background-color: yellow;&quot;&gt;&amp;nbsp; delay(1000); &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// espera 1 seg.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;background-color: yellow;&quot;&gt;&amp;nbsp; digitalWrite(14, LOW); &amp;nbsp; &amp;nbsp;// Led desligado&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;background-color: yellow;&quot;&gt;&amp;nbsp; delay(1000); &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// Espera 1 segundo.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;background-color: yellow;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;background-color: yellow;&quot;&gt;&amp;nbsp; digitalWrite(2, HIGH); &amp;nbsp; // Led ligado&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;background-color: yellow;&quot;&gt;&amp;nbsp; delay(1000); &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// Espera 1 segundo&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;background-color: yellow;&quot;&gt;&amp;nbsp; digitalWrite(2, LOW); &amp;nbsp; &amp;nbsp;// led desligado&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;background-color: yellow;&quot;&gt;&amp;nbsp; delay(1000); &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// espera 1 seg.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;background-color: yellow;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Depois de digitar o código acima no programa energia aberto, basta pressionar CTRL+U e em seguida ver os leds piscando. Com isso, acho que foi criado um modo específico de ajudar quem é usuário de arduino e acabou de conhecer a launchpad da Texas instruments e quer usar dentro do mesmo conceito do arduino só que em LINUXm, está aí a dica.&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Para maiores informações e onde eu consegui resolver a pendenga da Launchpad não funcionar, eu li e reli este blog magnífico que é o hackaday no link :&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;a href=&quot;http://hackaday.com/2010/08/11/how-to-launchpad-programming-with-linux/&quot;&gt;http://hackaday.com/2010/08/11/how-to-launchpad-programming-with-linux/&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Neste link acima existem infinitas outras coisas de uso geral e útil, então procurem por mais soluções lá que tem repleto.&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Muito obrigado e até a próxima....&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://cleapseletroeletronica.blogspot.com/feeds/3238123723601229748/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://cleapseletroeletronica.blogspot.com/2012/10/launchpad-msp430g2-no-ubuntu.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3000668579123608637/posts/default/3238123723601229748'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3000668579123608637/posts/default/3238123723601229748'/><link rel='alternate' type='text/html' href='http://cleapseletroeletronica.blogspot.com/2012/10/launchpad-msp430g2-no-ubuntu.html' title='LaunchPad MSP430G2 no UBUNTU'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04117759606587902766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhl1nc_e5ELTOd8tY9-nLRIlGTbvmZVk5aDAOr_W33a4zQH9b2cB0TCuUdTB3gqXLI0j8f4kA7Yb7-ChOa-J-fCCNWz2gXwtfBv41ab4KP_RKoUissf_h2ZzFxmrDxCFfMumTTVDZMgdc8/s72-c/launchpad1.jpg" height="72" width="72"/><thr:total>0</thr:total></entry></feed>