Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

programming problem in 7segment display

Status
Not open for further replies.
it will be helpful if you provide a sample code or link to work on this interrupt based keyboard because i never worked on it before.
i want to clarify one more doubt... i'm measuring the 1400rpm motor speed with IR sensor and it rotates 100 counts in 4sec. i need to read the sensor value and count it rapidly.. i'm trying on this but not getting.. can you please let me know how to count the value with 20Mhz osc. simple code will be helpful in this case.
thank you:)
 

about interrupts... you really need to try some simple routines... you probably have samples on pic library...

anyway... further reading...
http://www.microcontrollerboard.com/pic_interrupt.html

http://www.microcontrollerboard.com/support-files/pic-existing-interrupts.pdf

note that you will need to handle RBIF interrupt flag on the Interrupt Sub Routine (ISR)
RBIF - RB Port Change Interrupt Flag bit
This flag is set if at least one of the RB7:RB4 pins changed state. In order to enable
this interrupt, pins RB7: RB4 must be defined as input.

check this link tutorial
**broken link removed**

and check this simple example on portb4:7 change interrupt....
http://www.pyroelectro.com/tutorials/digital_tachometer_rpm/software.html
http://courses.engr.illinois.edu/ece445/wiki/?n=Topics.PICCCSCInterrupts

about the tachometer project... the best is use interrupt trigger on rf sensor to start aux timer... count the time between pulses by checking timer tick value on each interrupt event... then clear the timer at the end of interrupt sub and start it over again...


here is an example tutorial for pick 18f ... interrupt flags might be different
http://www.pyroelectro.com/tutorials/digital_tachometer_rpm/software.html

and this post to https://www.edaboard.com/threads/39428/
________________
 
Last edited:

thanks for the links.. i'm going through the links you suggested but its making me very difficult to understand.. please can you tell me some code for counter using interrupt pin. i'm trying to solve my keyboard problem. please help me out in counter part. that i mentioned in the above post.. please help me out.. :)
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top