Help! Steps to follow in order to share data between HC12x cpu and xgate.

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

Help! Steps to follow in order to share data between HC12x cpu and xgate.

ソリューションへジャンプ
3,212件の閲覧回数
Ral_Virutas
Contributor I
Hello everybody!
 
I'm working in a project using a hc12x with Xgate and I don't understand the way data is shared between them. I want read a port or activate a output, across Xgate, something easy.  Has anybody some examples of C code about it???
 
Thanks in advance!!!!!
 
 
Raul

Message Edited by J2MEJediMaster on 2007-04-12 10:55 AM

ラベル(1)
タグ(1)
0 件の賞賛
返信
1 解決策
1,861件の閲覧回数
J2MEJediMaster
Specialist I
Have you looked at the example code supplied with the CodeWarrior installation? In the directory ..\CW for HC12V4.5\(CodeWarrior Examples)\HCS12X\HCS12X_XGATE_SoftwareRequest is an example program that demonstrates communications between the HCS12X core and the XGATE, via Software Request interrupts. That might not be exactly what you're looking for, but it would be a starting point.

---Tom

元の投稿で解決策を見る

0 件の賞賛
返信
3 返答(返信)
1,861件の閲覧回数
pittbull
Contributor III
Hi,
Somewhere in the XGATE chapter of the S12XDP512 manual you'll find that the S12 always has precedence when XGATE and S12 try to access a ressource at the same time.
Anyway, you can use the XGATE semaphore registers to lock critical code sections...
1,862件の閲覧回数
J2MEJediMaster
Specialist I
Have you looked at the example code supplied with the CodeWarrior installation? In the directory ..\CW for HC12V4.5\(CodeWarrior Examples)\HCS12X\HCS12X_XGATE_SoftwareRequest is an example program that demonstrates communications between the HCS12X core and the XGATE, via Software Request interrupts. That might not be exactly what you're looking for, but it would be a starting point.

---Tom
0 件の賞賛
返信
1,861件の閲覧回数
Steve
NXP Employee
NXP Employee
Also have a look at AN3144 which contains an example showing the sharing of a simple buffer.