Sven Luebke

Modifying (data) register (of one output-port) from XGATE and S12X

Discussion created by Sven Luebke on Jul 14, 2006
Latest reply on Jul 14, 2006 by Steve Mcaslan

If one register (i.e. Port T data register) is modified in S12X and XGATE code and theoretically this could be done simultaneously, do I have to use a semaphore for this problem?

Let's assume, that I modify 20 register from XGATE and S12X-core, how can I realise this with only 8 semaphores?

Can somebody help me?

The background:

XGATE code is clearing one output pin of port T. With an oscilloscope I can see that this is working, but only after 56ns (which is faster than the XGATE-cycle, which is around 200ns in my system) this pin gets set again. So, who the **** is setting the output pin again? I guess it is the S12X!?

Thanks for your help!