The above video goes away if you are a member and logged in, so log in now!
|
| |
Would you like to get all the new info from PSX-Scene in your email each day?
| |
|
-
#1
Pic 12c508A, who can write some code for me?
Pic 12c508A, who can write some code for me? –
01-28-2003,09:30 AM
Hi, i need somebody, who can help me write a small amount of code for me for a pic 12c508A:
I need 3 Input Ports and 2 Output Ports.
1) Input 3 is a logical signal. This signal can be high for less than 3 seconds or more than 3 seconds. This signal is a pulse and the pulse length can be less than 3 seconds or more than 3 seconds. Depending on this Input 1 signal, the Outputs should be switched.
Ok, lets go to details. 
2) Input 1 should be switched to Output 1 if Input 3 pulse is shorter than 3 seconds. If Input 3 pulse is longer than 3 seconds, then Input 1 should not be switched to Output 1. Output 1 is "disabled", nothing happens to it.
3) Input 1 should be switched to Output 2 if Input 3 pulse is shorter than 3 seconds. If Input 3 pulse ist longer than 3 seconds, then Input 2 should be switched to Output 2.
4) The program in the pic chip should restart, when a new pulse on Input 1 is detected. During the pulse detection time, the both Outputs should be disabled.
I am not shure, if this will work for my application. I have to think about the details. This is the basic description of what I need. But if some experienced coder can help me to get this thing to work, it would be fine.
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|