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

How do I write to a specific memory location!

Hi!

I am programming a C167CR-LM for the first time using Keil toolset. I have a 128K flash which uses CS0 (chipselect) in 8Bit demultiplexed mode.

My hardware uses the database bus and address line A0 and A1 along with CS1 to write a 8bit data to a latch (I use this output to trigger a SCR) From what I see the A0, A1 and CS1 lines are the ones which determine if I write to this latch. The problem is I set the ADDRSEL1 to start from 40000H (with 4K window size) and hoped that now whenever I use memcpy(0x040001, &cyl,1) I would be able to write to my latch because CS1 should be enabled. Unfortunately I was very wrong and now I dont know how to write to this latch.

Thanks a lot in advance!

Regards

Kumaran