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

Is 'unsigned' a datatype by itself?

Hi,
I have seen that some of the example programs availbale in this site define/declare variables as unsigned.

For eg: unsigned voltage; //A-to-D example program

What type would voltage in the above case assume? If it just holds a numeric value between 0 and 255 can I directly say
float f = voltage/4.5;
or do I need to do any casting on this statement.
Thanks in advance

Parents
  • Do you mean evaluation version by 'eval'?
    Yes
    Techincal support people told me to install 'Dongle' on the paralle port of CPU which I have no idea where to find
    If you paid for the CD, you have one, if not contact Keil sales. The CD is the same for "full" and "eval" the dongle is what opens up what ypu have to pay for.

    Erik

Reply
  • Do you mean evaluation version by 'eval'?
    Yes
    Techincal support people told me to install 'Dongle' on the paralle port of CPU which I have no idea where to find
    If you paid for the CD, you have one, if not contact Keil sales. The CD is the same for "full" and "eval" the dongle is what opens up what ypu have to pay for.

    Erik

Children