
dutyfree
Members-
Content Count
5 -
Joined
-
Last visited
About dutyfree
-
Rank
Noob Class
-
I have figured out the problem the array named addr which actually represents the 5 byte of the address of the pipe#0. So in order to use the second or the third pipe for instance some other array which consist some other pipe address must be initialized and used. I am posting the code I'm now using for piping so that anyone can benefit, the library I use is the spirilis as I mentioned. //TRANSMITTER// #include <msp430.h> #include "msprf24.h" #include "nrf_userconfig.h" #include "stdint.h" int scan[5]; volatile unsigned int user; unsigned char isalive; int i = 0; unsigned int chan;
-
Hello I have been trying to implement multiceiver on nrf24l01 and msp430g2553. Basically I am trying to use different pipes for the same rf channel. The library and the example code I am using is the spirilis one, one of the most common. The problem is that I can only work with the default pipe 0 given in the code when ever I try to use the other pipes I can't get anything. I read the datasheet about the multiceiver part, I guess I understand both the code and the working mechanism but I still can't use the different pipes. Any help would be appreciated. What I do is that; at first by usin
-
I realized that while writing the code on comment lines I had made mistake, It actually is like this below. #define DATAREG P1OUT |= BIT4 // P2OUT |= BIT4 #define COMMANDREG P1OUT &= (~BIT4) // P2OUT &= (~BIT4) #define READ P1OUT |= BIT5 // P2OUT |= BIT5 #define WRITE P1OUT &= (~BIT5) // P2OUT &= (~BIT5) #define ENABLE_HIGH P1OUT |= BIT6 // P2OUT |= BIT6 #define ENABLE_LOW P1OUT &= (~BIT6) // P2OUT &= (~BIT6) The only thing I changed is writin P1 instead of P2, It works fine on P1 but still doesn't work with the port 2 configuration
-
Thank you for the advice @@zeke #ifndef __LCD_H #define __LCD_H #define DATAREG P1OUT |= BIT4 // P2OUT |= BIT4 #define COMMANDREG P1OUT &= (~BIT4) // P2OUT |= BIT4 #define READ P1OUT |= BIT5 // P2OUT |= BIT5 #define WRITE P1OUT &= (~BIT5) // P2OUT &= (~BIT5) #define ENABLE_HIGH P1OUT |= BIT6 // P2OUT |= BIT6 #define ENABLE_LOW P1OUT &= (~BIT6) // P2OUT &= (~BIT6) void lcd_delay(unsigned int k); void enable_pulse(void); void lcd_sendcmd(unsigned char cmd); void lcd_putch(unsigned char c); static void lcd_senddata(unsigned char da
-
Hey dear all, I am new at the website, have been searching for the same issue but couldn't really found. I am trying to drive 2*16 lcd on msp430g2553 with code composer. http://www.instructables.com/id/16x2-LCD-interfacing-in-4-bit-mode/step2/Code-and-Connections/ I am using the library above, It actually works fine with the port connections written. What I am trying to do is I want to transform all the ports into port2. P1.0 - D4 Pin11 to P2.0 P1.1 - D5 Pin12 to P2.1 P1.2 - D6 Pin13 to P2.2