Jump to content

Search the Community

Showing results for tags 'Beginner'.

More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • News
    • Announcements
    • Suggestions
    • New users say Hi!
  • Spotlight!
    • Sponsor Spotlight
    • Sponsor Giveaways
  • Energia
    • Energia - MSP
    • Energia - TivaC/CC3XXX
    • Energia - C2000
    • Energia Libraries
  • MSP Technical Forums
    • General
    • Compilers and IDEs
    • Development Kits
    • Programmers and Debuggers
    • Code vault
    • Projects
    • Booster Packs
    • Energia
  • Tiva-C, Hercules, CCXXXX ARM Technical Forums
    • General
    • SensorTag
    • Tiva-C, Hercules, CC3XXX Launchpad Booster Packs
    • Code Vault
    • Projects
    • Compilers and IDEs
    • Development Kits and Custom Boards
  • Beagle ARM Cortex A8 Technical Forums
    • General
    • Code Snippets and Scripts
    • Cases, Capes and Plugin Boards
    • Projects
  • General Electronics Forum
    • General Electronics
    • Other Microcontrollers
  • Connect
    • Embedded Systems/Test Equipment Deals
    • Buy, Trade and Sell
    • The 43oh Store
    • Community Projects
    • Fireside Chat
  • C2000 Technical Forums
    • General
    • Development Kits
    • Code Vault
    • Projects
    • BoosterPacks


There are no results to display.

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start



Website URL





