This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Activating chip selects...???

I'm trying to access external devices on a XC161.
A0-A19 are active.
So are CS0-CS4.
ADDRSEL4 is set to 0x0400 (start at 40000h, size 4k)
Writing to 0x40000 works but CS0 is activated not CS4 ???
I have no experience with this family, so I must be doing something silly...

Startup file was generated by DAVE, but checked out to be correct.
Writing is done by use of a pointer. Is there an other/more direct way of accessing external memory/device?

Frank

Parents
  • Frank,
    as I promised, I post the answer from the DAvE authors.
    The original message is written in german, so I try to translate.
    DAvE generates a *.dpt file, which is used by the KEIL IDE to generate a project.
    Within this *.dpt file all register bitfields and bits are listed with there actual values.'Here e.g. you find that the values of ADDRSEL1_RGSAD1=256 and ADDRSEL1_RGSZ1=5 are.Exactly the registernames as given by Infineon here are used.Now it is in the responsibility of the kEIL IDE to adapt the startup file in the right way. This is not under DAvE's influence. We are sorry that we can not help you in this case, but this problem has to be solved by KEIL .


    I do not know, whether original message is usefull, so I do not post here.
    I work with two activated CS and 2 address lines ( A16...A17 ) via EBC for an SRAM and it works.
    - Stefan

Reply
  • Frank,
    as I promised, I post the answer from the DAvE authors.
    The original message is written in german, so I try to translate.
    DAvE generates a *.dpt file, which is used by the KEIL IDE to generate a project.
    Within this *.dpt file all register bitfields and bits are listed with there actual values.'Here e.g. you find that the values of ADDRSEL1_RGSAD1=256 and ADDRSEL1_RGSZ1=5 are.Exactly the registernames as given by Infineon here are used.Now it is in the responsibility of the kEIL IDE to adapt the startup file in the right way. This is not under DAvE's influence. We are sorry that we can not help you in this case, but this problem has to be solved by KEIL .


    I do not know, whether original message is usefull, so I do not post here.
    I work with two activated CS and 2 address lines ( A16...A17 ) via EBC for an SRAM and it works.
    - Stefan

Children