Code math calculator

07 Jan 2011

Hello,

When it comes to writing code how do I work out the math, what equiment do you use. Some of the math that is involved seems really hard to do if I was to do it from brain, so what equiment is used anybody.

 

I have a scope but it is old what else do I need.

08 Jan 2011

As for the math, I usually just use the calculator that comes with Windows. If you hit V'iew -> Scientific' you can change the values to hex, decimal, oct, and binary. I would suggest learning binary if you have not already as it will help you save time alot of the time. Wouldn't be a bad idea to learn all the different types of number representations involved but for the most part you can get away with just using a calculator if you are just doing a few simple operations in your program.

08 Jan 2011

user Jamie Paul wrote:

As for the math, I usually just use the calculator that comes with Windows. If you hit V'iew -> Scientific' you can change the values to hex, decimal, oct, and binary. I would suggest learning binary if you have not already as it will help you save time alot of the time. Wouldn't be a bad idea to learn all the different types of number representations involved but for the most part you can get away with just using a calculator if you are just doing a few simple operations in your program.

Ok thanks, It is pretty hard stuff, audio side of things uncompressed and compressed coding algorithms, I wanted to make libs for Mbed but with out a debugger don't know how I will do it. Do you know do I have to encode to pcm when sending audio to pc, can not just send the binary text or numerical, then  then get pc to encode pcm.

08 Jan 2011

I wish I could help you, but I really don't know much of anything at all with doing audio related stuff. The most I have ever done with audio was use a piezo buzzer for a simple beep sound for a project involving a keypad! Hopefully, someone here can help you further.

08 Jan 2011

user Jamie Paul wrote:

I wish I could help you, but I really don't know much of anything at all with doing audio related stuff. The most I have ever done with audio was use a piezo buzzer for a simple beep sound for a project involving a keypad! Hopefully, someone here can help you further.

 

Cool, yeah I need to find out all the tools I will need, so far I know a scope debugger and now a Scientific calculator. I was looking at the mbed ISP stuff still trying to wrap my head around what that is supposed to be about.

08 Jan 2011

As for hardware tools to help you out, I would recommend at the most basic level to have a decent oscilloscope, a multimeter, and a good set of prototyping tools. If you do alot of work on a breadboard, make sure not to cheap out and get a decent one. I first started using a crappy breadboard from no name chinese company that caused me more a headache then anything else when I was starting out. Make sure you have a good soldering iron too, not a cheap one from radioshack or else you will soon regret it.

I wouldn't concern yourself too much with ISP stuff until you get a good understanding of the LPC1768 hardware. There is alot of stuff you can learn before jumping into really complex tasks. What I did in the beginning was start doing simple stuff without the assistance of the mbed libraries. Learn to blink an LED without the use of libraries or other tasks along that line. You will start to become more familiar with the math involved. Also, make sure you have a copy of the datasheet and read it. It's complex to read over, but take your time with and really try to understand it. Re-read sections that are confusing or complicated.

After awhile you will feel alot more comfortable with the hardware, and have a much better understanding of example code. It's almost mind boggling to read over someone elses code when you have no idea what it is exactly the code is supposed to accomplish. That's my methodogy when I'm leaning something new. Doesn't always apply to everyone but it worked in my case.

Feel free to post questions on these forums if you have questions. There are alot of people here that are willing to help and assist. Good luck!