Iawia
Member
Hey guys,
I have searched throughout the forum but only see alot of info for similar programs in assembly. In my pic program (writing in c), I would like to take an (int) variable, and convert it to binary and then output it to some leds.
I am unclear on how to store the variable in c (is there a binary type?).
max decimal value is 9.
Does anyone know how to do this?
Also just as a side question, is there any coding debuggers for pics? From what I can see, MPLAB has no serial display like the Arduinos. Would be nice to see output for debugging purposes.
--------------
Using:
chip: pic12F508
MPLAB IDE v8.80
HI-Tech c compiler
I have searched throughout the forum but only see alot of info for similar programs in assembly. In my pic program (writing in c), I would like to take an (int) variable, and convert it to binary and then output it to some leds.
I am unclear on how to store the variable in c (is there a binary type?).
max decimal value is 9.
Does anyone know how to do this?
Also just as a side question, is there any coding debuggers for pics? From what I can see, MPLAB has no serial display like the Arduinos. Would be nice to see output for debugging purposes.
--------------
Using:
chip: pic12F508
MPLAB IDE v8.80
HI-Tech c compiler