as you write to a BIT, it have to be 0 or 1 ONLY.Code:PORTA.0(Digit) = ~DCD Digit
Use a LCD or a serial comm to see the results of ~DCD digit... it return 254, 253, 251, 247.
i bet PORTA.0[Digit]=1 is what you're looking for.
as you write to a BIT, it have to be 0 or 1 ONLY.Code:PORTA.0(Digit) = ~DCD Digit
Use a LCD or a serial comm to see the results of ~DCD digit... it return 254, 253, 251, 247.
i bet PORTA.0[Digit]=1 is what you're looking for.
Last edited by mister_e; - 25th February 2007 at 20:17.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks