Mercurial > public > hwos_code
comparison src/ostc3.asm @ 199:800f09c9089c
minor
author | heinrichsweikamp |
---|---|
date | Tue, 11 Nov 2014 16:55:39 +0100 |
parents | a004b482604a |
children | dcd513840c6c |
comparison
equal
deleted
inserted
replaced
198:c511dc403d7e | 199:800f09c9089c |
---|---|
13 | 13 |
14 ;============================================================================= | 14 ;============================================================================= |
15 ;----------------------------- CONFIG --------------------------------- | 15 ;----------------------------- CONFIG --------------------------------- |
16 CONFIG RETEN = OFF ;Disabled - Controlled by SRETEN bit | 16 CONFIG RETEN = OFF ;Disabled - Controlled by SRETEN bit |
17 CONFIG SOSCSEL = HIGH ;High Power SOSC circuit selected | 17 CONFIG SOSCSEL = HIGH ;High Power SOSC circuit selected |
18 CONFIG XINST = OFF ;Code won't excute in extended mode... | 18 CONFIG XINST = OFF ;Code won't excute in extended mode... |
19 CONFIG FOSC = INTIO2 ;Internal RC oscillator, no clock-out | 19 CONFIG FOSC = INTIO2 ;Internal RC oscillator, no clock-out |
20 CONFIG PLLCFG = OFF | 20 CONFIG PLLCFG = OFF |
21 CONFIG IESO = OFF ;Disabled | 21 CONFIG IESO = OFF ;Disabled |
22 CONFIG PWRTEN = OFF ;Disabled, because incompatible with ICD3 (Ri-400) | 22 CONFIG PWRTEN = OFF ;Disabled, because incompatible with ICD3 (Ri-400) |
23 CONFIG BOREN = ON ;Controlled with SBOREN bit | 23 CONFIG BOREN = ON ;Controlled with SBOREN bit |
41 movwf OSCCON2 ; Secondary Oscillator running | 41 movwf OSCCON2 ; Secondary Oscillator running |
42 movlw b'00000000' | 42 movlw b'00000000' |
43 movwf OSCTUNE ; 4x PLL Disable (Bit6) - only works with 8 or 16MHz (=32 or 64MHz) | 43 movwf OSCTUNE ; 4x PLL Disable (Bit6) - only works with 8 or 16MHz (=32 or 64MHz) |
44 bcf RCON,SBOREN ; Bown-Out off | 44 bcf RCON,SBOREN ; Bown-Out off |
45 bcf RCON,IPEN ; Priority Interrupts off | 45 bcf RCON,IPEN ; Priority Interrupts off |
46 banksel WDTCON | |
47 movlw b'10000000' | |
48 movwf WDTCON ; Setup Watchdog | |
46 | 49 |
47 ; I/O Ports | 50 ; I/O Ports |
48 banksel 0xF16 ; Addresses, F16h through F5Fh, are also used by SFRs, but are not part of the Access RAM. | 51 banksel 0xF16 ; Addresses, F16h through F5Fh, are also used by SFRs, but are not part of the Access RAM. |
49 | 52 |
50 clrf REFOCON ; No reference oscillator active on REFO pin | 53 clrf REFOCON ; No reference oscillator active on REFO pin |