7 segment led
Pierre20
Posts: 5
Hi
With bs2, ·I want to control· 7 segment led common·cathode. If I put the cathode in VSS,·it works. However I want to put the cathode in P0·but it doesn't work even if I write IN0 = 0. I dont know why ??
Thank
Pierre
·
With bs2, ·I want to control· 7 segment led common·cathode. If I put the cathode in VSS,·it works. However I want to put the cathode in P0·but it doesn't work even if I write IN0 = 0. I dont know why ??
Thank
Pierre
·
Comments
Try
LOW 0
instead of IN0
__________$WMc%______
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
The Truth is out there············································ BoogerWoods, FL. USA
IN0 = 0 makes the I/O pin an INPUT. You need an OUTPUT
LOW is 0 or close to Vss and the pin your using is pin 0
If you wanted pin 0 to be a 1 or close to Vdd than you could use this
HIGH 0
_I Hope this helps_____$WMc%_____
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
The Truth is out there············································ BoogerWoods, FL. USA
Post Edited ($WMc%) : 8/30/2009 12:58:21 AM GMT
It works.
Pierre··········
Montreal, Canada