[Show all top banners]

chang
Replies to this thread:

More by chang
What people are reading
Subscribers
:: Subscribe
Back to: Kurakani General Refresh page to view new replies
 need help on Microprocessor
[VIEWED 2860 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 90 days
Recommended Popular Threads Controvertial Threads
डीभी परेन भने खुसि हुनु होस् ! अमेरिकामाधेरै का श्रीमती अर्कैसँग पोइला गएका छन् !
शीर्षक जे पनि हुन सक्छ।
What are your first memories of when Nepal Television Began?
Sajha Poll: नेपालका सबैभन्दा आकर्षक महिला को हुन्?
NRN card pros and cons?
Basnet or Basnyat ??
निगुरो थाहा छ ??
Nas and The Bokas: Coming to a Night Club near you
अमेरिकामा छोरा हराएको सूचना
TPS Re-registration case still pending ..
Breathe in. Breathe out.
nrn citizenship
ढ्याउ गर्दा दसैँको खसी गनाउच
Top 10 Anti-vaxxers Who Got Owned by COVID
Sajha has turned into MAGATs nest
अमेरिकामा बस्ने प्राय जस्तो नेपालीहरु सबै मध्यम बर्गीय अथवा माथि (higher than middle class)
Doctors dying suddenly or unexpectedly since the rollout of COVID-19 vaccines
Send Parcels from USA to Nepal & Worldwide.
Why is every youths leaving Nepal? Why are not youths entering politics and serving the country, starting business etc?
TPS Work Permit/How long your took?
Nas and The Bokas: Coming to a Night Club near you
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