Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

IrDA seting in MSP430FG4619

$
0
0

I'm trying to use IrDA  in our application, to communication with software through two kinds of device , one is IrDA to COM that is work good, another one is IrDA toUSB then driver by IrCOMM2K software, that is can not work, but the second device work with other company's products (our competitor), so it shoud be no problem. I guess the problem is from my seting of the USCI_A0. follow is my code,  is there any other seting to let it work at totally different way? I already try clear UCIRRXPL to set low polarity, but it is not work, now I use 3/16 modulation, how about minimum pulse modulation? if I want to, how to set these parameters? I know I have to  set UC0S16=1.

SCFIO = 0  ;   //MCLK 0.65 -61.MHZ

SCFQCTL = 121; // (121+1)*32768*1=3997696HZ=3.997696MHZ

FLL_CTL0=DCOPLUS+XCAP18PF;

UCA0CTL1 |= UCSWRST;                     // disable USCI

UCA0CTL0 |= UCMODE_0 ;                  // NO parity,LSB first,8 bits,one stop,UART,Asynchronous 

UCA0CTL1 |= 0x80;                   // CLK = SMCLK  

UCA0BR0 = 26;               // 9600 -26  

UCA0BR1 = 0x00;      //  

UCA0MCTL = 0x01;                          // Modulation

UC0S16=1  ;

UCA0IRTCTL = 0x14;  

UCA0IRTCTL |= UCIREN + UCIRTXCLK;  

UCA0IRRCTL = 0x1C;                    

UCA0IRRCTL |= UCIRRXPL + UCIRRXFE;   //  

UCA0CTL1 &= ~UCSWRST;                     // enable USCI

 

 


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>