This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320F28335: 16 bit array in 32 bit external ram?

Part Number: TMS320F28335

If I implement 32 bit external ram for the TMS320F28335 and put a 16 bit array in it is the only penalty that it's not memory efficient?  Will reads, writes, and bitwise operations will still work correctly?  If I cast it to a 32 bit pointer will the upper bits of every 32 bit value be zero?  I'm just trying to wrap my head around the best way to proceed, 16 or 32 bit RAM.  I guess I could add both types at different memory locations but would that get messy?

So many questions....

Andrew Barnes

  • Hi Andrew,

    All the operations would work and also if it's 16bit array then it would place two elements in 32bit so I don't think there would be any penalty. It's just like any internal RAM which are 32bit. If you typecast the pointer to 32bit and only provide 16bit data then other (MSB) 16bit will be zero.

    Regards,
    Vivek Singh