<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Jost Dayan</title>
	<atom:link href="http://jostdayan.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://jostdayan.wordpress.com</link>
	<description>Meu espaço</description>
	<lastBuildDate>Sat, 28 Nov 2009 23:55:50 +0000</lastBuildDate>
	<language>pt-br</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='jostdayan.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Jost Dayan</title>
		<link>http://jostdayan.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://jostdayan.wordpress.com/osd.xml" title="Jost Dayan" />
	<atom:link rel='hub' href='http://jostdayan.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Meu lado fot&#243;grafo.</title>
		<link>http://jostdayan.wordpress.com/2008/12/30/meu-lado-fotgrafo/</link>
		<comments>http://jostdayan.wordpress.com/2008/12/30/meu-lado-fotgrafo/#comments</comments>
		<pubDate>Tue, 30 Dec 2008 20:26:26 +0000</pubDate>
		<dc:creator>jostdayan</dc:creator>
				<category><![CDATA[Geral]]></category>

		<guid isPermaLink="false">http://jostdayan.wordpress.com/2008/12/30/meu-lado-fotgrafo/</guid>
		<description><![CDATA[Algumas fotos. Maquina utilizada: Sony W5 Tempo de abertura: 30” Local: Varanda da minha casa &#8211; Varginha &#8211; MG Maquina utilizada: Sony W5 Tempo de abertura: 10” e 20” Local: Avenida Paulista &#8211; São Paulo – SP &#160;&#160; Local: Parque do Ibirapuera – São Paulo<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jostdayan.wordpress.com&amp;blog=5017364&amp;post=141&amp;subd=jostdayan&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Algumas fotos.</p>
<p> <span id="more-141"></span>
<p>Maquina utilizada: Sony W5     <br />Tempo de abertura: 30”     <br />Local: Varanda da minha casa &#8211; Varginha &#8211; MG</p>
<p><a href="http://jostdayan.files.wordpress.com/2008/12/dsc08269.jpg"><img title="DSC08269" style="display:block;float:none;margin-left:auto;margin-right:auto;border-width:0;" height="200" alt="DSC08269" src="http://jostdayan.files.wordpress.com/2008/12/dsc08269-thumb.jpg?w=260&#038;h=200" width="260" border="0" /></a> <a href="http://jostdayan.files.wordpress.com/2008/12/dsc08275.jpg"><img title="DSC08275" style="display:block;float:none;margin-left:auto;margin-right:auto;border-width:0;" height="200" alt="DSC08275" src="http://jostdayan.files.wordpress.com/2008/12/dsc08275-thumb.jpg?w=260&#038;h=200" width="260" border="0" /></a><a href="http://jostdayan.files.wordpress.com/2008/12/dsc08267.jpg"><img title="DSC08267" style="display:block;float:none;margin-left:auto;margin-right:auto;border-width:0;" height="200" alt="DSC08267" src="http://jostdayan.files.wordpress.com/2008/12/dsc08267-thumb.jpg?w=260&#038;h=200" width="260" border="0" /></a> </p>
</p>
<p>Maquina utilizada: Sony W5    <br />Tempo de abertura: 10” e 20”     <br />Local: Avenida Paulista &#8211; São Paulo – SP</p>
<p align="center"><a href="http://jostdayan.files.wordpress.com/2008/12/dsc08081.jpg"><img title="DSC08081" style="display:block;float:none;margin-left:auto;margin-right:auto;border-width:0;" height="200" alt="DSC08081" src="http://jostdayan.files.wordpress.com/2008/12/dsc08081-thumb.jpg?w=260&#038;h=200" width="260" border="0" /></a> <a href="http://jostdayan.files.wordpress.com/2008/12/dsc08079.jpg"><img title="DSC08079" style="display:block;float:none;margin-left:auto;margin-right:auto;border-width:0;" height="200" alt="DSC08079" src="http://jostdayan.files.wordpress.com/2008/12/dsc08079-thumb.jpg?w=260&#038;h=200" width="260" border="0" /></a> <a href="http://jostdayan.files.wordpress.com/2008/12/dsc08083.jpg"><img title="DSC08083" style="display:block;float:none;margin-left:auto;margin-right:auto;border-width:0;" height="200" alt="DSC08083" src="http://jostdayan.files.wordpress.com/2008/12/dsc08083-thumb.jpg?w=260&#038;h=200" width="260" border="0" /></a> <a href="http://jostdayan.files.wordpress.com/2008/12/dsc08091.jpg"><img title="DSC08091" style="display:block;float:none;margin-left:auto;margin-right:auto;border-width:0;" height="200" alt="DSC08091" src="http://jostdayan.files.wordpress.com/2008/12/dsc08091-thumb.jpg?w=260&#038;h=200" width="260" border="0" /></a>&#160;<a href="http://jostdayan.files.wordpress.com/2008/12/dsc08093.jpg"><img title="DSC08093" style="display:block;float:none;margin-left:auto;margin-right:auto;border-width:0;" height="200" alt="DSC08093" src="http://jostdayan.files.wordpress.com/2008/12/dsc08093-thumb.jpg?w=260&#038;h=200" width="260" border="0" /></a>&#160; <br />Local: Parque do Ibirapuera – São Paulo     </p>
<p><a href="http://jostdayan.files.wordpress.com/2008/12/dsc08070.jpg"><img title="DSC08070" style="display:block;float:none;margin-left:auto;margin-right:auto;border-width:0;" height="200" alt="DSC08070" src="http://jostdayan.files.wordpress.com/2008/12/dsc08070-thumb.jpg?w=260&#038;h=200" width="260" border="0" /></a> <a href="http://jostdayan.files.wordpress.com/2008/12/dsc08073.jpg"><img title="DSC08073" style="display:block;float:none;margin-left:auto;margin-right:auto;border-width:0;" height="200" alt="DSC08073" src="http://jostdayan.files.wordpress.com/2008/12/dsc08073-thumb.jpg?w=260&#038;h=200" width="260" border="0" /></a> <a href="http://jostdayan.files.wordpress.com/2008/12/dsc08072.jpg"><img title="DSC08072" style="display:block;float:none;margin-left:auto;margin-right:auto;border-width:0;" height="200" alt="DSC08072" src="http://jostdayan.files.wordpress.com/2008/12/dsc08072-thumb.jpg?w=260&#038;h=200" width="260" border="0" /></a> <a href="http://jostdayan.files.wordpress.com/2008/12/dsc08074.jpg"><img title="DSC08074" style="display:block;float:none;margin-left:auto;margin-right:auto;border-width:0;" height="200" alt="DSC08074" src="http://jostdayan.files.wordpress.com/2008/12/dsc08074-thumb.jpg?w=260&#038;h=200" width="260" border="0" /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jostdayan.wordpress.com/141/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jostdayan.wordpress.com/141/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jostdayan.wordpress.com/141/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jostdayan.wordpress.com/141/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jostdayan.wordpress.com/141/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jostdayan.wordpress.com/141/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jostdayan.wordpress.com/141/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jostdayan.wordpress.com/141/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jostdayan.wordpress.com/141/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jostdayan.wordpress.com/141/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jostdayan.wordpress.com/141/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jostdayan.wordpress.com/141/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jostdayan.wordpress.com/141/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jostdayan.wordpress.com/141/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jostdayan.wordpress.com&amp;blog=5017364&amp;post=141&amp;subd=jostdayan&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jostdayan.wordpress.com/2008/12/30/meu-lado-fotgrafo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/27db1e8caa7137b58a6c080898547402?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Jost Dayan</media:title>
		</media:content>

		<media:content url="http://jostdayan.files.wordpress.com/2008/12/dsc08269-thumb.jpg" medium="image">
			<media:title type="html">DSC08269</media:title>
		</media:content>

		<media:content url="http://jostdayan.files.wordpress.com/2008/12/dsc08275-thumb.jpg" medium="image">
			<media:title type="html">DSC08275</media:title>
		</media:content>

		<media:content url="http://jostdayan.files.wordpress.com/2008/12/dsc08267-thumb.jpg" medium="image">
			<media:title type="html">DSC08267</media:title>
		</media:content>

		<media:content url="http://jostdayan.files.wordpress.com/2008/12/dsc08081-thumb.jpg" medium="image">
			<media:title type="html">DSC08081</media:title>
		</media:content>

		<media:content url="http://jostdayan.files.wordpress.com/2008/12/dsc08079-thumb.jpg" medium="image">
			<media:title type="html">DSC08079</media:title>
		</media:content>

		<media:content url="http://jostdayan.files.wordpress.com/2008/12/dsc08083-thumb.jpg" medium="image">
			<media:title type="html">DSC08083</media:title>
		</media:content>

		<media:content url="http://jostdayan.files.wordpress.com/2008/12/dsc08091-thumb.jpg" medium="image">
			<media:title type="html">DSC08091</media:title>
		</media:content>

		<media:content url="http://jostdayan.files.wordpress.com/2008/12/dsc08093-thumb.jpg" medium="image">
			<media:title type="html">DSC08093</media:title>
		</media:content>

		<media:content url="http://jostdayan.files.wordpress.com/2008/12/dsc08070-thumb.jpg" medium="image">
			<media:title type="html">DSC08070</media:title>
		</media:content>

		<media:content url="http://jostdayan.files.wordpress.com/2008/12/dsc08073-thumb.jpg" medium="image">
			<media:title type="html">DSC08073</media:title>
		</media:content>

		<media:content url="http://jostdayan.files.wordpress.com/2008/12/dsc08072-thumb.jpg" medium="image">
			<media:title type="html">DSC08072</media:title>
		</media:content>

		<media:content url="http://jostdayan.files.wordpress.com/2008/12/dsc08074-thumb.jpg" medium="image">
			<media:title type="html">DSC08074</media:title>
		</media:content>
	</item>
		<item>
		<title>Tac&#244;metro / RPM 2 &#8211; Projeto Jos&#233; Pino</title>
		<link>http://jostdayan.wordpress.com/2008/12/18/tacmetro-rpm-2-projeto-jos-pino/</link>
		<comments>http://jostdayan.wordpress.com/2008/12/18/tacmetro-rpm-2-projeto-jos-pino/#comments</comments>
		<pubDate>Thu, 18 Dec 2008 22:44:55 +0000</pubDate>
		<dc:creator>jostdayan</dc:creator>
				<category><![CDATA[Eletrônica]]></category>

		<guid isPermaLink="false">http://jostdayan.wordpress.com/2008/12/18/tacmetro-rpm-2-projeto-jos-pino/</guid>
		<description><![CDATA[Está página é apenas uma tradução da página original Esta é uma versão melhorada do Tacômetro criado especialmente para medir até a 9999 RPM. Utiliza um PIC 16F628. (04/24/2006) PIC: 16F628 CONFIG: XT OSC, PWRT ON, OFF MCRL, BODEN OFF, WD OFF. Como muita gente estava procurando uma versão do taquímetro para medir até 9999 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jostdayan.wordpress.com&amp;blog=5017364&amp;post=114&amp;subd=jostdayan&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Está página é apenas uma tradução da <a href="http://www.josepino.com/pic_projects/?tachometer2" target="_blank">página original</a></p>
<p>Esta é uma versão melhorada do Tacômetro criado especialmente para medir até a 9999 RPM.</p>
</p>
<p> <span id="more-114"></span>
</p>
<p>Utiliza um PIC 16F628. (04/24/2006)</p>
<p>PIC: 16F628    <br />CONFIG: XT OSC, PWRT ON, OFF MCRL, BODEN OFF, WD OFF.</p>
<p>Como muita gente estava procurando uma versão do taquímetro para medir até 9999 rotações por minuto (RPM), decidi criar uma versão melhorada especialmente utilizados para automóveis ou qualquer outra máquina que não passe mais de 9999 RPM.</p>
<p>A versão original foi criado para medir o RPM de motores com alta precisão com um intervalo entre 60 a 99.990 RPM.</p>
<p>Esta versão melhorada medi entre 200 a 9999 RPM com 0,3% de precisão. Eu não recomendo usar esse projeto para aplicações críticas.</p>
<p><a href="http://jostdayan.files.wordpress.com/2008/12/jp6283ds1.gif"><img title="JP6283DS" style="display:inline;border-width:0;" height="166" alt="JP6283DS" src="http://jostdayan.files.wordpress.com/2008/12/jp6283ds-thumb1.gif?w=260&#038;h=166" width="260" border="0" /></a>&#160;</p>
<p><strong>Pino 3:</strong> Define o tipo de Exibição: Ânodo ou cátodo comum. Ligue este pino no GROUND (terra) se você estiver usando um Display de 7 segmentos com cátodo comum. Para usar ânodo comum ligue no VCC (positivo).     <br /><strong>Pino 4:</strong> é o sinal de entrada, você pode utilizar sensores ópticos (Fototransistors, fotoresistors, etc), sensores magnéticos (efeito Hall, reed switch, etc) ou utilizar um interruptor.</p>
<p>Infelizmente, não tenho nenhuma idéia de como ligar este circuito para funcionar em um veículo.</p>
<p><strong><font color="#ff0000">Não ligue qualquer sinal diretamente ao PINO 4.</font></strong> Alta tensão pode danificar o PIC. Se o sinal de entrada é mais de 5 Volts, Use um driver como TTL, CMOS, ou Amp Operacional ou Transístores.</p>
<p>Faça o download do código HEX <a href="http://www.josepino.com/pic_projects/tachometer/tach-2.hex" target="_blank">AQUI</a>, Botão direito e &quot;salvar como &#8230;&quot;</p>
<p><a href="http://jostdayan.files.wordpress.com/2008/12/esquema2.jpg"><img title="esquema2" style="display:inline;border-width:0;" height="154" alt="esquema2" src="http://jostdayan.files.wordpress.com/2008/12/esquema2-thumb.jpg?w=260&#038;h=154" width="260" border="0" /></a></p>
<p>Aqui está uma foto do protótipo durante o ensaio e calibração, o sinal de entrada foi de 3600 RPM. Observe que o display vermelho exibe melhor os digitos do que os verdes ou amarelos.</p>
<p><a href="http://jostdayan.files.wordpress.com/2008/12/fotos.jpg"><img title="fotos" style="display:inline;border-width:0;" height="110" alt="fotos" src="http://jostdayan.files.wordpress.com/2008/12/fotos-thumb.jpg?w=260&#038;h=110" width="260" border="0" /></a></p>
<p>Projeto dos usuários:</p>
<p><a href="http://jostdayan.files.wordpress.com/2008/12/p9050327sh4.jpg"><img title="p9050327sh4" style="display:inline;border-width:0;" height="200" alt="p9050327sh4" src="http://jostdayan.files.wordpress.com/2008/12/p9050327sh4-thumb.jpg?w=260&#038;h=200" width="260" border="0" /></a> <a href="http://jostdayan.files.wordpress.com/2008/12/p9050333it7.jpg"><img title="p9050333it7" style="display:inline;border-width:0;" height="200" alt="p9050333it7" src="http://jostdayan.files.wordpress.com/2008/12/p9050333it7-thumb.jpg?w=260&#038;h=200" width="260" border="0" /></a></p>
<p>Ligação do Tacômetro em motos: <a href="http://www.josepino.com/pic_projects/?tachometerx" target="_blank">Click aqui</a></p>
<p>Você quer saber como funciona o tacômetro? Segue o algoritmo.</p>
<blockquote><pre>; Tachometer algorithm / Algoritmo de tacometro
; www.josepino.com&#160;&#160;&#160;&#160; ; created:&#160; October 3, 2003
; Last version: April 22, 2005
; Intended for 16F628 - 10 Mhz


variable byte cero&#160;&#160; at 0x46 ; zero
variable byte uno&#160;&#160;&#160; at 0x47 ; one
variable byte dos&#160;&#160;&#160; at 0x48 ; two
variable byte tres&#160;&#160; at 0x49 ; three
variable byte cuatro at 0x4A ; four
variable byte cinco&#160; at 0x4B ; five&#160; variable byte seis&#160;&#160; at 0x4C ; six
variable byte siete&#160; at 0x4D ; seven
variable byte ocho&#160;&#160; at 0x4E ; eight
variable byte nueve&#160; at 0x4F ; nine
variable byte blanco&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ; blank



delay 100ms
disable comparators&#160;&#160;&#160; ; 628 tiene comparadores



port B = all output
port A = all output
pin a4 = input&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ; used to detect display type / Tipo de display
pin a5 = input&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ; input pulses / Pulsos de entrada



if a4 then&#160;&#160;&#160; blanco = 0b_1111_1111&#160;&#160; ; If display is Common cathode,&#160;&#160;&#160; cero&#160;&#160; = 0b_1100_0000&#160;&#160; ; define the numbers for common&#160;&#160;&#160; uno&#160;&#160;&#160; = 0b_1111_1001&#160;&#160; ; cathode&#160;&#160;&#160; dos&#160;&#160;&#160; = 0b_1010_0100&#160;&#160;&#160;&#160; tres&#160;&#160; = 0b_1011_0000&#160;&#160;&#160;&#160; cuatro = 0b_1001_1001&#160;&#160; ; define los numeros&#160;&#160;&#160; cinco&#160; = 0b_1001_0010&#160;&#160; ; cuando sean para&#160;&#160;&#160; seis&#160;&#160; = 0b_1000_0010&#160;&#160; ; catodo comun&#160;&#160;&#160; siete&#160; = 0b_1101_1000&#160;&#160;&#160;&#160; ocho&#160;&#160; = 0b_1000_0000&#160;&#160;&#160;&#160; nueve&#160; = 0b_1001_0000&#160; else&#160;&#160;&#160; blanco = 0b_0000_0000&#160;&#160; ; Define the numbers for common&#160;&#160;&#160; cero&#160;&#160; = 0b_0011_1111&#160;&#160; ; anode&#160;&#160;&#160; uno&#160;&#160;&#160; = 0b_0000_0110&#160;&#160;&#160;&#160; dos&#160;&#160;&#160; = 0b_0101_1011&#160;&#160;&#160;&#160; tres&#160;&#160; = 0b_0100_1111&#160;&#160; ; define los numeros para&#160;&#160;&#160;&#160; cuatro = 0b_0110_0110&#160;&#160; ; el display de anodo comun&#160;&#160;&#160; cinco&#160; = 0b_0110_1101&#160;&#160;&#160;&#160; seis&#160;&#160; = 0b_0111_1101&#160;&#160;&#160;&#160; siete&#160; = 0b_0010_0111&#160;&#160;&#160;&#160; ocho&#160;&#160; = 0b_0111_1111&#160;&#160;&#160;&#160; nueve&#160; = 0b_0110_1111&#160; end if



; A routine test HERE
; Se recomienda una rutina de TEST aqui.



; Define sample rate, display every 500 ms
; Define cada cuando calcula las RPM
variable byte bres_hi&#160;&#160;&#160;&#160; = 0x09&#160; ; hi byte of our 24bit variable
variable byte bres_mid&#160;&#160;&#160; = 0x89&#160; ; mid byte
variable byte bres_lo&#160;&#160;&#160;&#160; = 0x68&#160; ; lo byte



variable byte bandera&#160;&#160;&#160;&#160; = 0&#160;&#160;&#160;&#160; ; a flag
variable byte bandera1&#160;&#160;&#160; = 0&#160;&#160;&#160;&#160; ; another &quot;flag&quot;
variable byte temporal&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ; temporary variable
variable byte contador&#160;&#160;&#160; = 0&#160;&#160;&#160;&#160; ; Counter
variable byte decenas&#160;&#160;&#160;&#160; = 0&#160;&#160;&#160;&#160; ; 10's
variable byte centenas&#160;&#160;&#160; = 0&#160;&#160;&#160;&#160; ; 100'a
variable byte datad&#160;&#160;&#160;&#160;&#160;&#160; = 0&#160;&#160;&#160;&#160; ; Auxiliary variariable
variable byte datac&#160;&#160;&#160;&#160;&#160;&#160; = 0&#160;&#160;&#160;&#160; ; Auxiliary var.




; Here is the interruption based on Roman Black's code.
; Every 500ms gets the RPM and displays it.
; Esta es la rutina de interrupcion que se genera cada 500ms
; esta basado en el codigo hecho por Roman Black
; for more info: www.romanblack.com/one_sec.htm&#160; 


procedure interrupcion is&#160;&#160;&#160; ; Assembler code
tstf bres_mid&#160;&#160;&#160;&#160;&#160;&#160;&#160; ; first test for mid==0
skpnz&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ; nz = no underflow needed
decf bres_hi,f&#160;&#160;&#160;&#160;&#160;&#160; ; z, so is underflow, so dec the msb
decfsz bres_mid,f&#160;&#160;&#160; ; dec the mid byte (subtract 256)
goto int_exit&#160;&#160;&#160;&#160;&#160;&#160;&#160; ; nz, so definitely not one second yet.
tstf bres_hi&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ; test hi for zero too
skpz&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ; z = both hi and mid are zero, is one second!
goto int_exit&#160;&#160;&#160;&#160;&#160;&#160;&#160; ; nz, so not one second yet.&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; movlw alto&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ; get msb value&#160; movwf bres_hi&#160;&#160;&#160;&#160;&#160;&#160;&#160; ; load in msb&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; movlw medio&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ; get mid value
movwf bres_mid&#160;&#160;&#160;&#160;&#160;&#160; ; load in mid&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; movlw bajo&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ; lsb value to add
addwf bres_lo,f&#160;&#160;&#160;&#160;&#160; ; add it to the remainder already in lsb
skpnc&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ; nc = no overflow, so mid is still ok
incf bres_mid,f&#160;&#160;&#160;&#160;&#160; ; c, so lsb overflowed, so inc mid&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; movlw 0x01&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; movwf bandera&#160;&#160;&#160;&#160;&#160;&#160;&#160; ; 500ms ?&#160; then activate a flag
int_exit:&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; BCF INTCON,2&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ; reset the tmr0 interrupt flag&#160;&#160;&#160; end assembler
end procedure



select bank 1&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ; Necesario para interrupciones
option register = 0b_1000_0000&#160; ; Enable interrupts
intcon gie bit = on
intcon t0ie bit = on
select bank 0



; Here is the main program / Aqui comienza el programa principal



Loop&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ; main Loop / Ciclo infinito
if ! pin a5 then&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ; Pulse? / Recibio un pulso?&#160;&#160;&#160; if bandera1 = 1 then&#160;&#160;&#160;&#160;&#160; ; This calculation is not done? Calculate RPM&#160;&#160;&#160;&#160;&#160;&#160; bandera1 = 0&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ; Si no se ha calculado las RPM, Calcula RPM&#160;&#160;&#160;&#160;&#160;&#160; decenas = decenas + 20&#160;&#160;&#160;&#160;&#160;&#160; centenas = centenas + 1&#160;&#160;&#160;&#160;&#160;&#160; if decenas &gt; 99 then&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; centenas = centenas + 1&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; decenas = decenas - 100&#160;&#160;&#160;&#160;&#160;&#160; end if&#160;&#160;&#160; end if
else&#160;&#160;&#160; bandera1 = 1
end if



if bandera = 1 then&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ; 500ms already? clear all counters&#160;&#160;&#160; bandera&#160; = 0&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ; Ya son 500ms?&#160; Regresa a cero los contadores&#160;&#160;&#160; datad&#160;&#160;&#160; = decenas&#160;&#160;&#160; datac&#160;&#160;&#160; = centenas&#160;&#160;&#160; centenas = 0&#160;&#160;&#160; decenas&#160; = 0
end if



temporal = datac / 10&#160;&#160;&#160;&#160;&#160;&#160;&#160; ; calculate UNITS / Calcula unidades
FSR = temporal + 0x46&#160;&#160;&#160;&#160;&#160;&#160;&#160; ; get the mem address of variable / Obtiene direccion de la variable
temporal = INDF&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ; gets the character / obtiene el caracter a desplegar
if temporal = cero then&#160;&#160;&#160;&#160;&#160; ; Zero?&#160; then BLANK / Cero? entonces no despliega nada&#160;&#160;&#160; temporal = blanco
end if
if pin a4 then&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ; check the display type and activate the digit&#160;&#160;&#160; port a = 0b_0000_0001&#160;&#160;&#160;&#160; ; verifica el tipo de display y activa el digito
else&#160;&#160;&#160; port a = 0b_1111_1110
end if
port b = temporal&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ; display 1000's / Despliega los millares
delay 5microseconds
port b = blanco



if datac = 0 then&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ; 100's are cero?&#160; blank.&#160;&#160;&#160; temporal = blanco&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ; Si las centenas es cero, deja en blanco
else&#160;&#160;&#160; temporal = datac % 10&#160;&#160;&#160;&#160; ; calculate 100's and get the value to display&#160;&#160;&#160; FSR = temporal + 0x46&#160;&#160;&#160;&#160; ; calcula centenas y obtiene el valor a desplegar&#160;&#160;&#160; temporal = INDF
end if
if pin a4 then&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ; get display type and activate the digit&#160;&#160;&#160; port a = 0b_0000_0010&#160;&#160;&#160;&#160; ; obtiene el tipo de display y activa el digito
else&#160;&#160;&#160; port a = 0b_1111_1101
end if
port b = temporal&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ; display 100's / Despliega centenas
delay 5 microseconds
port b = blanco



temporal = datad / 10&#160;&#160;&#160;&#160;&#160;&#160;&#160; ; Same as previous for 10's
FSR = temporal + 0x46&#160;&#160;&#160;&#160;&#160;&#160;&#160; ; igual que el anterior pero para decenas
temporal = INDF
if datac = 0 then&#160;&#160;&#160; if temporal = cero then&#160;&#160;&#160;&#160;&#160;&#160; temporal = blanco&#160;&#160;&#160; end if
end if
if pin a4 then&#160;&#160;&#160; port a = 0b_0000_0100
else&#160;&#160;&#160; port a = 0b_1111_1011
end if
port b = temporal&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ; Display 10's / despliega decenas
delay 5 microseconds
port b = blanco



temporal = datad % 10&#160;&#160;&#160;&#160;&#160;&#160;&#160; ; Same as previous for 1's&#160; FSR = temporal + 0x46&#160;&#160;&#160;&#160;&#160;&#160;&#160; ; Igual al anterior para unidades
temporal = INDF
if pin a4 then&#160;&#160;&#160; port a = 0b_0000_1000
else&#160;&#160;&#160; port a = 0b_1111_0111
end if
port b = temporal&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; delay 5 microseconds&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ; Display 1's / despliega unidades
port b = blanco



end loop&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ; Main loop / Ciclo principal

</pre>
</blockquote>
<p>&#160;</p>
<p>Página do José Pino – <a href="http://www.josepino.com/pic_projects/?tachometer2" target="_blank">Clica aqui</a></p>
<p>Todos os direitos autorais do Sr José Pino</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jostdayan.wordpress.com/114/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jostdayan.wordpress.com/114/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jostdayan.wordpress.com/114/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jostdayan.wordpress.com/114/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jostdayan.wordpress.com/114/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jostdayan.wordpress.com/114/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jostdayan.wordpress.com/114/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jostdayan.wordpress.com/114/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jostdayan.wordpress.com/114/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jostdayan.wordpress.com/114/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jostdayan.wordpress.com/114/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jostdayan.wordpress.com/114/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jostdayan.wordpress.com/114/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jostdayan.wordpress.com/114/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jostdayan.wordpress.com&amp;blog=5017364&amp;post=114&amp;subd=jostdayan&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jostdayan.wordpress.com/2008/12/18/tacmetro-rpm-2-projeto-jos-pino/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/27db1e8caa7137b58a6c080898547402?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Jost Dayan</media:title>
		</media:content>

		<media:content url="http://jostdayan.files.wordpress.com/2008/12/jp6283ds-thumb1.gif" medium="image">
			<media:title type="html">JP6283DS</media:title>
		</media:content>

		<media:content url="http://jostdayan.files.wordpress.com/2008/12/esquema2-thumb.jpg" medium="image">
			<media:title type="html">esquema2</media:title>
		</media:content>

		<media:content url="http://jostdayan.files.wordpress.com/2008/12/fotos-thumb.jpg" medium="image">
			<media:title type="html">fotos</media:title>
		</media:content>

		<media:content url="http://jostdayan.files.wordpress.com/2008/12/p9050327sh4-thumb.jpg" medium="image">
			<media:title type="html">p9050327sh4</media:title>
		</media:content>

		<media:content url="http://jostdayan.files.wordpress.com/2008/12/p9050333it7-thumb.jpg" medium="image">
			<media:title type="html">p9050333it7</media:title>
		</media:content>
	</item>
		<item>
		<title>Tac&#244;metro / RPM 1 &#8211; Projeto Jose Pino</title>
		<link>http://jostdayan.wordpress.com/2008/12/18/tacmetro-rpm-1-projeto-jose-pino/</link>
		<comments>http://jostdayan.wordpress.com/2008/12/18/tacmetro-rpm-1-projeto-jose-pino/#comments</comments>
		<pubDate>Thu, 18 Dec 2008 21:45:31 +0000</pubDate>
		<dc:creator>jostdayan</dc:creator>
				<category><![CDATA[Eletrônica]]></category>

		<guid isPermaLink="false">http://jostdayan.wordpress.com/2008/12/18/tacmetro-rpm-1-projeto-jose-pino/</guid>
		<description><![CDATA[Está página é apenas uma tradução da página original Fácil de construir usando apenas alguns componentes. Com algumas modificações, ele pode ser usado em um automóvel. Este Tacômetro usa um PIC 16F628. (06/12/2004) CÓDiGO: JP6283 &#8211; PIC: 16F628 Este tacômetro digital pode medir até 30.000 RPM (ou talvez mais, nenhum dos meus motores podem rodar [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jostdayan.wordpress.com&amp;blog=5017364&amp;post=102&amp;subd=jostdayan&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Está página é apenas uma tradução da <a href="http://www.josepino.com/pic_projects/?tachometer2">página original</a></p>
<p>Fácil de construir usando apenas alguns componentes. Com algumas modificações, ele pode ser usado em um automóvel.</p>
<p> <span id="more-102"></span>
<p>Este Tacômetro usa um PIC <a title="Pic 16F628 - Datasheet" href="http://ww1.microchip.com/downloads/en/DeviceDoc/40300C.pdf" target="_blank">16F628</a>. (06/12/2004)</p>
<p>CÓDiGO: JP6283 &#8211; PIC: 16F628</p>
<p>Este tacômetro digital pode medir até 30.000 RPM (ou talvez mais, nenhum dos meus motores podem rodar mais de 35.000 rpm). </p>
<p>Aqui é o diagrama dos pinos:</p>
<p><a href="http://jostdayan.files.wordpress.com/2008/12/jp6283ds.gif"><img title="JP6283DS" style="display:inline;border-width:0;" height="178" alt="JP6283DS" src="http://jostdayan.files.wordpress.com/2008/12/jp6283ds-thumb.gif?w=280&#038;h=178" width="280" border="0" /></a></p>
<p>Pin 3 define o tipo de Exibição: Ânodo ou Cátodo comum.    <br />Pino 4 é o sinal de entrada, você pode utilizar sensores ópticos (Fototransistors, fotoresistors, etc), sensores magnéticos (efeito Hall, reed switch, etc) ou utilizar um interruptor.</p>
<p><font color="#ff0000"><strong>Não ligue qualquer sinal diretamente aos PIN 4.</strong> </font><font color="#000000">Alta tensão pode danificar o PIC. Se o sinal de entrada é mais de 5 Volts, Use um driver como TTL, CMOS, ou Amp Operacional ou Transístores.</font></p>
<p><a href="http://jostdayan.files.wordpress.com/2008/12/esquema.jpg"><img title="esquema" style="display:inline;border-width:0;" height="177" alt="esquema" src="http://jostdayan.files.wordpress.com/2008/12/esquema-thumb.jpg?w=284&#038;h=177" width="284" border="0" /></a> </p>
<p>Faça o download do código HEX: <font color="#ff0000"><strong><a href="http://www.josepino.com/pic_projects/tachometer/JP6283-1.hex" target="_blank">Aqui</a></strong></font></p>
<ol>
<li>NOTA: Utilize apenas 10MHz xtal e capacitores de 22pf ou 33pf. </li>
<li>Este projeto não foi criado para RPM menor do que 200RPM. </li>
<li>Você não pode conectar o sensor hall diretamente no pino 4. Você precisa de um amplificador para conduzir o sinal para o PIC. </li>
</ol>
<p>Página do José Pino – <a href="http://www.josepino.com/pic_projects/?tachometer">Clica aqui</a>    <br />Todos os direitos autorais do Sr José Pino</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jostdayan.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jostdayan.wordpress.com/102/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jostdayan.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jostdayan.wordpress.com/102/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jostdayan.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jostdayan.wordpress.com/102/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jostdayan.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jostdayan.wordpress.com/102/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jostdayan.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jostdayan.wordpress.com/102/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jostdayan.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jostdayan.wordpress.com/102/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jostdayan.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jostdayan.wordpress.com/102/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jostdayan.wordpress.com&amp;blog=5017364&amp;post=102&amp;subd=jostdayan&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jostdayan.wordpress.com/2008/12/18/tacmetro-rpm-1-projeto-jose-pino/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/27db1e8caa7137b58a6c080898547402?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Jost Dayan</media:title>
		</media:content>

		<media:content url="http://jostdayan.files.wordpress.com/2008/12/jp6283ds-thumb.gif" medium="image">
			<media:title type="html">JP6283DS</media:title>
		</media:content>

		<media:content url="http://jostdayan.files.wordpress.com/2008/12/esquema-thumb.jpg" medium="image">
			<media:title type="html">esquema</media:title>
		</media:content>
	</item>
	</channel>
</rss>
