??? 06/05/10 16:41 Read: times |
#176432 - Exact calculations require semantics Responding to: ???'s previous message |
Erik Malund said:
not all compilers will come out right
e.g some compilers would require 11059200l ('L', not '1' looks the same in the preview Exactly, This is the reason the L must be used to the C preprocessor directives. And the excel/openoffice spreadsheets can help a lot to these fixed calculations. By the way, at which compiler are you refenced to ? Most of modern compilers use Long at directives when not otherwise specified. K.L.Angelis |
Topic | Author | Date |
80C52 Timer0 | 01/01/70 00:00 | |
where is the EA initialize? | 01/01/70 00:00 | |
EA initialize | 01/01/70 00:00 | |
no reason in what you show | 01/01/70 00:00 | |
TL0 and TH0 | 01/01/70 00:00 | |
Calculations for Timer T0 at 8KHz: have you tried 0xFF8D ??? | 01/01/70 00:00 | |
correction | 01/01/70 00:00 | |
Yeah - 0x8D | 01/01/70 00:00 | |
Thanks for that typo, More for 8KHz with 50% duty cycle | 01/01/70 00:00 | |
Put the compiler to work... | 01/01/70 00:00 | |
fine, but | 01/01/70 00:00 | |
T0 overflows at 65535+1, don't overlook this | 01/01/70 00:00 | |
right answer, wrong premise | 01/01/70 00:00 | |
Exact calculations require semantics | 01/01/70 00:00 | |
you are welcome to find out | 01/01/70 00:00 | |
Thanks for the correction...![]() | 01/01/70 00:00 |