Jump to content
43oh

CC3220SF - How to access p64 on P4 using Energia?


Recommended Posts

Hi all,

As can be seen in the picture, p64 is repeated twice. one is on P3 and connected and the other one is on P4 and not connected.

lets say I want to use PWM on this pin, using the example provided by Energia I can successfully dim an LED connected to the p64 on P3 (yellow highlight) 

but for my application, I need to have access to the p64 on p4 but no matter if I refer to it as pin 37 or 29 using Energia, only the p64 on P3 will light up the LED. 

is there any way to have access to pin 37 (pin 64 on P4)?

Also any one knows why this design is adapted where a few pins are duplicated(connected and not connected version)?

Thanks :)

 

this is the code:

 


#define ledPinG 37 // PWMTimerCC32XX_PIN_64,  /*  37 -  GPIO_09 T2B */ ---> if I put #define ledPinG 29, I get the same result

void setup() {
  // put your setup code here, to run once:

}

void loop() {
  // put your main code here, to run repeatedly: 
    // fade in from min to max in increments of 5 points:  
  for(int fadeValue = 0 ; fadeValue <= 255; fadeValue +=5) { 
    // sets the value (range from 0 to 255):
    analogWrite(ledPinG, fadeValue); 
            
    // wait for 30 milliseconds to see the dimming effect    
    delay(30);                            
  } 

  // fade out from max to min in increments of 5 points:
  for(int fadeValue = 255 ; fadeValue >= 0; fadeValue -=5) { 
    // sets the value (range from 0 to 255):
    analogWrite(ledPinG, fadeValue);   
            
    // wait for 30 milliseconds to see the dimming effect    
    delay(30);                            
  }  
}

 

 

cc4.PNG

Link to post
Share on other sites
11 hours ago, StefanSch said:

A look into the Schematic resolves the mystic:

image.png.f10778887b50bc654c9f00f5bd854963.png

The signal is not connected as R63 is marked as DNP (Do not populate)

Thanks Stefan, 

you are correct, Jan in ti forum also send this to me here. Still, I don't get why they even put the I2C pins twice. one set on P1(9$10)  and one set on P4(39$40). but I assume I can jumper connect the p30 to p40  (energia pin naming) and be able to use J13 on grove booster pack. have you worked with this booster pack before?

1.jpg

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...