8254.h

Go to the documentation of this file.
00001 
00005 void init_8254();
00006 
00007 #define FOSC            1193182         // Frec del oscilador interno
00008 #define FINTERRUPCION   100             // Frec de interrupción (10 ms)
00009 #define CUENTA          FOSC / FINTERRUPCION
00010 
00011 #define BASE_8254       0x40
00012 #define COUNTER0        BASE_8254
00013 #define COUNTER1        BASE_8254+1
00014 #define COUNTER2        BASE_8254+2
00015 #define CWR             BASE_8254+3
00016 
00017 // Control Word Register
00018 #define COUNTER_0       0<<6
00019 #define COUNTER_1       1<<6
00020 #define COUNTER_2       2<<6
00021 #define READ_BACK       3<<6
00022 #define COUNT_LATH_CMDS 0<<4
00023 #define LSB             1<<4
00024 #define MSB             2<<4
00025 #define LSB_MSB         3<<4
00026 #define MODO0           0<<1
00027 #define MODO1           1<<1
00028 #define MODO2           2<<1
00029 #define MODO3           3<<1
00030 #define MODO4           4<<1
00031 #define MODO5           5<<1
00032 #define BCD             1
00033 
00034 
00035 

Generated on Sun May 30 18:38:34 2004 for Routix OS by doxygen 1.3.6