Jump to content
43oh

oPossum

Members
  • Content Count

    925
  • Joined

  • Last visited

  • Days Won

    103

Everything posted by oPossum

  1. TCA5405 Low Voltage 5-Bit Self-Timed, Single-Wire Output Expander (pdf) TCA7408 Low-voltage 8-bit I2C I/O Expander with Interrupt Output Reset I/O Direction Registers (pdf) Note: Only available as uQFN and BGA package TPL0401A-10 128 Taps Digital Potentiometer with I2C Interface (pdf) TLC59108 8-Bit Fast Mode Plus (FM+) I2C Bus Constant-Current LED Sink Driver (pdf)
  2. CCS requires labels in asm code to begin in the first column, so leading spaces will cause problems. This is typical for assembler code. Firefox may have problems with copy/paste from the forum. Chrome, Safari and IE seem to work as expected. To use the printf() with an LCD, just create a function named putc() that sends a single character to the LCD. If you find some sample code for LCD, there will probably a function that does this - just rename it. You will also need a puts() function. That can be this... void puts(char *s) { while(*s) putc(*s++); }
  3. I ordered 3 on 12/8, and got rev 1.4 So I immediately ordered 3 more on 12/13 and got rev 1.5 Also ordered some 2553 and 2453 just in case I got more 1.4. The 2553 is backordered until 1/14/2012 and the 2452 until 12/28/2011
  4. I would use a PIC10F200. Cheap and versatile. I can't think of an analog circuit much simpler than what you posted. This is the best I could do... http://www.falstad.com/circuit/#%24+1+5 ... 25+1+-1%0A
  5. Usual price is $25. The Microstick is a low cost dev board for the 16 bit Microchip PIC. It has a built in programmer/debugger like the Launchpad, so you don't need any other hardware to program it. The 16 bit PIC are typically twice as fast as MSP430 at the same clock frequency, and in some very specific cases may be 10 to 100 times as fast. They have Peripheral Pin Select (PPS) that allows many of the hardware peripheral to be mapped to any convenient pin. link If you want to play with the new DIP PIC32 (MIPS) chips, the $35 Microstick II will work with all 3.3V PIC24FJ
  6. What errors? Make sure the brackets are paired properly. while( 1 ) { if(P1IN & BIT3) { // Push button up when bit 3 == 1 P1OUT |= LED_1; // Set LED on when button down } else { P1OUT &= ~LED_1; // Set LED off when button off } }
  7. 12 KV @ 10 mA is 120 Watts. With an efficiency of 70%, you would need about 170 Watts of power. A boost converter using an inductor is not really practical at this power level. A multiplier could be part of the solution, but only with an input that is many kV. A flyback transformer from a 19 to 27 inch TV will probably be close to what you need. Not a problem with a high frequency supply. If you want to run from batteries, then you will have much more weight. 12 kV @ 10 mA is a potentially lethal. If it doesn't kill you it will hurt you in a way you will never forget. Don't w
  8. if(P1IN & BIT3) { // true when P1.3 is high if(!(P1IN & BIT3)) { // true when P1.3 is low
  9. You also need serial.asm from here It will all fit in a 2211/2231.
  10. Rotate rx/tx jumpers 90 degrees for hardware UART. This is marked on the PCB just below the jumper block.
  11. 12,000 volts? Use a NST or a TV flyback without the tripler
  12. unsigned state, c, n, addr, fgr, fgg, fgb, bgr, bgg, bgb, mkr, mkg, mkb; for(state = 0; { c = getc(); if(c == '<') { state = 1; } else if(c == '>') { if(state == 11) { // End of packet - do something } state = 0; } else if(c >= '0' && c <= '9') { n = c - '0'; if(state > 1 && n > 1) state = 0; switch(state) { case 1: ++state; addr = n; break; case 2: ++state; fgr = n; break; case 3: ++state; fgg = n; break; case 4: ++state; fgb = n; break;
  13. The Dickson and Cockcroft-Walton multipliers can have many stages, but require a 2 phase clock. Using a 555 only provides one clock phase, so it is limited to doubling or inversion with one stage. You can't make a circuit that "eats it's own tail." It is possible to cascade doublers...
  14. You fooled the simulator. Circuit will not work. Think about what happens when the 555 connects Vin to out.
  15. I assumed the HD44780 latches on rising edge (like the shift register), but it latches on falling edge. So I think you could eliminate the last stage of your circuit or flip the diode in the circuit I posted. Data has to be valid for 80 ns before (tDSW) and 10 ns after (tH) the falling clock edge. Outside of those times the data lines may change.
  16. I chose to use software SPI so the code could work with any MSP430 and any two pins (of the same port). Interrupts can be disabled at the bit, byte or function level as appropriate. Hardware SPI is obviously much faster, but chip and pin selection is limited and there are 2 different hardware SPI peripherals that need to be supported. Software control of the 5110 reset is essential to allow debugging and also improves reliability in a finished product. I would not recommend removing this feature - use a 74LVC3G14. Explicit reset and initialization of all peripherals is generally good desi
  17. This is a way to use the Nokia 5110 LCD with only 2 GPIO pins. Software SPI allows any 2 pins to be used. In some cases the data line may be shared with another external peripheral such as an output shift register or an other 5110. The D/C and Reset lines are controlled by stretching the clock pulse. R/C values must be calculated for the specific clock frequency that the MSP430 will run at. A variety of Schmitt trigger gates could be used, such as MC14584, CD40106, 74HC14, 74HC132, etc... Wiring... The clock pulse for D0 is stretched when a command byte is sent. The PCD8544 contr
  18. BOB came from eBay. Music is "Life's been good" by Joe Walsh Joe (WB6ACU) is a Ham and wrote and performs the theme music for Ham Nation. He was also the first guest. The host of Ham Nation is Bob Heil (K9EID), who built Joe's talk box
  19. Features... Software SPI Random number generation using DCO and VLO Reduced memory usage by buffering only 2 columns of next grid #include "msp430g2211.h" // --- I/O Map --- // P1.0 DC / RES // P1.1 TxD (not used) // P1.2 RxD (not used) // P1.3 Switch // P1.4 SCE // P1.5 SCLK // P1.6 Backlight // P1.7 SDIN static const unsigned TXD = BIT1; static const unsigned RXD = BIT2; static const unsigned SWITCH = BIT3; static const unsigned LCD_DC = BIT0; static const unsigned LCD_CE = BIT4; static const unsigned LCD_CLK = BIT5; static const unsigned LCD_BACKLIGHT = BIT6; static const
  20. The time variable in incremented in the watchdog timer interrupt handler interrupt(WDT_VECTOR) watchdog_timer (void) //__interrupt void watchdog_timer { time++; } I think the code could be simplified... interrupt(WDT_VECTOR) watchdog_timer (void) //__interrupt void watchdog_timer { --time; } void delay(unsigned ms) { time = ms * 2; while(time); }
  21. Grounding the SDA line of the TUSB3410 will prevent it from loading the Launchpad specific firmware in EEPROM. It will behave as if the EEPROM does not exist. The SDA line is easily accessible on the left side of R24. Normal Launchpad configuration - HID for FET and COM port for application UART. With SDA grounded - The ROM firmware in the TUSB3410 is used for standard CDC ACM protocol COM port. Be aware that using the EEPROM-less configuration is not recommend by TI. From slla170f:
  22. The F1612 does not appear to be used for the application UART. I connected a logic analyzer to all four serial data lines of the TUSB3410 chip - pins 17, 19, 31 and 32. The expected application UART activity was seen on pins 31 & 32 and there was no activity seen on pins 17 & 19 that are used for FET communication. This indicates that application UART data does not flow thru the F1612 and is done with bit-bang code on the 8051 core of the TUSB3410.
×
×
  • Create New...