Using that can i safely set the max VDD to 3.3v? I had a couple issues where my power supply was unplugged and PICKIT supplied 5v heh and found out TRACK 0 is dead.
As I recall the problem is that it does not stay set. I think you have to reset it after you connect each time. Not sure at all. Could have MPLAB and PICkit2 software confused...
Rather then mess with it I provide a 3.3V supply to the target.
It has exactly the same string parameters as printf, but it outputs to a string rather than a data stream. Both printf and sprintf aren't all that popular on 8bits because they can suck up a lot of space. Newer compilers can cut up the functionality provided by printf/sprintf and only include what is needed now though, so if you are just doing a simple itoa it might not be that bad.
but i know it works but i dont just want to clear the warnings by not showing them. whats the real problem? how do i fix this? i tried placing a &, * heh but no luck
Heh nice one! I knew about it but now how it worked. It's a pretty useful tool and I got it to work nice with floats. I will mostly use it to merge number and text in a string since it adds the 0x00 to the end .
I think that's from learning C on Microcontrollers. Back in the day when we used K&R C for PC's, it was part of the fundamentals of C programming.
How much space is sprintf taking up on compile time? Is your compiler able to only link in printf functionality it's using, or are you getting the whole thing? It's not important, I was just interested.
Try changing your variable assignments to char rather than unsigned char to remove the type mismatch warnings.