[Show all top banners]
Back to: Kurakani General Refresh page to view new replies
 need help on Microprocessor
[VIEWED 5301 TIMES]
SAVE! for ease of future access.
Posted on 10-02-12 6:17 PM     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

 Here i have posted my question ...i did the first part i need help on part ..how to put interupt and timer0.please if any one write the code for me.

Design a circuit using the PIC12F615 that counts from 0 to 9, then resets to 0 and starts counting 
again after reaching 9.  It should have one input that reads one of the momentary pulse switches.  
Use 4 of the GPIO ports on the PIC12 to drive the A, B, C, and D inputs to the 7-segment display 
driver.  
2. Create a software program in PIC12 assembly language that causes the hardware to count from 0 
to 9.  When it reaches 9 the counter should roll over to 0 and start counting again.  The program 
should recognize when the pulse switch is released (after being pressed) and immediately reverse 
direction, outputting the next lower digit in the sequence.  The digits should be illuminated for 500 
milliseconds.  After 500 milliseconds the display should go dark for 100 milliseconds before 
displaying the next digit.  When the pulse switch is pressed and released again the counter should 
start counting up following the same pattern it followed when switching from up to down.  
Subsequent switch press and releases should alternately change the direction of count.
3. Create a state diagram (flow chart) that shows the program’s operation.
4. Modify the software so that the counter changes direction when the switch is depressed, but does 
nothing when the switch is released.  Each time the switch is pressed the counter should change 
the direction (up or down) in which it is counting.  The hardware platform should not be modified 
between parts 2 and 3.

 
Posted on 10-02-12 7:05 PM     [Snapshot: 32]     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

pakha sir lai bhan din chu sajha bata answer choreko bhanera :P
 
Posted on 10-02-12 7:40 PM     [Snapshot: 51]     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

ghanta garnu ta aba na aaya pachi...khoe sajha bata pani khi hola jasto chhaena
 


Please Log in! to be able to reply! If you don't have a login, please register here.

YOU CAN ALSO



IN ORDER TO POST!




Within last 200 days
Recommended Popular Threads Controvertial Threads
NRN card pros and cons?
ANA and AJAY KUMAR DEV. RAPISTS CONVENTION
TPS To F-1 COS
TPS to F1 Status.
legal Query for married nepali girl now have taken US citizenship
Got my F1 reinstatement approved within 3 months(was out of F1 for almost 2 years)
2020 : Why No Trump !
#MAGA#FAFO is delicious
Democrat lies revealed
TPS Sakiyo Tara Case is in Court.
Medication from Nepal to USA
Business Ideas in Nepal?
Nepal Likely to Get 60-Day TPS Notice
Nepal TPS Hearing: 9 Room, 19 Floor, 29 July
मुद्दा हाल्छन होला र ?
TPS cancel bho bhane k garne?
BREAKING: FEDERAL JUDGE ORDERS TRUMP ADMINISTRATION TO DELAY TERMINATION OF TPS HUMANITARIAN PROTECTION FOR 60,000 TPS HOLDERS WHO HAVE LIVED IN THE US FOR YEARS
NEPAL TPS IS GONE
Trump’s “Big Beautiful Bill” is straight-up xenophobic class warfare. Let’s call it what it is.
Leave messages on US congressman's facebook to support TPS
NOTE: The opinions here represent the opinions of the individual posters, and not of Sajha.com. It is not possible for sajha.com to monitor all the postings, since sajha.com merely seeks to provide a cyber location for discussing ideas and concerns related to Nepal and the Nepalis. Please send an email to admin@sajha.com using a valid email address if you want any posting to be considered for deletion. Your request will be handled on a one to one basis. Sajha.com is a service please don't abuse it. - Thanks.

Sajha.com Privacy Policy

Like us in Facebook!

↑ Back to Top
free counters