Hello,
I'm new to PICs.
Starting with some simple examples, I don't understand why, for example:
INTCON = $90 works
when
INTCON = %1001000 doesn't.
What is the difference?
Flotul
Hello,
I'm new to PICs.
Starting with some simple examples, I don't understand why, for example:
INTCON = $90 works
when
INTCON = %1001000 doesn't.
What is the difference?
Flotul
Your binary example has a ZERO missingOriginally Posted by flotulopex
If you take of the bit that you think is "9" (1001) then you are left with "000" not "0000"
The effect of that is that instead of being treated as 1001 0000 which should be $90 it gets treated as "100 1000" which is $48
HTH
Keith
www.diyha.co.uk
www.kat5.tv
Well,
If I can't count up to eight, I should better stop right now :-)
Thanx a lot.
Roger
Dont worry.... its only the first of many mistakes that you will makeOriginally Posted by flotulopex
![]()
Keith
www.diyha.co.uk
www.kat5.tv
Yeah, there will sure be some doozys that make you wonder if you know anything at all....most will be plain and simple. This forum will be of great assistance to you, as it has been to me, on those occasions when I have deemed myself too stupid to figure something out and to ask someone. My after thoughts usually start with..."oh yeah, damn, why didn't I think of that?????"
Bookmarks