I have the following variable declaration:
float xdata voltage _at_ 0x08E2;
When I assign a value and try to print if I always get 0.0:
voltage = 25.5; printf( "Volatage: %#5.2f", voltage );
Ouptut
Voltage: 0.0
Is there a reason for this?
Thanks.
when it comes to the C51 architecture. ... Can you suggest any good ones?
none better than "the bible"
Erik
here are the links to "the bible" Chapter 1 - 80C51 Family Architecture: www.nxp.com/.../80C51_FAM_ARCH_1.pdf
Chapter 2 - 80C51 Family Programmer’s Guide and Instruction Set: www.nxp.com/.../80C51_FAM_PROG_GUIDE_1.pdf
Chapter 3 - 80C51 Family Hardware Description: www.nxp.com/.../80C51_FAM_HARDWARE_1.pdf