[Show all top banners]
Back to: Kurakani General Refresh page to view new replies
 need help on Microprocessor
[VIEWED 3561 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
TPS Re-registration case still pending ..
ChatSansar.com Naya Nepal Chat
Toilet paper or water?
TPS EAD auto extended to June 2025 or just TPS?
Biden out, Trump next president, so what’s gonna happen to TPS, termination?
and it begins - on Day 1 Trump will begin operations to deport millions of undocumented immigrants
मन भित्र को पत्रै पत्र!
Tourist Visa - Seeking Suggestions and Guidance
From Trump “I will revoke TPS, and deport them back to their country.”
Anybody gotten the TPS EAD extension alert notice (i797) thing? online or via post?
advanced parole
TPS Renewal Reregistration
Sajha Poll: Who is your favorite Nepali actress?
Biden said he will issue new Employment visa for someone with college degree and job offers
Why Americans reverse park?
Nepali Passport Renew
Driver license help ASAP sathiharu
They are openly permitting undocumented immigrants to participate in federal elections in Arizona now.
ढ्याउ गर्दा दसैँको खसी गनाउच
To Sajha admin
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