Posted: Mon Dec 19, 2005 4:19 am Post subject: tachometer
HI All,
I'm tring to make a simple tachometer that reads from 100 to 65000 rpm.and display it on lcd
I'm using bascom and at90s2313 with 4mhz cristal(can use 10mhz)
I've adapted the code bellow from BAsic stamp, I can get a reading but it's not correct.
I've read thebascom help files but not much about pulsein, it says it will increment count by 10us but that varies with cristal.
If I'm using a 4mhz cristal what is the pulsein increment?
Could someone point me in the right direction?
Dim Rpm As Word
Config Portb = Output
Config Portd = Input
Portd = 255 'enable Portd pullup's
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum