XGATE For SPI

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

XGATE For SPI

1,017 Views
rlongo
Contributor I

Hi,

 

I need to communicate to a Digital to Analog converter through the SPI Port at a fast rate (1024 times in 20ms = every 19 uS), with no interruptions.I was thinking of using the XGATE to perform this task (and this task only). 

 

I'm thinking of using MC9S12XEP100CAL, and my questions are the following::::

 

1. Can I access the SPI ports from the XGATE? 

2. All the XGATE needs to do is read from a pre-defined Array of [1024] and write the values at the same rate to the Digital to Analog though SPI. How fast can the XGATE perform this task.

 

Thanks,

rlongo

Labels (1)
0 Kudos
3 Replies

354 Views
kef
Specialist I

Yes you can access SPI from XGATE. XGATE can access all peripheral registers, up to 32k of available RAM and up to ~30k of flash. Check the datasheet for details.

Yes, you can send to SPI from XGATE every 19us and much more often. 

0 Kudos

354 Views
rlongo
Contributor I

It seems that I am forced to use the Canbus through the XGate? Is this true? Looking at the attachement, I'm not sure if it implies that everything on the right hand side must be connected through the XGATE?

 

thanks,

R.Longo

0 Kudos

354 Views
CompilerGuru
NXP Employee
NXP Employee

No, just an misleading diagram. Both the XGATE and the CPU12X can access all the peripherals through the same memory mapped registers. Interrupts can be routed to either core on a per interrupt basis, in case interrupts are mapped to XGATE, the XGATE handling code can initiate CPU12X interrupts to act as "intelligent peripheral".

The use of the XGATE for any purpose is purely optional.

 

Daniel

0 Kudos