Jump to content
43oh

Tomeindhoven2

Members
  • Content Count

    2
  • Joined

  • Last visited

Reputation Activity

  1. Like
    Tomeindhoven2 reacted to larsie in Anaren TI CC110L RF AIR Booster Pack   
    Each of the places in buffer are chars, so they're limited to 256. So you need to split your int into two chars and put one in txBuffer[2] and one in txBuffer[3]. CorB has used a struct to manage his packet structure, which is more flexible than just a char buffer.
     
    You might be able to do something like:
     
    txBuffer[2] = (char) adc_value
    txBuffer[3] = (char) (adc_value >> 8)
     
    But I can never remember which way to shift
  2. Like
    Tomeindhoven2 reacted to larsie in Anaren TI CC110L RF AIR Booster Pack   
    Hi. Sorry if I read this too quickly and didn't catch the right question, but I wonder:
     
    ... if you are setting P1.0 as an output and driving it high, I think it will drive the P1.0-LED to light, but you might be fighting for the voltage with the RF-module. So it might be dependent on how your RF-modules GDO2 is set up, and it's conceivable that you may burn the RF-module???
     
    ... P1.6 is probably used by the MISO-signal, so using this to drive a LED output will probably not work. You'd have to make sure the P1.6 wasn't being used as MISO (done in TI_CC_SPISetup() ), but then your radio won't work properly.
     
    So, you may need to use other pins as LED-pins. Some of the free ones. I think you can reuse the LEDs for another output, if you instead of the header connect another MCU output pin to the lower pin on the header (closest to the LED). But don't shoot me if it doesn't work, since I*ve never tried.
×
×
  • Create New...