Hi,
I use a pic 16f88, I have a signal in input 6 and input 7,
I need to count how long the signal is on "high level". I alredy ask someone to help me on this forum and he told me to use the pulsin function, my problem is that when I write :
It doesn't work, I think that picaxe knows "6" as an output and not an input.
If I write "pin6" it's doesn't work either![Frown :( :(](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
I think it's the only problem on my program because when I replace w1 by a value (let w1=1), the program works..
Please help me to know how to make picaxe understand that "6" is an input and not an output.
I'm sorry if you don't understand this message, my english is bad because i'm a french student..
But thank you to read it !
I use a pic 16f88, I have a signal in input 6 and input 7,
I need to count how long the signal is on "high level". I alredy ask someone to help me on this forum and he told me to use the pulsin function, my problem is that when I write :
Code:
pulsin 6,1,w1
If I write "pin6" it's doesn't work either
I think it's the only problem on my program because when I replace w1 by a value (let w1=1), the program works..
Please help me to know how to make picaxe understand that "6" is an input and not an output.
I'm sorry if you don't understand this message, my english is bad because i'm a french student..