Home > other >  Help! After using msp430 printf stil don't know how to solve, help!
Help! After using msp430 printf stil don't know how to solve, help!

Time:12-05

Do with msp430 printf think I have a look at the number right, but always shows garbled, I put ADC12MEM0 value with the lcd1602 display is right, changed the printf type is wrong, why ah T_T


CodePudding user response:

Shows the character format, the value of the variable TEMP converts characters display is garbled, I check the program, ADC12MEM0 using lcd1602 display have data processing function,

CodePudding user response:

reference 1st floor yishumei response:
shows the character format, the value of the variable TEMP converts characters display is garbled, I check the program, ADC12MEM0 using lcd1602 display have data processing function,
yes, some processing function, just offer a one million - bit the TEMP display, is there any problem is my printf format T ^ T

CodePudding user response:

You manually to display int into ASCII look, maybe bring printf doesn't support % d, this kind of advanced features

CodePudding user response:

reference dceacho reply: 3/f
you manually convert an int to ASCII display look, maybe bring printf doesn't support % d, this kind of advanced features

I divide the ADC12MEM0 into a one million four hundred - bit shown separately, is normal, and rewrite the A1 + A2 + 100 * 1000 * 10 * A3 + A4 put everyone together, and the code, and separate display at this time is not normal, it's too difficult...

CodePudding user response:

refer to the original poster Mao Zeguang response:
with msp430 printf think I have a look at the number right, but always shows garbled, I put ADC12MEM0 value with the lcd1602 display is right, changed the printf type is wrong, why ah T_T



I have found the reason, my printf normal only show 1 digits, this bottom more meng force T_T