Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Register Log in

Trouble with PICC - non working conversion charaters

Status
Not open for further replies.

rfmw

Advanced Member level 2
Joined
May 10, 2001
Messages
545
Helped
93
Reputation
190
Reaction score
50
Trophy points
1,308
Activity points
3,978
I'm using Hi-Tech's PICC versions 8.05pl2 and 9.50pl1 and experience the same problems using the conversion characters in the printf() function.

I can output onto the LCD whatever string I want (i.e. alphabet, numbers 0-9, ...) but conversion characters in the printf() function don't work properly. Example:

printf("aBcDeF: %d %x %X",0xca,0xCA,0xcA);

or

unsigned char i=0xCA;
printf("aBcDeF: %d %x %X",i,i,i);


outputs on the LCD the same wrong characters in both cases:


"aBcDeF: 202 CA CA",

where the right string would be: "aBcDeF: 202 ca CA".


I've tried this in MPLAB v7.22 (with 8.05pl2 and 9.50pl1) and HPDPIC (8.05pl2), WinXP SP2.

Any suggestions?

Thanks,
rfmw
 

Status
Not open for further replies.
Toggle Sidebar

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top