- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
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?
Solved! Go to Solution.
- Labels:
-
MOSFET
- Tags:
- BTF3050TE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
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);
}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hi,
Thank you for posting on the Infineon Developer Community.
The requested example code can be found in the below link,
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content