cancel
Showing results for 
Search instead for 
Did you mean: 

Using Uart1 on P4SFS0 Alt2

tod_02
Associate II
Posted on September 12, 2005 at 19:24

Using Uart1 on P4SFS0 Alt2

2 REPLIES 2
tod_02
Associate II
Posted on May 17, 2011 at 12:08

While using the DK300 development board I set up UART1 using P1SFS0 and 1. Everything worked as advertised. Now in my final hardware I can't use Port 1 because I need all 8 A/Ds. I want to use the alternate 2 function on Port 4 (using P4SFS0 and 1). I write out ones to both ports like so:

P4SFS0 |= 0x0C; // comment these in and the P1 lines out when final hw is ready

P4SFS1 |= 0x0C;

// P1SFS0 |= 0x0C; //For our test board use P1 -- see page 60

// P1SFS1 &= ~0x0C;

But monitoring the TX line on either my hardware or using CON2 pin 9 on the DK3300 shows no activity. I made sure I set up Port1 first for all A/D operation in case there was a precedence issue. What am I missing? Since it works on Port1 I figure all the mode and clock settings are correct and that just leaves the switch between port 1 and port4.

tod_02
Associate II
Posted on May 17, 2011 at 12:08

Nevermind. Did you ever notice you can work on something for 2 days and then minutes after you public embarass yourself on a forum you figure out the answer.

I was using Port4 for SPI also and when I configured the bits for SPI I didn't OR in the bits I did a direct assignment thereby wiping out my UART1 bits in the lower nibble. Sorry for the wasted bandwidth

Tod