comparison code_part1/OSTC_code_asm_part1/eeprom_rs232.asm @ 463:86fc79735d3b

Experimental 32MHz mode
author heinrichsweikamp
date Tue, 27 Sep 2011 22:23:12 +0200
parents 908d0013727e
children e2acb601504c
comparison
equal deleted inserted replaced
462:32e1174fb89e 463:86fc79735d3b
124 movlw b'10010000' 124 movlw b'10010000'
125 movwf RCSTA 125 movwf RCSTA
126 movlw b'00001000' 126 movlw b'00001000'
127 movwf BAUDCON 127 movwf BAUDCON
128 clrf SPBRGH 128 clrf SPBRGH
129 movlw d'34' ; Take care of the baud rate when changing Fosc! 129 movlw SPBRG_VALUE ; Take care of the baud rate when changing Fosc!
130 movwf SPBRG 130 movwf SPBRG
131 clrf RCREG 131 clrf RCREG
132 clrf PIR1 132 clrf PIR1
133 bsf PIE1,RCIE ; enable interrupt for RS232 133 bsf PIE1,RCIE ; enable interrupt for RS232
134 return 134 return