Porting code to MSP430

I took a little time to look into porting code written for AVR in order to run it on the MSP430¬†architecture. It’s easier than you think, being mostly small differences like an extra step to enable pull-up resistors. But there is a lot to be learned in order to transition away from using EEPROM.

Since the TI chips don’t have EEPROM you need to use the Info Flash, a topic which I detail in the article linked at the top. This flash memory must be erased before writing because a write operation can only change high bits to low, not the other way around. And an erase operation clears an entire 64 kB segment, not just the bytes you want to write to. It’s different but manageable.

Oh, and if you were wondering, I ported the code I wrote for the garage door coded entry project.

Follow

Get every new post delivered to your Inbox.

Join 96,312 other followers