This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

C

I was hoping to find on-line manuals that I could print and read on the john. So far no luck. But what I really need is how to declare variables in C.

For example, I have a sample code that has the statement:

unsigned char

and

unsigned long

What do these mean and do they limit the declaration to integers. What do i declare if I want a floating point?

Also, someone told me I cant do floating point with a Keil Compiler because of licensing issues (I got my copy from Silicon Labs and have just registered it). I will eventually need to do trig functions. What do i have to get (buy) to complete my project?

Parents
  • Bingo!

    I am using printf for fun. Thanks for the tip. Now I can get rid of printf and replace it with atan and maybe be under the 4K limit.

    This project is a very small project and should be done in less than 2K.

    As I said, I'm a newbie to all this compiler stuff and Andy (and others) have given me good clues to work on.

Reply
  • Bingo!

    I am using printf for fun. Thanks for the tip. Now I can get rid of printf and replace it with atan and maybe be under the 4K limit.

    This project is a very small project and should be done in less than 2K.

    As I said, I'm a newbie to all this compiler stuff and Andy (and others) have given me good clues to work on.

Children
  • Lou;
    Since cost and size of code was a concern, suggest that you look at some of the ARM Cortex-M3 devices by Luminary, ST and NXP. The eval tools have a 16K limit offset by 16K. Also, there are other tools that support C and C++. Cost of the chips are well within reach of the Silabs devices. SiLabs does offer the EC2 USB interface for target debug in your kit where you would need to purchase some type of JTAG iterface device for the selected ARM chip.
    You get a 16/32 bit chip at the 8 bit price with more memory and often higher clock speeds.
    Take a look at some of the data sheets linked on this website.
    Bradford