Other Parts Discussed in Thread: MSP430F6736
MSP430F6736
CCS 5.2
Perhaps I shall qualify for the "stupid question of the week" award with this gem:
Working on a rather sweet setup with 4 phase LCD (8 digits and various symbols). Rather than map out individual characters I've created a simple algorithm that alters the LCD memory registers of each character position (eg high byte of LCDM1 and low byte of LCDM1 +1) driven by a small char array. Rather than have a rather annoying switch() statement to determine which character position - and thereby LCDM register - to access, I'd rather just alter the contents of the memory location directly.
It would be ideal to:
volatile unsigned int var_H=LCDM1;
volatile unsigned int var_L=LCMD2;
// or for the F6736:
var_H=0A20; // 0A20 is LCDM1
var_L=0A21; // and LCDM2
and then in a loop:
var_H &=~0xFF;
var_L &=~0xFF;
var_H |= 0xD0 ;
var_L |= 0xFF;
++var_H;
++var_L;
Something so simple as altering memory, but unless I use a defined constant, like
LCDM1 = 0xFF;
my idea fails.
Is there a function for this purpose?