??? 03/01/09 05:15 Read: times |
#162960 - NXP P89LPC936 Auxilary RAM |
I'm having some of my arrays overwritten during run time, which I'm not quite understanding why.
I'm thinking of using the onchip auxilary RAM. The user manual talks about how it has 512 bytes of it, and it looks like it uses the movx command. But I'm not writing it in assembly, so how is it done in C? While that may be useful info to know and will help me, the other question is why is my array data being over written when things like the hardware I2C funcion runs. I thought arrays weren't written to unless you code points and or adjusts the data in the array? It does initialize properly, stays the same, but when the I2C function happens, its randomly writing data to byte of my array. When I had a data set of 60 during compile, the array was fine, as I start adding more code, I'm getting these random array corruptions. Any thoughts? Thanks |