We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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
Why not just use the xVAR Macros from the library? Calling memcpy to set 1 byte is kinda silly and very kludgy. http://www.keil.com/support/man/docs/c166/c166_mvar.htm Jon
Thanks Jon!