-
Content Count
11 -
Joined
-
Last visited
About kerplatz
-
Rank
Member
- Birthday 08/10/1962
Contact Methods
-
Website URL
http://www.davidhoffmaniowa.us
Profile Information
-
Gender
Male
-
Location
Ames Iowa
-
Interests
Software, computers, and electronics
-
I need an accurate delay function. I think I have most of the code, but I have one problem I can't seem to solve. I need the delay because my LCD functions take time to complete and the function does not happen if I don't give it time to complete. For example, my LCD can turn off the back light by just giving it a command and if I don't wait long enough, the back light will not turn off. Here is what I have done. //Timer_A1 Interrupt Initialization TA1CCTL0 = CCIE; // CCR0 interrupt enabled TA1CCR0 = 0; TA1CTL = TASSEL_2 + MC_1 + ID_3; // SMCLK/8 (500
-
The problem is solved by ordering the correct LCD which is the SPI one. This will free up enough pins that I can control my 5V and the LCD back light thereby conserving a lot of power, and I get my input switched on there own pins. I even one pin left over. I just hope this all works now. Thanks for all your help and ideas.
-
So we had a team meeting tonight and all hell broke loose. I am not happy about what was decided. This device needed to be as low power as possible to run on a battery of around 6 to 7 VDC for months. That just went right out the door. We may get days of usage using the design of our power supplies which are LDOs of 3.3VDC and 5VDC. There is no power management so the power for the 5V will be on all the time. Try as I might, I could never get the LCD data pins to behave with the switches, so I will use a 4 to 1 mux in place of the 5V shutdown pin. That solves the lack of pins problem, I ho
-
Turns out semicolo is mostly right. I did need to make the pins outputs again. I just made these functions and called them in the SendByte() function. // void enableSwitches() { // P2IN |= BIT3 | BIT4 | BIT5; P2REN |= BIT3 | BIT4 | BIT5; P2IES |= BIT3 | BIT4 | BIT5; P2IE |= BIT3 | BIT4 | BIT5; P2IFG &= ~(BIT3 | BIT4 | BIT5); _enable_interrupt(); } // void disableSwitches() { // P2OUT |= BIT3 | BIT4 | BIT5; P2REN &= ~(BIT3 | BIT4 | BIT5); P2IE &= ~(BIT3 | BIT4 | BIT5); P2IFG &= ~(BIT3 | BIT4 | BIT5); } However, the LCD is no longer blank, but it is doing
-
Hi, I hope I ask this question in a way you understand what I am trying to accomplish. Here goes. I am out of pins to use an my MSP430G2553. Here is the list. Have 16 pins I can use: 4 - SD card using SPI 3 - ADC channels 6 - Parallel LCD 2 - External Crystal (Pins 18 and 19) 1 - Shut down 5VDC signal I still need up to 4 more pins. I could use a different MSP430, but that is not an option. I could use a 2 to 8 demux and put the LCD and 5v shut down on it. But I worry that the demux will use 5v and I want to put this into a LMP3 state with the 5v power off during that time. T
-
Here is my problem in a nut shell. I can't get a ST7920 which is a Parallel/serial LCD to work in SPI mode. It works great in Parallel mode. I want to use the SPI for both my SD card and LCD. As of now I can read and write to the SD card using SPI, but the LCD is not working. It still does not work if I remove the SD card and all its code. I even tried to adapt the nokia 5110 code I found for the MSP430 too, but no luck. I have another LCD on order which is this one http://www.newhavendisplay.com/specs/NHD-0216K3Z-FL-GBW-V3.pdf. It seems to be a better fit. It follows the SPI protocol like
-
Please don't close this thread, I will return to this problem later. I have another more pressing problem to deal with.
-
Thanks for all the great suggestions and code. I will take a look at everything over the coming days and see what will work best for me. I do want to make some clarifications and ask some additional questions. First question. I am not apposed to using an external crystal. The problem is I will be going from a internal timing source that is higher than 32KHz to one that is 32Khz which is what came with the MSP430? How is that going to be fast enough to run the code? Seems really slow to me. I understand that it is more stable and therefore more accurate. Since potentially being off by a min
-
So I really appreciate the examples, but what I was hoping for was something very simple. 1. No external crystal. 2. No external RTC. 3. A timer that counts the number of ticks in a second based on the system clock. 4. An interrupt is thrown when the timer reaches one second. I will have to change a lot of the code given for the RTC and I was really wanting to avoid that. I assume then that TI never did a clock like I described, or even a RTC for the MSP430! I don't know all the defined macros well enough to do this. However, if someone knows a really good guide for learning ho
-
Hi, I have looked for quite some time and I have been unable to find a reasonable RTC for my MSP430G2553. Here is my problem. I fear that I am getting close to exhausting all my memory so I don't want to add a lot of code that I don't need to my project. I am doing a data logger and I need to log data in settable increments of 1 second. If I could just get a timer on an interrupt that does not use an external crystal, that would be great. If I could use the WDT, that would be great but not necessary. Can someone help me find what I am looking for? The ability to count seconds is what I
-
I used the example code for the LCD - Hello World. I set up my LCD with the correct wires connected the the port 2 pins. RS // P2.0 EN // P2.1 D7 // P2.5 D6 // P2.4 D5 // P2.3 D4 // P2.2 Everything works fine. I now leave the LCD wired and create code in CCS 5.3 using the same pins and added this also. I attached the code. #define LCM_DIR P2DIR #define LCM_OUT P2OUT Now the display is blank. I had my code and the LCD working in CCS using other pins on port 1. You will see th