Search the Community
Showing results for tags 'msp430g'.
-
I'm trying to create a toggle button but the code is not working. The code is as shown below: #include <msp430g2553.h> int main(void) { WDTCTL = WDTPW + WDTHOLD; // stop watchdog timer P1DIR &= ~BIT3; //P1.3 i/p P1REN |= BIT3; //P1.3 enable pullup resistor P1IES |= BIT3; //P1.3 high to low transition P1IFG &= ~BIT3; //P1.3 clear interrupt flag P1IE |= BIT3; //enable P1.3 interrupt P1DIR |= BIT0; //P1.0 o/p P1OUT &= ~BIT0; //clear P1.0 _BIS_SR(LPM0_bits + GIE); //enter LPM0 with interrupts enabled } #pragma vector = PORT1_VECTO
- 3 replies
-
- msp430g
- msp430g2553
-
(and 2 more)
Tagged with:
-
This is a very simple enc28j60 library created by Renato Aloi for atmega modifed by me for MSP430G2553 and MSP430F5529 Please, check my latest master fork from Renato Aloi newMods branch or download directly v0.4.2: EtherEncLib-0.4.2.zip fix CS, fix examples, disable debug from tcpstack EtherEncLib-0.4.zip only harware SPI version (MSP430G2553 and MSP430F5529 tested) EtherEncLib_v03.zip - hard/soft spi version EtherEncLib_v2.zip - hardware spi version EtherEncLib_v01.zip - softspi version v03: selectable hardware/software spi all definitions moved to EtherEncLib.h lines 1
- 40 replies
-
- LM4F120H5QR
- MSP430G
-
(and 2 more)
Tagged with:
-
good am everyone.. i've started using msp430g2553 to be used to interface lm35 and will give a pwm output depending on the PID results. here's my code: #include <msp430g2553.h> float act_temp; int des_temp = 5; float error = 0; float error_sum = 0; float error_prev = 0; float error_diff = 0; float kp = 10000; float ki = 50; float kd = 1; float dt = 1; float pid; int pwm; int k; char data[5]; void TX(char *tx_message); unsigned int measure; unsigned int measure_1; unsigned int measure_2; void main(void){ WDTCTL = WDTPW + WDTHOLD; // Stop WDT BCSCTL1 = C
-
Hi all, I have seen that the MSP430TCH5E HAPTOUCH Boosterpack is already available. Through Element 14, and not from TI eStore, but it is what it is. http://www.ti.com/devnet/docs/catalog/thirdpartydevtoolfolder.tsp?actionPerformed=productFolder&productId=17680 Sorry for not putting it in the blog but either I'm too stupid to get a simple sum, or the captcha code is not working. Gast
- 11 replies
-
- MSP430TCH5E
- haptic
-
(and 1 more)
Tagged with:
-
Hi all, Just put together a basic state machine tutorial with portable C programming code, I have also made a small 4 state project with a basic user interface (LCD and 4 buttons), all based on a MSP430G2234. Would be interested in anyone's views on it's readability and maybe even improvements? State machine tutorial and C programming code: http://coder-tronics.com/state-machine-tutorial-pt1/ http://coder-tronics.com/state-machine-tutorial-pt2/ Youtube video with MSP430 state machine (tutorial and all code to follow) : https://www.youtube.com/watch?v=JzDn6SKjBxE Ch