C9S12XDP512 SCI Functions [Beginner]

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

C9S12XDP512 SCI Functions [Beginner]

2,144件の閲覧回数
bwheeler
Contributor I
Warning:  I am a beginner with DYI projects.  I have experience coding in assembly for MC9S12DP256B
 
 
I am working on a design project and we have purchased the C9S12XDP512 from a vendor.  At the moment, we are trying to do some basic input and output to a terminal.
  1.  Are there any SCI functions that are already written for the the processor in C that is available for use?
  2. We have tried including the "stdio.h" library and the functions defined in there are not compiling.  Is there something we are possibly missing?
ラベル(1)
0 件の賞賛
返信
3 返答(返信)

803件の閲覧回数
JimDon
Senior Contributor III

1. First, you have to say how the SCI device is configured. Some have and din and a dout, other just a single I/O pin. So you need to provide more information. Perhaps tell us the part you wish to talk to, with a link to it's spec sheet.

2. Not enough information. In general there are no issues with stdio.h  If you are expecting to open a file, you may have trouble with that, but things like sprintf work. Which functions are you having trouble with?






0 件の賞賛
返信

803件の閲覧回数
JimDon
Senior Contributor III
Sorry I misread read you said SCI I read SPI.

If you go here and scroll down to "Sample Programs"  there are several sample SCI projects.
From Hello World to a fully buffered interrupt driven example.
0 件の賞賛
返信

803件の閲覧回数
bwheeler
Contributor I
Thank you.  This site seems like it would be helpful.
0 件の賞賛
返信