-
Content Count
43 -
Joined
-
Last visited
About Theshadowwalker91
-
Rank
Advanced Member
-
Software async serial tx/rx without timer
Theshadowwalker91 replied to oPossum's topic in Code vault
can anyone here help me. i am not sure how to use this code to turn on an led based on the serial data that is recived. -
Software async serial tx/rx without timer
Theshadowwalker91 replied to oPossum's topic in Code vault
also i ment how would i read the data and based on it turn on an led -
than you very much for the help. the code that RobG posted almost worked. but there was a little mistake, void shiftOut ( unsigned char ); and void pinWrite ( unsigned int, unsigned char ); should be void shiftOut ( unsigned long ); and void pinWrite ( unsigned int, unsigned long ); here is the code with the fixes for anyone who wants it. //*************************************************************************************** // MSP430 Driver for 74HC595 Shift Register // // Description; Drives 8 LED's with 3 digital pins of the MSP430, via a shift reg
-
i see what you are trying to do but that doesnt change the amount of data sent out. when i upload it it does the same thing as the first ode but there is a delay at the end.
-
i am daisy chaining them. i have the sout of one tied to the sin of the next. but with the code i posted i am only able to shift out a number as high as 255
-
hello i am trying to use multiple shift registers and am having a hard time. this is the code i have to start with, but i am unsure how to modify it to use 3 shift registers //*************************************************************************************** // MSP430 Driver for 74HC595 Shift Register // // Description; Drives 8 LED's with 3 digital pins of the MSP430, via a shift register // // MSP430x2xx // //*************************************************************************************** #include //Define our pins #define DATA BIT0 // DS -> 1.0 #define CLOCK BI
-
Software async serial tx/rx without timer
Theshadowwalker91 replied to oPossum's topic in Code vault
how would i go about reading serial data sent from an arduino. i the arduino is sending this Serial1.print ('<'); //start Serial1.print ('5'); // address 1-5 Serial1.print ("001"); // Foreground is Blue Serial1.print ("010"); // Background is Green Serial1.print ("100"); // Marker is Red Serial1.print ('>'); // end -
ya but i am not trying to do anything with an sd card. also i do not need to send data back to the arduino. i just need the msp to realize there is data coming in read it and if it is meant for that msp then do something based on the data and if it is not meant for that msp then to just ignore it.
-
sorry but how would that help me.
-
what i want to do is have an arduino send serial data to multiple msp430 launchpads. so that when the msp430 gets a certain message it will start doing a pattern and it will take care of light control while the arduino can do other things. any helpp would be appreciated. i also posted on the Arduino forum about this. what i need help with is reading serial data sent from the arduino and then doing a task based on the data. i am doing a Multi-drop set up with about 7 430s and one arduino mega. each 430 will be controlling 8 rgb leds via shift registers here is a rough id
-
i tried both G2231 and G2252 with the G2231 i get the error "../lnk_msp430g2231.cmd", line 56: error: run placement fails for object ".bss", size 0x81 (page 0). Available ranges: RAM size: 0x80 unused: 0x4e max hole: 0x4c error: errors encountered during linking; "newtest.out" not built with the G2252 i get the error "../main.c", line 216: error: identifier "TIMERA0_VECTOR" is undefined 1 error detected in the compilation of "../main.c".
-
i get an error when i try to compile. "../main.c", line 215: error: identifier "TIMERA0_VECTOR" is undefined 1 error detected in the compilation of "../main.c".
-
hello again. i notice that the code was posted on a link. but it is for linux based software. is there anyone that can make this code work with CCS. // MSP430G2231 4X4X4 Matrix Cube code // uses three 74hc595 shift registers #include #include #include #include #include void Initializeports(void); static void __inline__delay(register unsigned int n); int binary2bcd16( unsigned char *bcd, int t ); // 16bit int display_led(int t, int display); void display_refresh( void ); // Time function varibles volatile unsigned char days = 0, hours = 0, minutes = 0, seconds = 0, e_hours = 0, e_
-
thanks for the code but when i put it on the chip it just turns on both leds. no flashing or changing of rates.
-
Isnt BIT3 on the launchpad aready debounced?? also my problem is if i hold the button it keeps adding to the variable.