Quantcast
Viewing all articles
Browse latest Browse all 116964

Forum Post: RE: CC2540 UART0 SPI alternative 2 location

I'm having trouble finding/searching for the Keyfob example, please send a link.

For priority, I have used two methods, are these correct?

1) leaving the priority I found in the CC2510 example  
    // Give priority to USART 0 over USART 1 for port 0 pins
       P2DIR = (P2DIR & ~P2DIR_PRIP0) | P2DIR_PRIP0_0;

2) P2DIR = 0X00; (Based on what I see in the CC2540/1 User Guide.)

I have been successful in changing to UART 1 P1 by changing this priority. But the spec has some unclear words about priority. The table in Users Guide for P2DIR is fairly clear, so I went by the table for UART priority.

I am using older rev of SmartRF04EB and there is an LED on P1_3 that is not used for UART 1 SPI Alt.2 P1 but is used for UART0 Alt.2. I have been tempted to pull the series resistor (but do not want to cut  up the EB). Is it possible that LED is not allowing the Alt.2 UART0 - even with the signals looking good on the scope? I see there is an LED on P1_2 on SmartRF05 as well. My H/W design uses only P1_0 and P1_1 for LED drivers.

LDT


Viewing all articles
Browse latest Browse all 116964

Trending Articles



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