George M. Gallant, Jr. wrote: > On Wed, 2006-07-12 at 19:52 -0700, Mark Swayne wrote: >> Try: >> >> #define XTAL 11059200 >> #define TICK_PERIOD 20 /* 1/TIME_TICK */ >> #define RELOAD_VALUE -( XTAL/ (12 * PERIOD) ) >> > Is this a typo ? > ^^^^^^^ Yes. Or maybe a thinko. It should say TICK_PERIOD. I decided after I tested that TICK_PERIOD was a better, more descriptive name than the unadorned PERIOD. So I changed it (in only one place). The correct code is:
#define XTAL 11059200 #define TICK_PERIOD 20 /* 1/TIME_TICK */ #define RELOAD_VALUE -( XTAL/ (12 * TICK_PERIOD) ) Sorry about that. --Mark ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Sdcc-user mailing list Sdcc-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sdcc-user