SHIELD_BTF3050TE Sample Arduino Code does not compile for chip BTF3050TE

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
TominMaryland
Level 2
Level 2
5 replies posted 5 questions asked 5 sign-ins

There is Sample Arduino code for the development board SHIELD_BTF3050TE that does not compile. for BTF3050TE

An error regarding "TCCR0B" 

Can someone please post demonstration code for the shield? 

0 Likes
1 Solution
lock attach
Attachments are accessible only for community members.

Thank You.  I believe the problem I was having compiling the code was due to using the  Sparkfun Artemis Red Board.  The code compiles fine for an Arduino Uno.  

View solution in original post

0 Likes
4 Replies
TominMaryland
Level 2
Level 2
5 replies posted 5 questions asked 5 sign-ins

SHIELD_BTF3050TE - Infineon Technologies 

If I change the sample code provided in the link to declare code variables eg. "int TCCR0B;" the program will compile. 

However, the development shield does not behave like the video by Infineon Application Engineer Rodrigo Marquina (see link above)

Please provide working example code for the shield.

0 Likes

The following code does works for me to fade by PWM the BTF3050TE (IC1) associated with pin 6. 

But does not demonstrate the capability of the board as the sample arduino code is in the video.  Can Infineon provide sample code that works?

I have found this code works to fade OUTPUT1 BTF3959TE (IC1).......


int led = 6; // the PWM pin the BTF3959TE (IC1) is attached to
int brightness = 0; //  pwm pin on signal to SRP of BTF3959TE (IC1)
int fadeAmount = 5; // how many points to fade the BTF3959TE (IC1) by

// the setup routine runs once when you press reset:
void setup() {
// declare pin 6 to be an output:
pinMode(led, OUTPUT);
}

// the loop routine runs over and over again forever:
void loop() {
// set the brightness of pin 6:
analogWrite(led, brightness);

// change the brightness for next time through the loop:
brightness = brightness + fadeAmount;

// reverse the direction of the fading at the ends of the fade:
if (brightness <= 0 || brightness >= 255) {
fadeAmount = -fadeAmount;
}
// wait for 30 milliseconds to see the dimming effect
delay(30);
}

0 Likes
lock attach
Attachments are accessible only for community members.
Abhilash_P
Moderator
Moderator
Moderator
50 likes received 500 replies posted 250 solutions authored

Hi,

 

   Thank you for posting on the Infineon Developer Community. 

The requested example code can be found in the below link,

https://github.com/Infineon/low-side-switch-shield-btf3050te/blob/master/examples/Low_Side_Switch_Sh...

I have also attached the Example software code for your reference. 

Please do let me know if the code in the attached link fits your application. 

 

Regards,

Abhilash P

0 Likes
lock attach
Attachments are accessible only for community members.

Thank You.  I believe the problem I was having compiling the code was due to using the  Sparkfun Artemis Red Board.  The code compiles fine for an Arduino Uno.  

0 Likes