Found 8 results

  1. Bergilfan

    Hullooo ! New to mcus!

    Hello I joined this forum so I can receive guidance as I advance in knowledge in mcu and circuit design! I am currently studying for a computer engineering degree but I can't wait to start having all the fun! My friend recommended me on the msp430. My first project (besides a blinking led) is to play a classical piece on an electric buzzer! I know a microcontroller really isn't made to hold all those variables but I managed to get the first 100 notes in!! I am very pleased with it but when I take the ic out onto the breadboard I'm starting to have issues -_-'. My ultimate goal is to make a function generator so I can test equipment!
  2. This is the first PCB that I have designed and sent off to be manufactured. Yesterday I received the boards, soldered them up, and they work! This write-up outlines the process I used in the hope that it will be useful to other hobbyists and builders. There are links at the end which provide additional detail. Selecting a Project The project consists of a small board with a MSP430G2553 microcontroller and an nRF24L01 radio. I started with a radio attached with jumpers to a LaunchPad quite some time back and then built one on a proto-board. The photograph below shows a G2553 with radio powered by a buck-boost converter attached to a super capacitor and solar panel. I used it for a while with my weather station which never was quite completed. Although I could have started with that, I actually chose to start with something simpler. The goal was to focus on the PCB design process and to minimize the issues associated with a new or technically challenging project. The objectives, strategies, and constraints I decided on included the following: Inexpensive
  3. waterlogged

    I2C on a MSP430F2003

    Hey all, I've been staring at this for a while and for the life of me I can't figure it out. I've been trying to adapt the library here: http://jan.rychter.com/enblog/msp430-i2c-usi-library-released for the F2003, which should be rather straightforward, as most of the register names and functions are similar. However, I'm able to get it to build and compile, but when the code gets around to the first send command, it goes into low power mode and never actually sends it. The pins are set, the LPM0 bits are correct, the interrupt vector name is correct, and a number of other things seem to go as anticipated. It just never actually bothers to start sending the data. I have also tried this with TI sample code, with the exact same results. I don't have a logic analyzer, but from hooking an LED up to one of the pins (it's not on there when I actually attempt communication), I can be almost certain that it never attempts to send data. It appears both SDA and SCL are kept low the entire time. Thank you, and any help is appreciated. Here's main.cpp #include <msp430.h> #include "usi_i2c.h" //define addresses #define MAG_ADDR 0xE /* * main.c */ int main(void) { WDTCTL = WDTPW | WDTHOLD; // Stop watchdog timer BCSCTL1 = CALBC1_1MHZ; // Set DCO DCOCTL = CALDCO_1MHZ; __enable_interrupt(); //some sanity checking P1DIR |= BIT0; P1OUT |= BIT0; P1OUT &= ~(BIT0); //init i2c SD16AE &= ~(BIT6 | BIT7); i2c_init(USIDIV_5, USISSEL_2); uint8_t stat = 0; uint16_t MAG3110_INIT_SEQ1[] = {0x1C, 0x11, 0xFF}; uint16_t MAG3110_INIT_SEQ2[] = {0x1C, 0x10, 0x81}; uint16_t MAG3110_READZ[] = {0x1C, 0x02, I2C_RESTART, 0x1D, I2C_READ}; i2c_send_sequence(MAG3110_INIT_SEQ1,3,&stat,LPM0_bits); LPM0; _NOP(); i2c_send_sequence(MAG3110_INIT_SEQ2,3,&stat,LPM0_bits); LPM0; while (1) { P1OUT ^= BIT0; int i; for (i=0; i<0x3000; i++); } } and here's the slightly modified usi_i2c.cpp thanks to Jan Rychter /* usi_i2c.c Copyright (C) 2013 Jan Rychter Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #include <msp430.h> #include <stdint.h> #include "usi_i2c.h" // Internal state static uint16_t *i2c_sequence; static uint16_t i2c_sequence_length; static uint8_t *i2c_receive_buffer; static uint16_t i2c_wakeup_sr_bits; i2c_state_type i2c_state = I2C_IDLE; static inline void i2c_prepare_stop(); static inline void i2c_prepare_data_xmit_recv(); void i2c_send_sequence(uint16_t *sequence, uint16_t sequence_length, uint8_t *received_data, uint16_t wakeup_sr_bits) { while(i2c_state != I2C_IDLE); // we can't start another sequence until the current one is done i2c_sequence = sequence; i2c_sequence_length = sequence_length; i2c_receive_buffer = received_data; i2c_wakeup_sr_bits = wakeup_sr_bits; i2c_state = I2C_START; USICTL1 |= USIIFG; // actually start communication } static inline void i2c_prepare_stop() { USICTL0 |= USIOE; // SDA = output USISRL = 0x00; USICNT |= 0x01; // Bit counter= 1, SCL high, SDA low i2c_state = I2C_STOP; } static inline void i2c_prepare_data_xmit_recv() { if(i2c_sequence_length == 0) { i2c_prepare_stop(); // nothing more to do, prepare to send STOP } else { if(*i2c_sequence == I2C_RESTART) { USICTL0 |= USIOE; // SDA = output USISRL = 0xff; // prepare and send a dummy bit, so that SDA is high USICNT = (USICNT & 0xE0) | 1; i2c_state = I2C_START; } else if(*i2c_sequence == I2C_READ) { USICTL0 &= ~USIOE; // SDA = input USICNT = (USICNT & 0xE0) | 8; // Bit counter = 8, RX data i2c_state = I2C_RECEIVED_DATA; // next state: Test data and ACK/NACK } else { // a write // at this point we should have a pure data byte, not a command, so (*i2c_sequence >> 8) == 0 USICTL0 |= USIOE; // SDA = output USISRL = (char)(*i2c_sequence); // Load data byte USICNT = (USICNT & 0xE0) | 8; // Bit counter = 8, start TX i2c_state = I2C_PREPARE_ACKNACK; // next state: prepare to receive data ACK/NACK } i2c_sequence++; i2c_sequence_length--; } } #pragma vector = USI_VECTOR __interrupt void USI_TXRX(void) { switch(__even_in_range(i2c_state,12)) { case I2C_IDLE: break; case I2C_START: // generate start condition USISRL = 0x00; USICTL0 |= (USIGE|USIOE); USICTL0 &= ~USIGE; i2c_prepare_data_xmit_recv(); break; case I2C_PREPARE_ACKNACK: // prepare to receive ACK/NACK USICTL0 &= ~USIOE; // SDA = input USICNT |= 0x01; // Bit counter=1, receive (N)Ack bit i2c_state = I2C_HANDLE_RXTX; // Go to next state: check ACK/NACK and continue xmitting/receiving if necessary break; case I2C_HANDLE_RXTX: // Process Address Ack/Nack & handle data TX if((USISRL & BIT0) != 0) { // did we get a NACK? i2c_prepare_stop(); } else { i2c_prepare_data_xmit_recv(); } break; case I2C_RECEIVED_DATA: // received data, send ACK/NACK *i2c_receive_buffer = USISRL; i2c_receive_buffer++; USICTL0 |= USIOE; // SDA = output if(i2c_sequence_length > 1) { // If this is not the last byte USISRL = 0x00; // ACK i2c_state = I2C_HANDLE_RXTX; // Go to next state: data/rcv again } else { // last byte: send NACK USISRL = 0xff; // NACK i2c_state = I2C_PREPARE_STOP; // stop condition is next } USICNT |= 0x01; // Bit counter = 1, send ACK/NACK bit break; case I2C_PREPARE_STOP: // prepare stop condition i2c_prepare_stop(); // prepare stop, go to state 14 next break; case I2C_STOP: // Generate Stop Condition USISRL = 0x0FF; // USISRL = 1 to release SDA USICTL0 |= USIGE; // Transparent latch enabled USICTL0 &= ~(USIGE+USIOE); // Latch/SDA output disabled i2c_state = I2C_IDLE; // Reset state machine for next xmt if(i2c_wakeup_sr_bits) { _bic_SR_register_on_exit(i2c_wakeup_sr_bits); // exit active if prompted to } break; } USICTL1 &= ~USIIFG; // Clear pending flag } void i2c_init(uint16_t usi_clock_divider, uint16_t usi_clock_source) { _disable_interrupts(); USICTL0 = USIPE6+USIPE7+USIMST+USISWRST; // Port & USI mode setup USICTL1 = USII2C+USIIE; // Enable I2C mode & USI interrupt USICKCTL = usi_clock_divider + usi_clock_source + USICKPL; USICNT |= USIIFGCC; // Disable automatic clear control USICTL0 &= ~USISWRST; // Enable USI USICTL1 &= ~USIIFG; // Clear pending flag _enable_interrupts(); }
  4. Shortcircuit

    Starting Off

    Hello! I was wondering if anyone would be able to help me with starting off with the Msp430 Launchpad, as I just got it less than an hour ago and i uploaded "blink" onto it using Energia. I was wondering if anyone could provide a link/give me a course on programming with Energia, but please bear in mind that i am only 14 . And how do the "pins" in a sketch copied from Arduino correspond to those on the Launchpad? Would Pin0 on Arduino be Pin1.0 on Launchpad? you can contact me at eshanwells@gmail.com hope to hear from you (43oh community) soon! Short
  5. JVimes

    43oh vs E2E

    Quick newbie question: Is there a difference in what I should post to E2E vs the 43oh forums? They seem to fill the same niche. I got the vague impression E2E was for more serious engineers, so I've been posting my newbie question here, but I really have no idea. Thanks!
  6. Beginner's question here: The Stellaris Launchpad has "stackable headers". What does that mean? Does it mean I can use more than one Booster Pack on the same Launchpad? I would think that each pin could only act as one input/output, so what would be the purpose of "stacking"?
  7. abecedarian

    Recommended IDE for a noob?

    It's been years since I've done programming. I've played around with .NET dialects of VB and and was toying with Java a while back, but my most thorough programming experiences have been with Pascal, Applesoft Basic and TI Extended Basic on the TI-99/4A. So now that I've firmly dated myself as a product of the 1980's.... It seems a prerequisite will be C / C++ knowledge, unless someone knows of alternative IDE's, so I presume I'll need to delve into either (both?) of those. Any suggestions on good primer materials? Which leads back to the topic: which IDE would be most suitable for a beginner?
  8. Hello, as I wrote in my presentation post, I'm totally new to MCUs and programming. I've always loved to start using Arduino stuffs but, because off the cheap cost of Stellaris Launchpad, I decided to buy it. I'd like to know where can I start from in the meantime. Books, sites, tutorials, manual...anything in your mind are accepted. My goal is to realize something different from a "blinking led" Thank you very much and...thrilled to begin.