Jump to content

shluzzzoid

Members
  • Content Count

    19
  • Joined

  • Last visited

  • Days Won

    1

shluzzzoid last won the day on April 19 2013

shluzzzoid had the most liked content!

About shluzzzoid

  • Rank
    Member
  • Birthday 02/09/1983

Contact Methods

  • Website URL
    http://www.shelezyakin.ru/

Profile Information

  • Gender
    Not Telling
  1. shluzzzoid

    ds1394 RTC + led driver tm1638

    New: - RGB-Led control
  2. Hello everyone! This is my project a watch with function control RGB-LED tape for the bedroom. Video: Project: http://forum.43oh.com/topic/3727-ds1394-rtc-led-driver-tm1638/ Code: http://sourceforge.net/projects/msp430clock/
  3. shluzzzoid

    MSP430g2553 with PCF8574N - Help

    You are assured, what the address correct? Try to use my project: #include "i2c.h" #define SDA BIT7 //P1.7 #define SCL BIT6 //P1.6 #define LED BIT0 //P1.0 void i2c_init(void){ P1DIR |= SCL | SDA | LED; // Set SCL, SDA and LED as Output P1REN |= SCL | SDA; // Set Pull-Ups on SCL and SDA // enable SDA, SCL, SCLK, i2c mode, MSB, output enabled, hold in reset USICTL0 = USIPE7 | USIPE6 | USIMST | USIOE | USISWRST; // USICTL0 Upper 8bit Register of 16bit USICTL Register // USIPE7 = P1.7 USI Mode, i2c SDA enabled // USIPE6 = P1.6 USI Mode, i2c SCL enabled // USIPE5 = P1.5 USI Mode, i2c Clock Input? (Not Set) // USILSB = LSB Mode (Not Set = MSB) // USIMST = Master Mode // USIGE = Output Latch (Not Set = Clock Controlled) // USIOE = Data Output Enable // USISWRST = USI Software Reset (Set to allow changing settings) // SMCLK / 128, and Reverse Clock Polarity USICKCTL = USIDIV_7 + USISSEL_2 + USICKPL; // USICKCTL 8bit USI Clock Control Register // USIDIVx = Clock Divider (Bit7-5, USIDIV_7 = Divide by 128) // USISSELx = Clock Source (For Master Mode, Bit4-2, USISSEL_2 = SMCLK) // USICKPL = Clock Polarity (0 = Inactive Low, 1 = Inactive High) // USISWCLK = Software Clock State // I2C Mode USICTL1 = USII2C; // USICTL1 Lower 8bit Register of 16bit USICTL Register // USICKPH = Clock Phase (0 = Data Changed, then Captured, 1 = Data Captured, then Changed) // USII2C = I2C mode // USISTTIE = START condition Interrupt // USIIE = USI Counter Interrupt // USIAL = Arbitration Lost Notification // USISTP = STOP condition Notification // USISTTIFG = START condition Int. Flag // USIIFG = USI Counter Int. Flag // release from reset USICTL0 &= ~USISWRST; } void i2c_start(void) { // Send i2c START condition USISRL = 0x00; // Load USISRL Lower Byte Shift Register MSB with 0 for i2c START USICTL0 |= USIGE | USIOE; // Force Output Latch, And Enable Data Output Bit (High to Low SDA while SCL is High) USICTL0 &= ~USIGE; // Clear Output Latch (Return to Clock Control) } void i2c_stop(void){ // Prepare i2c STOP condition USICTL0 |= USIOE; // Enable Data Output Bit (Turn SDA into Output) USISRL = 0x00; // Load USISRL Lower Byte Shift Register MSB with 0 for i2c STOP USICNT = 1; // Load USICNT Counter with number of Bits to Send. USIIFG Auto-Cleared // Data TXed by USI I2C while((USICTL1 & USIIFG) != 0x01); // Delay, Wait for USIIFG, Counter down to 0 // Send i2c STOP condition USISRL = 0xFF; // Load USISRL Lower Byte Shift Register MSB with 1 for i2c STOP USICTL0 |= USIGE; // Force Output Latch (Low to High SDA while SCL is High) USICTL0 &= ~USIOE & ~USIGE ; // Clear Data Output Enable Bit and Output Latch (Release SCL) } uint8_t i2c_write8(uint8_t c) { // TX USICTL0 |= USIOE; // Enable Data Output Bit (Turn SDA into Output) USISRL = c; // Load USISRL Lower Byte Shift Register with 8 Bit data (Byte) USICNT = 8; // Load USICNT Counter with number of Bits to Send. USIIFG Auto-Cleared // Data TXed by USI I2C while((USICTL1 & USIIFG) != 0x01); // Delay, Wait for USIIFG, Counter down to 0 // RX // Data TXed. Ready to Receive (n)ACK from i2c Slave USICTL0 &= ~USIOE; // Clear Data Output Enable Bit (Turn SDA into Input) USICNT = 1; // Load USICNT Counter with number of Bits to Receive. USIIFG Auto-Cleared // Data RXed by USI I2C while((USICTL1 & USIIFG) != 0x01); // Delay, Wait for USIIFG, Counter down to 0 c = USISRL; // LSB of USISRL Holds Ack Status of 0 = ACK (0x00) or 1 = NACK (0x01) return c; // Return Data }
  4. shluzzzoid

    ds1394 RTC + led driver tm1638

    Device:
  5. shluzzzoid

    Camera Intervalometer With LCD

    I have a Canon EOS 400D Camera and i can test this with my camera
  6. shluzzzoid

    Using Stellaris Launchpad as a Thermometer

    Hi! I tried to compile the project, but the CCS 5.3 gives an error ...
  7. shluzzzoid

    (Universal) Color LCD graphics library

    hello! Can I use this library for LCD HD66760? This display driver from the Sony Ericsson T68: Lcd chip: custom HD66760 (device address 0x72 )/ UC1682 I2c address:0x72 / 0x74 / 0x70 (3 chip version) Resolution: 101x80 RGB
  8. shluzzzoid

    ds1394 RTC + led driver tm1638

    Project is updated! Now it have a simple menu: - Setting / alarm / time / date / brightness
  9. shluzzzoid

    ds1394 RTC + led driver tm1638

    Project is updated!
  10. shluzzzoid

    ds1394 RTC + led driver tm1638

    Hello! This is my project Real Time Clock. The project used RTC module ds1394, temperature sensor ds18b20 and driver 7-segment display tm1638. msp430g2553 MCU integrates devices with two hardware ports SPI (USART1, USART2). Clock Functions:- Showing the time, date, day of the week; - Set the alarm; - Shows the temperature of the sensor ds18b20; - Control the brightness of the indicator. Video: Russian description Source code Video: My project site Project includes: - DS1394 msp430 launchpad interface - ds18b20 maxim + msp430 launchpad - Library for TM1638 to MSP430 PS: my son was born! Now I do not know whether the time to continue the projects. I hope that I can find the time to do a good description of the projects. PPS: Sorry for my english...
  11. shluzzzoid

    TM1638 LEDs interface _version 1.7.0 available!

    Thank you, roadrunner84. The next version of the library already contains hexadecimal digits in the array "Num[]". In addition, the library code reworked and optimized.
  12. shluzzzoid

    TM1638 LEDs interface _version 1.7.0 available!

    Code Updates on sourceforge.net
  13. shluzzzoid

    Hi from Eugene! (Russia, Omsk)

    Hi! My location now - also St. Petersburg
  14. shluzzzoid

    Hi from Eugene! (Russia, Omsk)

    Thank You! We must think about this.
  15. shluzzzoid

    Code::Blocks + mspgcc how-to.

    Thank you! Copy and translate to Russian: http://www.shelezyakin.ru/?p=816
×