Mercurial > public > mk2
comparison code_part1/OSTC_code_asm_part1/definitions.asm @ 715:de413161f00c
256ms switch debounce timer
author | heinrichsweikamp |
---|---|
date | Tue, 21 May 2013 12:17:49 +0200 |
parents | d68c6a6b1f38 |
children | d333c8462844 |
comparison
equal
deleted
inserted
replaced
714:b7f7184d800d | 715:de413161f00c |
---|---|
55 #DEFINE SPBRG_VALUE d'68' | 55 #DEFINE SPBRG_VALUE d'68' |
56 #DEFINE OSCCON_VALUE b'01111100' ; 8MHz (x4 PLL) | 56 #DEFINE OSCCON_VALUE b'01111100' ; 8MHz (x4 PLL) |
57 ; #DEFINE SSPADD_VALUE d'16' ; 400kHz I2C clock @ 32MHz Fcy | 57 ; #DEFINE SSPADD_VALUE d'16' ; 400kHz I2C clock @ 32MHz Fcy |
58 #DEFINE SSPADD_VALUE d'32' ; 200kHz I2C clock @ 32MHz Fcy | 58 #DEFINE SSPADD_VALUE d'32' ; 200kHz I2C clock @ 32MHz Fcy |
59 #DEFINE SSPSTAT_VALUE b'00000000' ; with slew rate control | 59 #DEFINE SSPSTAT_VALUE b'00000000' ; with slew rate control |
60 #DEFINE T0CON_VALUE b'00010000' ; Timer0 | 60 ; #DEFINE T0CON_VALUE b'00010000' ; Timer0 1:2 -> 32ms |
61 #DEFINE T0CON_VALUE b'00010011' ; Timer0 1:16 -> 256ms | |
61 #DEFINE SPEED_32MHz | 62 #DEFINE SPEED_32MHz |
62 | 63 |
63 #DEFINE FT_SMALL .0 | 64 #DEFINE FT_SMALL .0 |
64 #DEFINE FT_MEDIUM .1 | 65 #DEFINE FT_MEDIUM .1 |
65 #DEFINE FT_LARGE .2 | 66 #DEFINE FT_LARGE .2 |