|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Displaying a 16 bit integer on PIC 16F877?
So, I've been playing around with a 16F877, and I got my hands on one of the kit gyros, and am trying to write my own code for it. I've got it mostly working, but I need to display a 16 bit integer to figure out what constitutes a 90 degree turn. But, the PIC doesn't want to do it. I can't for the life of me get it to output a 16 bit integer (that I can understand) to the debugger using a printf. I've tried %ld, but it didn't give me the right number. Is there some other trick (or formatting) I can use?
|
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| pic: Feeling a bit Blue | Steve W | Extra Discussion | 3 | 28-10-2007 23:54 |
| pic: A "Bit" of a problem. | Herodotus | Extra Discussion | 26 | 11-10-2007 01:53 |
| 16 bit math on PIC | sciguy125 | Programming | 17 | 07-10-2005 02:57 |
| integer division | ImmortalAres | Programming | 5 | 11-07-2005 21:19 |
| Integer Number | powercat | Programming | 2 | 18-02-2003 11:26 |