tag:blogger.com,1999:blog-3747970306027691432.post2641630396602500523..comments2023-03-29T12:51:07.043+02:00Comments on Forty-Two, and now?: Analog to Digital Converters - 1Franzhttp://www.blogger.com/profile/18441386776102308538noreply@blogger.comBlogger5125tag:blogger.com,1999:blog-3747970306027691432.post-52792222460458458752012-12-07T11:10:16.463+01:002012-12-07T11:10:16.463+01:00Hi Francesco,
Thanks very much for your explanati...Hi Francesco,<br /><br />Thanks very much for your explanation. It really did clarify things.. I'm trying to test ADC_SOC example program for F28027 on the launch pad. Hopefully it would work..<br /><br />Thanks a lot for your helpJamiehttps://www.blogger.com/profile/16379628838435105144noreply@blogger.comtag:blogger.com,1999:blog-3747970306027691432.post-39013674958334620942012-12-07T09:31:50.767+01:002012-12-07T09:31:50.767+01:00Hello again,
I am also learning how to use the C20...Hello again,<br />I am also learning how to use the C2000 and the other MCUs, so I am nto really an expert, it's just I like to share whatever I learn.<br /><br />About Handlers :<br />Are you familiar with OOP?<br />With oop you have objects that have methods.<br />Time ago this was not really popular (yes, I am THAT old) and we had a transition phase (it was visible, as an example, in the Windows 3.11 APIs) when we used handlers a lot.<br />Basically an object has a pointer and it's methods are defined in the class it represents, so the code itself is not really defined in the object, but it is stored in memory where the class is referenced.<br />When calling methods the class identifies the object they refer to, so it used its specific properties.<br />Handlers are just a different way to achieve the same thing : they basically identify objects in an array (sort of, depending on the implementation) which contains the property.<br /><br />Example : <br /><br />(OOP)<br /><br />myClass myObject = new myClass(whatever);<br />myObject.doSomething();<br /><br />(with handlers)<br /><br />int myObject = myCreateObject(whatever);<br />// this allocates in memory (an array) whatever is needed to store the properties of the object<br />myDoSomething(myObject);<br />// this calls a standard procedure which will use the properties located at the location [myObject] -which is an integer because it represents the index of an array- and will do something with them<br /><br />So, this is basically the usage of handlers, they allow you to use a similar approach to OOP without really instantiating objects and using standard procedures and functions instead (as opposed to methods) <br /><br />Hope it helps clarifying a bit.Franzhttps://www.blogger.com/profile/18441386776102308538noreply@blogger.comtag:blogger.com,1999:blog-3747970306027691432.post-46746051969494289672012-12-06T17:38:25.288+01:002012-12-06T17:38:25.288+01:00Hi Francesco,
Thanks a lot for your reply. Lookin...Hi Francesco,<br /><br />Thanks a lot for your reply. Looking forward to your next tutorial.. I'm not very familiar with C++ coding for C2000 and at the moment, I'm trying to get my head round the "Handle" concept. It would be great if you could let me know any good resource that would help me.<br />Thanks again..Jamiehttps://www.blogger.com/profile/16379628838435105144noreply@blogger.comtag:blogger.com,1999:blog-3747970306027691432.post-3392154080745900622012-12-06T16:43:22.222+01:002012-12-06T16:43:22.222+01:00Hello and thanks for your comment, glad you found ...Hello and thanks for your comment, glad you found my tutorials useful.<br />I have in my plans a tutorial on the c2000 ADC since some time, but never found the time to produce it :/<br />I will hopefully be able to produce it soon! Franzhttps://www.blogger.com/profile/18441386776102308538noreply@blogger.comtag:blogger.com,1999:blog-3747970306027691432.post-25170213541325107842012-12-06T16:29:31.707+01:002012-12-06T16:29:31.707+01:00Hi,
I just bought a c2000 launchpad and your tutor...Hi,<br />I just bought a c2000 launchpad and your tutorials have been really helpful for me to understand the C2000 coding. My aim is to connect a sensor to an analog input and then switch a digital output depending on the sensor value. I'm finding it difficult to understand how the ADC module works. I would really appreciate if you could help me on how to read an external analog input using C2000 launchpad. Thanks a lot..Jamiehttps://www.blogger.com/profile/16379628838435105144noreply@blogger.com