comparison src/ostc3.asm @ 28:fcaf94b913db

rx isr
author heinrichsweikamp
date Sat, 20 Jul 2013 16:02:35 +0200
parents e4e662746c02
children ec4d8503ec45
comparison
equal deleted inserted replaced
27:a0fc5d6c207e 28:fcaf94b913db
106 movlw b'00100000' ; Init port 106 movlw b'00100000' ; Init port
107 movwf PORTJ 107 movwf PORTJ
108 108
109 109
110 ; Timer 0 110 ; Timer 0
111 ; movlw b'00000000' ; Timer0 with 1:2 prescaler 111 movlw b'00000001' ; Timer0 with 1:4 prescaler
112 movlw b'00001000' ; Timer0 with 1:1 prescaler 112 ; movlw b'00001000' ; Timer0 with 1:1 prescaler
113 movwf T0CON 113 movwf T0CON
114 114
115 ; Timer 1 - Button hold-down timer 115 ; Timer 1 - Button hold-down timer
116 movlw b'10001100' ; 32768Hz clock source, 1:1 Prescaler -> ; 30,51757813µs/bit in TMR1L:TMR1H 116 movlw b'10001100' ; 32768Hz clock source, 1:1 Prescaler -> ; 30,51757813µs/bit in TMR1L:TMR1H
117 movwf T1CON 117 movwf T1CON
232 232
233 banksel common 233 banksel common
234 ; Interrupts 234 ; Interrupts
235 movlw b'11110000' 235 movlw b'11110000'
236 movwf INTCON 236 movwf INTCON
237 movlw b'10000000' ; BIT7=1: Pullup for PORTB disabled 237 movlw b'10001000' ; BIT7=1: Pullup for PORTB disabled
238 movwf INTCON2 238 movwf INTCON2
239 movlw b'00001000' 239 movlw b'00101000' ; Bit5: INT3
240 movwf INTCON3 240 movwf INTCON3
241 movlw b'00000001' ; Bit0: TMR1 241 movlw b'00000001' ; Bit0: TMR1
242 movwf PIE1 242 movwf PIE1
243 movlw b'00000010' ; Bit1: TMR3 243 movlw b'00000010' ; Bit1: TMR3
244 movwf PIE2 244 movwf PIE2