Question

In: Electrical Engineering

in the MSP430FR6989 what bits are set to “turn on” LCD_B1?  

in the MSP430FR6989 what bits are set to “turn on” LCD_B1?  

Solutions

Expert Solution

void init_LCD(void)

{

    LCDCCTL0 &= ~LCDON;                                 // LCD OFF condition

    LCDCCTL0 = LCDDIV_2 + LCDPRE__4 + LCD4MUX + LCDLP; // Freq_lcd = 512 Hz; Freq_frame = 64 Hz

    LCDCMEMCTL = LCDCLRM;                               // clr memory

    //LCDCVCTL = LCD2B;                                 // 1/3 bias

    LCDCPCTL0 = 0xFFFF;                                 // enable Segments

    LCDCPCTL1 = 0xFFFF;                                 // enable segments

    LCDCPCTL2 = 0x7FFF;                                 // enable segments

    LCDCCTL0 |= LCDON;                                  // Turn of LCD

}


Related Solutions

Q8. If the bits 0 and 2 of P1IN are set, then toggle all the bits...
Q8. If the bits 0 and 2 of P1IN are set, then toggle all the bits of P1OUT simultaneously except the bit 4, else toggle only the bit 4 of P1OUT.
Using C (not C++): setFirst - returns value with n upper bits set to 1 and...
Using C (not C++): setFirst - returns value with n upper bits set to 1 and 32-n lower bits set to 0 * You may assume 0 <= n <= 32 * Example: setFirst(4) = 0xF0000000 * Legal ops: ! ~ & ^ | + << >> (NO IF OR FOR LOOPS) * Max ops: 10 * Rating: 2
Have to use C language Pseudocode A #define called BITS should be set at the top...
Have to use C language Pseudocode A #define called BITS should be set at the top of the program. It should be set to 8 when the program is submitted. This define should be used throughout the entire program when setting/using array sizes/max element. This define will also be used in the output to print 8-bit vs 16 bit. Your program should function whether the define is set to 8 or to 16. Part of the grading process will be...
Rotating bits in C This rotates bits to the left which means the bits that were...
Rotating bits in C This rotates bits to the left which means the bits that were shifted off are then moved to the right side. I need B5DE1FAA to become 7787EAAD uiOrig = B5DE1FAA k = 6 unsigned int rotateLeft(unsigned int uiOrig, int k){ }
a) Create a program for the msp430FR6989 .You will use need to program it to be...
a) Create a program for the msp430FR6989 .You will use need to program it to be able to use a external pulse switch to start/stop the blinking of LED1, and a second pulse switch to control the blinking of LED2. b) Modify Program #1 (b) to blink the number of times on the data switches once the pulse switch is engaged
A machine is set to turn out ball bearings having a radius of 1 centimeter. A...
A machine is set to turn out ball bearings having a radius of 1 centimeter. A sample of 10 ball bearings produced by this machine has a mean radius of 1.004 centimeters with a standard deviation of 0.003 centimeters. Is there any reason to suspect the machine is turning out ball bearings having a mean radius different than 1 centimeter?
13. A digital computer has a memory unit with 32 bits per word. The instruction set...
13. A digital computer has a memory unit with 32 bits per word. The instruction set consists of 260 different operations. All instructions have an operation code part (opcode) and an address part (allowing for only one address). Each instruction is stored in one word of memory. a) How many bits are needed for the opcode? b) How many bits are left for the address part of the instruction? c) What is the maximum allowable size for memory? d) What...
A digital computer has a memory unit with 32 bits per word. The instruction set consists...
A digital computer has a memory unit with 32 bits per word. The instruction set consists of 122 different operations. All instructions have an operation code part (opcode) and an address part (allowing for only one address). Each instruction is stored in one word of memory. a) How many bits are needed for the opcode? b) How many bits are left for the address part of the instruction? c) What is the maximum allowable size for memory? d) What is...
1. write a program for the msp430fr6989 that will light LED1, whenever S1 is pressed. It...
1. write a program for the msp430fr6989 that will light LED1, whenever S1 is pressed. It should turn off whenever S1 is released. 2. Write a program that will make LED1 blink 5 times when S1 is pressed, and then stop.
Write a program that copies the even number of bits from a into the corresponding bits...
Write a program that copies the even number of bits from a into the corresponding bits in b ,only use bit-manipulation instructions, no loop int main () { uint_32 a = 0 xaabbccdd ; uint_32 b = 0 x11223344 ; // Replace bits 0 ,2 ,4 ,... of b with bits 0 ,2 ,4 ,... from a . uint_32 result = ...; // Print out the result as a hexadecimal number }
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT