home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / pc / ROBOTS3.ZIP / robots / timer.h < prev   
Encoding:
C/C++ Source or Header  |  1992-04-12  |  694 b   |  29 lines

  1. /* Intel 8253 timer registers */
  2.  
  3. #define FREQ 1193180
  4. /* Timer port registers */
  5. #define TIMER0    0x40
  6. #define TIMER1    0x41
  7. #define TIMER2    0x42
  8. #define T_CONTROL 0x43
  9.  
  10. /* T_CONTROL bit values */
  11. #define CHANNEL0 0x00
  12. #define CHANNEL1 0x40
  13. #define CHANNEL2 0x80
  14.  
  15. #define LATCH    0x00 /* Latch current count */
  16. #define LSB      0x10 /* Read/write only the Least Significant Byte... */
  17. #define MSB      0x20 /* ... Most Significant Byte ... */
  18. #define LSB_MSB  0x30 /* ... or the LSB followed by the MSB ... */
  19.  
  20. #define MODE0    0x00
  21. #define MODE1    0x02
  22. #define MODE2    0x04
  23. #define MODE3    0x06
  24. #define MODE4    0x08
  25. #define MODE5    0x0a
  26.  
  27. #define BINARY   0x00
  28. #define BCD      0x01
  29.