╨╧рб▒с>■  ■                                                                                                                                                                                                                                                                                                                                                                                                                                                   ¤   ■   ■    ■                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   Root Entry        ░│й5╚АMAIN              RSCOMPSTG1дАщЦЮLбЧ&т·ў>░Э░й5╚░Э░й5╚CONTENTS            а■    ■    !"#$%&'()*+,-./0123456789■                                                                                                                                                                                                                                                                                           У▓а ЄWG _extentxR ЄWG _extenty╥▒╖╧port01▒дbit0░╖╧port10▒дbit1│╖╧port23▒дbit2▓╖╧port32▒дbit3╡╖╧port45▒дbit4┤╖╧port54▒дbit5"yTвИ■  lcdsizeУ▓t ЄWG _extentxz ЄWG _extenRSCOMPSTG2        ┤8Qп╢ ╔Iзи█ж░Э░й5╚░Э░й5╚CONTENTS            t                        tyХ ъ_┼|(switchcount бMєд$switchtype ж>!ъ$direction 82FД(orientation#хЮ debounce▒╖╧port01▒дbit0 жТ╫·(slabeltext0 зТ╫·(slabeltext1 дТ╫·(slabeltext2 еТ╫·(slabeltext3 вТ╫·(slabeltext4 гТ╫·(slabeltext5 аТ╫·(slabeltext6 бТ╫·╝¤  slabeltext7 ■   ■      RSComponent LCDDisplayАSwitches16F88,0x2007,0x3f2a 0x2008,0x3ffc                 │k╤╔                _L   RSFlowlineMainXX■   ■   ■   ■   ■   ■   ■   K_П         ■   ■   ■   ■   ■   ■   ■   ■   ■   ■     RSStartStopCmdMain   RSCommentCmd╥Prints out the freqency of pulses incoming to the pin specified in macro Read_Input Max Input freq approx 32000Hz Higher frequencies ( < 64000Hz ) can be measured by modifying the LCD Print Number Function  RSMacroCallCmdInit LCDStart LCDDisplay(0)0  RSCalculationCmd Init Counters   Calculation0freqА0count АInit In Variable Read_input0  RSInterruptCmdStart Interrupt    TMR_INTTMR0   RSLoopCmd Main Loop1MainXXАMainАWait Until Lowin = 1MainXXАMain А Collect Input Read_input0АMainАWait Until Highin = 0MainXXАMain А Collect Input Read_input0АMain АIncrement CountАfreq + 1freqАMainАMainАTMR_INTXX■   ■   ■   ■   ■   ■   ■   Ke┌▒         ■   ■   ■   ■   ■   ■   ■   ■   ■   ■   АTMR_INT АIncrement Interrupt CountА count + 1count   RSDecisionCmd#75 Interrupts in 1 Sec @ 19.6608MHz count < 75TMR_INTXXАTMR_INTАTMR_INTTMR_INTXXАTMR_INT А Init CursorCursor LCDDisplay(0)   RSOperand0-А00 А Output Label PrintString LCDDisplay(0)-А "Freq = "0 АOutput Frequency PrintNumber LCDDisplay(0)-Аfreq0 А Output Units PrintString LCDDisplay(0)-А" Hz "0 АReset CountersА0freqА0count   RSCCodeCmd*Reset Timer0 Count value for accurate freq tmr0 = 0x00; АTMR_INTАTMR_INTА Read_inputXX■   ■   ■   ■   ■   ■   ■   K▐У╜°         ■   ■   ■   ■   ■   ■   ■   ■   ■   ■   А Read_input   RSInputCmdRead Input PininА Read_inputIN  VariableinFREQBАfreqCOUNTBАcount