Jump to content
43oh

xiaodoudou172

Members
  • Content Count

    6
  • Joined

  • Last visited

  • Days Won

    1

Reputation Activity

  1. Like
    xiaodoudou172 got a reaction from greeeg in Driving a 7 segment LCD using 2452   
    Hi! I am new to here. Several months ago I got a Launchpad with two chips 2553 & 2452 inside the box. I am really enjoying it except one thing: They have no LCD driver. Considering an external LCD module will bring terrible power consumption, I wonder if I can drive a simple 3 1/2 digits 7 segments LCD with very little power consumption.
     
    After searching the internet I found Maxim's 4 digits decoder ICM7211 might be a choice, but it is hard to access and so expensive that I cannot accept. Another choice is to use BCD to 7 segments decoder, finally I found 4543 BCD to 7 segments decoder for LCD, it can directly drive static LCD (one COM) without extra components. The 4543 functional diagram is shown below:
     

     
    The 3 1/2 digit LCD is one of the most common LCD and very easy to access. I bought one for only one dollar. But the question is 4543 can only drive a 7 segments digit while the LCD has 3 dots, one colon, '1' on the 4th digit and some other segments. MSP430 cannot drive them directly, they need special circuit. My way is to use 4070 or 4030 quad exclusive-or gate to drive them. One of the input of the gate is connected to the back panel and another is controlled by the MSP430. 
     
    The schematic is shown below:
     
     
     
    Note that 4543 and 4070 need square wave to drive the LCD (for static LCD, 60 - 90Hz may work well), PWM will be a great way to produce square wave, I only use CCR0 in TIMER0_A3 to produce a 64Hz, 50%duty square wave. CCR0 is set to 255 (128Hz), and PWM mode 4 (Toggle), so the actual PWM frequency is 64Hz.
     
    I designed a simple LCD clock with three 4543s and one 4070, and use only two XOR gates in 4070 to drive the hour's ten bit and the colon.  The clock is 12 hours mode and the colon will blink every second.
     
    To set the time, first press "MODE" for about 3 seconds, press "SET" to set hours when only hours display on the screen, then press "MODE" again to set minutes, after that, press "MODE" to finish setting. The seconds will be automatically set to zero when quitting time set mode. 
     
    I also designed a small PCB for the project. After fixing some bugs it works well now.
     
    Front:
     
     
    Back:
     
     
    A 22uF capacitor is in parallel connection with the battery, the clock can continuously run about 15 seconds after taking the battery away. A CR2032 coin cell is at 3V and the minimum supply voltage of MSP430G2452  is 1.8V, which meas the total consumption of the project is (3 -1.8)v / 15s x 22u = 1.76uA, a 200mAh CR2032 coin cell may let the clock running for about 13 years, considering the lifetime of a coin cell, it probably may work for about 5 years.
     
    The software is written using CCS, grace makes things so convenient. 
     
    Code for the project can be downloaded here, sorry for the original Eagle file is in my school's PC, I will upload them as soon as I return to school.
    LCD Clock.rar
    Update?I updated the software version to make the main function shorter, and added a full display of every used segments when power on. The new version with Eagle files (SCH only, sorry) can be download here:
    LCD Clock V2.rar
  2. Like
    xiaodoudou172 got a reaction from Rickta59 in Driving a 7 segment LCD using 2452   
    Hi! I am new to here. Several months ago I got a Launchpad with two chips 2553 & 2452 inside the box. I am really enjoying it except one thing: They have no LCD driver. Considering an external LCD module will bring terrible power consumption, I wonder if I can drive a simple 3 1/2 digits 7 segments LCD with very little power consumption.
     
    After searching the internet I found Maxim's 4 digits decoder ICM7211 might be a choice, but it is hard to access and so expensive that I cannot accept. Another choice is to use BCD to 7 segments decoder, finally I found 4543 BCD to 7 segments decoder for LCD, it can directly drive static LCD (one COM) without extra components. The 4543 functional diagram is shown below:
     

     
    The 3 1/2 digit LCD is one of the most common LCD and very easy to access. I bought one for only one dollar. But the question is 4543 can only drive a 7 segments digit while the LCD has 3 dots, one colon, '1' on the 4th digit and some other segments. MSP430 cannot drive them directly, they need special circuit. My way is to use 4070 or 4030 quad exclusive-or gate to drive them. One of the input of the gate is connected to the back panel and another is controlled by the MSP430. 
     
    The schematic is shown below:
     
     
     
    Note that 4543 and 4070 need square wave to drive the LCD (for static LCD, 60 - 90Hz may work well), PWM will be a great way to produce square wave, I only use CCR0 in TIMER0_A3 to produce a 64Hz, 50%duty square wave. CCR0 is set to 255 (128Hz), and PWM mode 4 (Toggle), so the actual PWM frequency is 64Hz.
     
    I designed a simple LCD clock with three 4543s and one 4070, and use only two XOR gates in 4070 to drive the hour's ten bit and the colon.  The clock is 12 hours mode and the colon will blink every second.
     
    To set the time, first press "MODE" for about 3 seconds, press "SET" to set hours when only hours display on the screen, then press "MODE" again to set minutes, after that, press "MODE" to finish setting. The seconds will be automatically set to zero when quitting time set mode. 
     
    I also designed a small PCB for the project. After fixing some bugs it works well now.
     
    Front:
     
     
    Back:
     
     
    A 22uF capacitor is in parallel connection with the battery, the clock can continuously run about 15 seconds after taking the battery away. A CR2032 coin cell is at 3V and the minimum supply voltage of MSP430G2452  is 1.8V, which meas the total consumption of the project is (3 -1.8)v / 15s x 22u = 1.76uA, a 200mAh CR2032 coin cell may let the clock running for about 13 years, considering the lifetime of a coin cell, it probably may work for about 5 years.
     
    The software is written using CCS, grace makes things so convenient. 
     
    Code for the project can be downloaded here, sorry for the original Eagle file is in my school's PC, I will upload them as soon as I return to school.
    LCD Clock.rar
    Update?I updated the software version to make the main function shorter, and added a full display of every used segments when power on. The new version with Eagle files (SCH only, sorry) can be download here:
    LCD Clock V2.rar
  3. Like
    xiaodoudou172 got a reaction from spirilis in Driving a 7 segment LCD using 2452   
    Uuh... I typically buy these electronic components on a online store named TAOBAO in my country, I think Ebay may also sell a similar LCD with the same looking. The LCD library in EAGLE is H1333C, originally designed for ICL7106. You can google "3 1/2 digit LCD"  for more information.
  4. Like
    xiaodoudou172 got a reaction from oPossum in Driving a 7 segment LCD using 2452   
    Hi! I am new to here. Several months ago I got a Launchpad with two chips 2553 & 2452 inside the box. I am really enjoying it except one thing: They have no LCD driver. Considering an external LCD module will bring terrible power consumption, I wonder if I can drive a simple 3 1/2 digits 7 segments LCD with very little power consumption.
     
    After searching the internet I found Maxim's 4 digits decoder ICM7211 might be a choice, but it is hard to access and so expensive that I cannot accept. Another choice is to use BCD to 7 segments decoder, finally I found 4543 BCD to 7 segments decoder for LCD, it can directly drive static LCD (one COM) without extra components. The 4543 functional diagram is shown below:
     

     
    The 3 1/2 digit LCD is one of the most common LCD and very easy to access. I bought one for only one dollar. But the question is 4543 can only drive a 7 segments digit while the LCD has 3 dots, one colon, '1' on the 4th digit and some other segments. MSP430 cannot drive them directly, they need special circuit. My way is to use 4070 or 4030 quad exclusive-or gate to drive them. One of the input of the gate is connected to the back panel and another is controlled by the MSP430. 
     
    The schematic is shown below:
     
     
     
    Note that 4543 and 4070 need square wave to drive the LCD (for static LCD, 60 - 90Hz may work well), PWM will be a great way to produce square wave, I only use CCR0 in TIMER0_A3 to produce a 64Hz, 50%duty square wave. CCR0 is set to 255 (128Hz), and PWM mode 4 (Toggle), so the actual PWM frequency is 64Hz.
     
    I designed a simple LCD clock with three 4543s and one 4070, and use only two XOR gates in 4070 to drive the hour's ten bit and the colon.  The clock is 12 hours mode and the colon will blink every second.
     
    To set the time, first press "MODE" for about 3 seconds, press "SET" to set hours when only hours display on the screen, then press "MODE" again to set minutes, after that, press "MODE" to finish setting. The seconds will be automatically set to zero when quitting time set mode. 
     
    I also designed a small PCB for the project. After fixing some bugs it works well now.
     
    Front:
     
     
    Back:
     
     
    A 22uF capacitor is in parallel connection with the battery, the clock can continuously run about 15 seconds after taking the battery away. A CR2032 coin cell is at 3V and the minimum supply voltage of MSP430G2452  is 1.8V, which meas the total consumption of the project is (3 -1.8)v / 15s x 22u = 1.76uA, a 200mAh CR2032 coin cell may let the clock running for about 13 years, considering the lifetime of a coin cell, it probably may work for about 5 years.
     
    The software is written using CCS, grace makes things so convenient. 
     
    Code for the project can be downloaded here, sorry for the original Eagle file is in my school's PC, I will upload them as soon as I return to school.
    LCD Clock.rar
    Update?I updated the software version to make the main function shorter, and added a full display of every used segments when power on. The new version with Eagle files (SCH only, sorry) can be download here:
    LCD Clock V2.rar
  5. Like
    xiaodoudou172 got a reaction from RobG in Driving a 7 segment LCD using 2452   
    Hi! I am new to here. Several months ago I got a Launchpad with two chips 2553 & 2452 inside the box. I am really enjoying it except one thing: They have no LCD driver. Considering an external LCD module will bring terrible power consumption, I wonder if I can drive a simple 3 1/2 digits 7 segments LCD with very little power consumption.
     
    After searching the internet I found Maxim's 4 digits decoder ICM7211 might be a choice, but it is hard to access and so expensive that I cannot accept. Another choice is to use BCD to 7 segments decoder, finally I found 4543 BCD to 7 segments decoder for LCD, it can directly drive static LCD (one COM) without extra components. The 4543 functional diagram is shown below:
     

     
    The 3 1/2 digit LCD is one of the most common LCD and very easy to access. I bought one for only one dollar. But the question is 4543 can only drive a 7 segments digit while the LCD has 3 dots, one colon, '1' on the 4th digit and some other segments. MSP430 cannot drive them directly, they need special circuit. My way is to use 4070 or 4030 quad exclusive-or gate to drive them. One of the input of the gate is connected to the back panel and another is controlled by the MSP430. 
     
    The schematic is shown below:
     
     
     
    Note that 4543 and 4070 need square wave to drive the LCD (for static LCD, 60 - 90Hz may work well), PWM will be a great way to produce square wave, I only use CCR0 in TIMER0_A3 to produce a 64Hz, 50%duty square wave. CCR0 is set to 255 (128Hz), and PWM mode 4 (Toggle), so the actual PWM frequency is 64Hz.
     
    I designed a simple LCD clock with three 4543s and one 4070, and use only two XOR gates in 4070 to drive the hour's ten bit and the colon.  The clock is 12 hours mode and the colon will blink every second.
     
    To set the time, first press "MODE" for about 3 seconds, press "SET" to set hours when only hours display on the screen, then press "MODE" again to set minutes, after that, press "MODE" to finish setting. The seconds will be automatically set to zero when quitting time set mode. 
     
    I also designed a small PCB for the project. After fixing some bugs it works well now.
     
    Front:
     
     
    Back:
     
     
    A 22uF capacitor is in parallel connection with the battery, the clock can continuously run about 15 seconds after taking the battery away. A CR2032 coin cell is at 3V and the minimum supply voltage of MSP430G2452  is 1.8V, which meas the total consumption of the project is (3 -1.8)v / 15s x 22u = 1.76uA, a 200mAh CR2032 coin cell may let the clock running for about 13 years, considering the lifetime of a coin cell, it probably may work for about 5 years.
     
    The software is written using CCS, grace makes things so convenient. 
     
    Code for the project can be downloaded here, sorry for the original Eagle file is in my school's PC, I will upload them as soon as I return to school.
    LCD Clock.rar
    Update?I updated the software version to make the main function shorter, and added a full display of every used segments when power on. The new version with Eagle files (SCH only, sorry) can be download here:
    LCD Clock V2.rar
  6. Like
    xiaodoudou172 got a reaction from spirilis in Driving a 7 segment LCD using 2452   
    Hi! I am new to here. Several months ago I got a Launchpad with two chips 2553 & 2452 inside the box. I am really enjoying it except one thing: They have no LCD driver. Considering an external LCD module will bring terrible power consumption, I wonder if I can drive a simple 3 1/2 digits 7 segments LCD with very little power consumption.
     
    After searching the internet I found Maxim's 4 digits decoder ICM7211 might be a choice, but it is hard to access and so expensive that I cannot accept. Another choice is to use BCD to 7 segments decoder, finally I found 4543 BCD to 7 segments decoder for LCD, it can directly drive static LCD (one COM) without extra components. The 4543 functional diagram is shown below:
     

     
    The 3 1/2 digit LCD is one of the most common LCD and very easy to access. I bought one for only one dollar. But the question is 4543 can only drive a 7 segments digit while the LCD has 3 dots, one colon, '1' on the 4th digit and some other segments. MSP430 cannot drive them directly, they need special circuit. My way is to use 4070 or 4030 quad exclusive-or gate to drive them. One of the input of the gate is connected to the back panel and another is controlled by the MSP430. 
     
    The schematic is shown below:
     
     
     
    Note that 4543 and 4070 need square wave to drive the LCD (for static LCD, 60 - 90Hz may work well), PWM will be a great way to produce square wave, I only use CCR0 in TIMER0_A3 to produce a 64Hz, 50%duty square wave. CCR0 is set to 255 (128Hz), and PWM mode 4 (Toggle), so the actual PWM frequency is 64Hz.
     
    I designed a simple LCD clock with three 4543s and one 4070, and use only two XOR gates in 4070 to drive the hour's ten bit and the colon.  The clock is 12 hours mode and the colon will blink every second.
     
    To set the time, first press "MODE" for about 3 seconds, press "SET" to set hours when only hours display on the screen, then press "MODE" again to set minutes, after that, press "MODE" to finish setting. The seconds will be automatically set to zero when quitting time set mode. 
     
    I also designed a small PCB for the project. After fixing some bugs it works well now.
     
    Front:
     
     
    Back:
     
     
    A 22uF capacitor is in parallel connection with the battery, the clock can continuously run about 15 seconds after taking the battery away. A CR2032 coin cell is at 3V and the minimum supply voltage of MSP430G2452  is 1.8V, which meas the total consumption of the project is (3 -1.8)v / 15s x 22u = 1.76uA, a 200mAh CR2032 coin cell may let the clock running for about 13 years, considering the lifetime of a coin cell, it probably may work for about 5 years.
     
    The software is written using CCS, grace makes things so convenient. 
     
    Code for the project can be downloaded here, sorry for the original Eagle file is in my school's PC, I will upload them as soon as I return to school.
    LCD Clock.rar
    Update?I updated the software version to make the main function shorter, and added a full display of every used segments when power on. The new version with Eagle files (SCH only, sorry) can be download here:
    LCD Clock V2.rar
  7. Like
    xiaodoudou172 got a reaction from AnthonyKl in Real-Time Clock (RTC) Library for the MSP430/LaunchPad   
    Hallo I have download your library and it was working fine. But I have a question: why you set the ACLK divided by 8 while the timer clock is also divided by 8? I don't get it.
  8. Like
    xiaodoudou172 got a reaction from sirri in Real-Time Clock (RTC) Library for the MSP430/LaunchPad   
    Hallo I have download your library and it was working fine. But I have a question: why you set the ACLK divided by 8 while the timer clock is also divided by 8? I don't get it.
×
×
  • Create New...