We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hello,
Sure hope this is the right place. I am working with SIL C8051 .. Using the PCA 8 bit PWM sample I am able to dim an LED on the Dev board using CEX0.
But something is just not clicking in my head. I need to create 2 more PWM 'objects'? For example, Green and Blue..
I have the pins mapped to CEX1 and CEX2... Is that right? Totally lost on how to approach this.. I need to store PWM levels for the color, right?
Coming from Arduino, it is amazing how spoiled one gets . They take care of so much. I've spent weeks looking at examples for Crossbar config, GPIO modes, learning about SYSCLK, Timers, Open Drain, Push Pull, using 3.3 logic, pull up resistors to _5 logic, UART handling/bufferiing/servicing, It has been so great to learn these things but it seems it would have been easier by reading a book of some sort because I am missing SO much still. Not to mention getting familiar with the IDE. I am all googled out.
My choice of language is C. I am not a developer but a weekend hobbyist with some ANSI C background looking to learn more.
Can someone recommend a good book or books to read that helps move from Arduino to C51? I can't be the only one to have gone through this.
Things just aren't clicking. I am getting stuck on things that I think should be trivial.
Perhaps something that goes deeper into PCA, Timers, Clocks as somehow I avoided all those things for years.
At the same time, can someone give a simple example of how to make 3 PWM objects from 1 PCA0 ? Or how to move from CEX0 (Red) to CEX1 (Green), CEX2 (Blue)..
Thanks for the help.