Hi Bruce

A couple of very good points you have made there.

I had the same qeries when I originaly wrote the program.

The telephone numbers are stored on the eprom and non digits are padded out with nulls so

012345678912 in the eprom looks like
012345678912______ where _ is null or 0 in hex

the program then loads this data into the telephone variable and when viewed in ICD mode looks like

48
49
50
51
52
53
54
55
56
57
49
50
0
0
0
0
0

Now what happens is that when I use the hserout str function it automaticaly detects the first null and concatinates to 012345678912

and looks like this in hyperterminal AT+CMGS="012345678912"

I was well impressed when it worked, over the moon sort of thing and it was the easiest of many issues to solve. I2C master and slave mode were the hardest by the way.

But this time it does not work.

I will try your suggestions.

I believe that we are foucusing in on the root cause of the issue.

Thanks

Steve