i need help on my design using pic 18

Status
Not open for further replies.

mcxim1215

New Member
hi..i need to design a counter which can count number of switch is click on from 1-9 and display on 7segment display...and it has timer that run 20second, which after 20second it save the number of count into a file register and reset the number of count back to 0 and repeat back the process. i have try the code which i attached here, but it cannot run..i think it has problem with the interrupt and timer process. can someone correct it for me please? i also attached here the design of the circuit and also the code in hex file..thank u..
 

Attachments

  • people sensor.hex
    699 bytes · Views: 124
  • Untitled-901.jpg
    325.9 KB · Views: 169
  • codee.txt
    1.4 KB · Views: 172
Last edited:
If this is you first project, I would not use interrupts. I found than a little hard to use.
A hex file can be red by the PIC but not by a human. Please send something we can read.
 
If this is you first project, I would not use interrupts. I found than a little hard to use.
A hex file can be red by the PIC but not by a human. Please send something we can read.

literally yes..this is my first project..i am very new to pic18..
is it possible for not using interrupt? because, the switch will interrupt the timer, and then it will serve the display..
i will attached the code..
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…