coshkun
Full Member level 2
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.
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.