Value of an int

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
2,802件の閲覧回数
Andrey
Contributor III
I'm trying to send a value of an unsigned int from HCS08 (AW60). Any suggestions?
ラベル(1)
タグ(1)
0 件の賞賛
返信
1 解決策
1,366件の閲覧回数
J2MEJediMaster
Specialist I
Take a look at the end of this thread. In particular, look at Lundin's post. He provides the C code of a routine that converts a 32-bit int into characters. It should be suitable for your use.

---Tom

元の投稿で解決策を見る

0 件の賞賛
返信
3 返答(返信)
1,366件の閲覧回数
CrasyCat
Specialist III
Hello
 
What do you want to do exactly?
 
Where do you want to send the value of your int?
 
Can you be a little bit more specific please
 
CrasyCat
0 件の賞賛
返信
1,366件の閲覧回数
Andrey
Contributor III
Basically, I have an integer (16-bit) that I want to send over the serial port. I have routines that send the value  of a char (8-bit) and a string (multiples of chars). So I'm looking for a way to either divide an int into two chars. Hope it's clearer now.
0 件の賞賛
返信
1,367件の閲覧回数
J2MEJediMaster
Specialist I
Take a look at the end of this thread. In particular, look at Lundin's post. He provides the C code of a routine that converts a 32-bit int into characters. It should be suitable for your use.

---Tom
0 件の賞賛
返信