Jump to content


  • Content Count

  • Joined

  • Last visited

  1. Still pulling my hair out. I want to abandon the whole interrupt idea but its is the most effective. While i am in debug: -software hops into interrupt when expected -then exits after performing commands i have inside the ISR -returns to the point where the interrupt occured -steps one line down, a line that would not trigger interrupt -jumps back into interrupt The USI interrupt can be turns on when a 5 bits of a register value has been decremented to zero. Flag is turned off by inserting value > 0 into 5-bits portion of same register. USICTL1 |= (USIIE|~(USIIFG)); //bo
  2. nexus that is a swell idea and i see that Rob agrees with you, but i was really wanting to "real-time" it . I simplified this code enough to where this should totally work. Though..... currently the interrupt is acting like The Terminator Well i should also say that i know that mine wont be any easier to read, but if the data is side scrolling then i definately wont be able to pick out a when a constant voltage is present. On mine it would display as the same binary voltage on every row. Yours would look pretty cool as the voltage is varying though, like a roaring river of red!
  3. Nice, tahnks Rob. This more of a visual experiment. I am "filling-up" the display with binary then reset and repeat, each row a new sample. So I thought it would look cool to see how the display pattern changes as the input voltage changes. Although i can't convert binary quickly the display would be much more lively in conveying dynamic measurements than a 7-segment. Multiplexing the ADC results?
  4. Good catch on the latch nexus, totally wrote my latch sequence in the wrong order. Using SPI is not really the tricky part its more of getting the ADC to run smoothly with the SPI. And I am still not 100% that movign ADC10MEM to USI Shift register (USISR) is done with the following USISR = ADC10MEM because.... So it looks like to access anything outside of the ADC block, I have to use ADC10SA (start address in memory). But the addressing mode section says that the CPU has a "Register Mode" and simply moves register contents to another with the assembly mov function (which its equi
  5. Yeah, trying to recycle parts :x I have hooked up NMOS transistors to assist with the current. The shift registers are only trigger their gates. It should be clear in the schemo, when i post it :oops: But Vdd is 5V because it's being fed directly with the MSP430, any higher and it demands more from the feed.
  6. Hey thanks for responding So I am using 3 Toshiba Tc4094 Shift registers: 1 chip for 7 rows 2 chips for 10 columns. I finalized the schematic today and totally spaced on bringing it home, i will post it tomorrow. Here's the chip pin spec and general function... It looks like these chips are using like a C2MOS logic in a transmission gate dynamic latch structure, not sure though wierd symbol... Am i correct in assuimg that I can transfer the 10-bit ADC10MEM contents to USISR by just setting them equal? The CPU will just zero pad the ADC10MEM MSB? Pretty much all of the LED
  7. Rebuilt the code with some help from http://e2e.ti.com/support/microcontroll ... 84282.aspx Got the code pumping the matrix when i leave SDO floating, plug it in no response. hmm! And nevermind about the LED issue Code.txt
  8. I am using the ADC single conversion mode and sending ADC10MEM contents to USI shift register. Do I need to turn off the ADC and USIOE when I am ready to move bits into the shiftregister and set USIOE when I am ready to send? ADC would just be controlled with ADC10SC and ENC. Any help is appreciated
  9. Hi, first post to project forums. Let me know if my forum conduct is incorrect! Programmed the MSP430G2231 to A/D an input voltage and output via USI to serial-parallel shift reigsters connected to 7X10 LED matrix. My code description is: Iterate through 7 rows. For a given row shift data in bitwise from USI SDO MSB first, latch in and output. Then row next and repeat. I ran my code using CCS and step through gets stuck on delay... Also, My SDO output is on P1.6. LED2 is on but I didn't program this. Sup? #include "msp430g2231.h" #define CLOCK BIT0; //reference bit for
  10. Hello everyone, Recently caught the MSP430 flame, hoping to make some media (prettty lights and what not) motivated projects. Background is ECE but scarce on the programming. I will thank you all in advance for your patience!
  • Create New...