c18 itoa function problem

Status
Not open for further replies.

coshkun

Full Member level 2
Joined
Aug 27, 2005
Messages
126
Helped
18
Reputation
36
Reaction score
10
Trophy points
1,298
Activity points
2,212
c18 itoa

I'm trying to use simple integer-string conversion function itoa() (c18 compiler-18f452) but it just doesn't work.
int number;7

char str[7];
...
...
....
itoa(number,str)
putsUSART(str);

I get nothing on USART1.I checked USART works.what's the problem?

Added after 2 hours 23 minutes:

I forgot to say i was simulating the circuit on Proteus.It works on real board.
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…