cancel
Showing results for 
Search instead for 
Did you mean: 

XPERSHARE

michaelgaus9
Associate II
Posted on February 09, 2006 at 12:20

XPERSHARE

5 REPLIES 5
michaelgaus9
Associate II
Posted on January 20, 2006 at 04:22

Hello,

I have some questions concerning sharing of the XRAM between bus master and bus slave for the ST10F269 or ST10F276 with setting bit XPERSHARE.

- Which busmode configuration has to be set to access the XRAM of the bus master with the bus slave? WR/BHE or WRL/WRH?

- If there is a 1MB address space selected (A0-A19), will the XRAM be mirrored at addresses above 100000h?

Best Regards,

looking

michaelgaus9
Associate II
Posted on January 24, 2006 at 09:53

Can anybody please help me and give an answer to my question?

Thank you.

Best Regards,

looking

najoua
Associate II
Posted on January 24, 2006 at 13:06

Hello Looking,

If the master wants to share its internal XBUS peripherals (XRAM in your case), it has to set the XPERSHARE bit in register SYSCON (before EINIT instruction).

Master Slave

HOLD <--> BREQ

HLDA <--> HLDA

BREQ <--> HOLD

Master (DP6.7 = 0, in PSW register HLDEN = 1)

Slave (DP6.7 = 1, in PSW register HLDEN = 1)

The on-chip XRAM is accessed without any wait-states, using 16-bit de-multiplexed bus cycles.

In order to be able to access the 2 XRAM modules, they must be enabled by setting XPEN bit in SYSCON register and XRAM1EN & XRAM2EN bits in XPERCON register.

For more details, please refer to the ST10F276 user's manual (section 3.4 The On-Chip XRAM).

Find enclosed an application note which could help you.

Regarding your second question, if i had well understood, it is not possible to allocate 1 Mbyte for the XRAM2. The maximum XRAM2 size is 64Kbytes that you can only reduce using XADRS3 register.

For more details, please refer to the ST10F276 user's manual (section 9.7 The XBUS Interface) where examples of memory mapping are given.

I hope this helps you,

With kind regards,

Najoua.

________________

Attachments :

ap1601910_C167CR_Master_Slave_Bus_Arbitration.pdf : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006I0KD&d=%2Fa%2F0X0000000bXN%2F5UAO1jlCuKAounSPZXuBXPwvdS7f0oqFPOKc8H6d8A4&asPdf=false
michaelgaus9
Associate II
Posted on January 25, 2006 at 07:10

Hello,

and what about the mode for 16-bit access:

WR and BHE, or

WRL and WRH?

If the slave accesses the shared XRAM of the master (let's say XRAM1 from 0xE000 - 0xEFFF), will there be also an access to the masters XRAM1 if the slave uses addresses 0x10E000 - 0x10E7FF (mirrored XRAM1) with an 20-bit bus selected (A0-A19) ?

Best regards,

looking

michaelgaus9
Associate II
Posted on February 09, 2006 at 12:20

Can anybody please help me and give an answer to my question?

Thank you.

Best Regards,

looking