We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hello, I need to know the exact moment when an input is set. I'm using XC167CI and I have fast interrupts. This way is full, I mean I have used all fast interrupts. I don't know how I can know when an input por is set and reset. What can I do? I which file can I paste the code? Maybe in MAIN.C? Maybe in IO.C? Please, help me.
Thanks a lot, Stefan. But I mean I have several inputs and in whatever moment this input can be set by an external machine, for example. I know what I have to do when this input is set or reset (if I don't know it maybe I have to leave my job :S), but my exactly problem is where I can paste the code. In Main.C? I don't know if my argue is good. I only want to do where I can write the function to do something when whatever input is set or reset. In the post before I said that I have used all my fast interrupt. I know the exact place where my code have to be. Another question: In my MAIN.C I have a while loop
while (1) { }
if (P3_P0) { /* if P3.0 is set I have to set the out P6.2 or I have to call doSomething() functions. */ }
"If you can guarantee that the signal generating the interrupt will remain active for greater than the latency period you can 'OR' several signals together on one interrupt pin and connect each one to a port pin. In the ISR you then poll each pin to see which one generated the interrupt. Alternatively you might look at using an external interrupt controller IC." Have u got a sample code for that? How can I use ISR? How can I connect several signal together on 1 interrupt pint? I'm so lost. Please, help me.
another approach: Often I use more than one micro (you can get flash based micros for about $0.50) and have found that often the best way to handle a problem is to "divide and conquer". Erik
"Have u got a sample code for that?" I'm afraid it's your job to write the code. "How can I use ISR? How can I connect several signal together on 1 interrupt pint? I'm so lost. Please, help me." It sounds like you don't have much idea about electronics or programming. I think you will have to go back and learn the basics before you can tackle this kind of project.
Have u got a sample code for that does micro not have an e-mail account, it seems this forum is becoming his mailbox
I want to learn more, but how can I do it? I want to be an expert. Please, help me and say to me what can I read about this. Thanks and sorry if my mails can disturb you.
I want to be an expert. an honorable ambition. Please, help me and say to me what can I read about this. since some approaches has been suggested (Stefan made one, I made another) it would be nice to know what "this" is. Thanks and sorry if my mails can disturb you refrain form the Stupid Monkey S*** and nothing in your posts "disturb" me. Erik
Note This message was edited because of rude or abusive language.
an addition I want to be an expert. an honorable ambition but remember TTT http://www.geocities.com/dnehen/soma/hein.htm Erik
I have seen an example about interrupt but I don't know now where it is. I need a example to make an interrupt when bit 0 of port 3 is set. Can u help me?