lebohangmaphothoane
Member
__config 0x3D18 means 0011 1101 0001 1000
15 = 0 = not used
14 = 0 = not used
13 = 1 = Flash Code protect off
12 = 1 = unused so ignore
11 = 1 = unused so ignore
10 = 1 = unused so ignore
9 = 0 = unused so ignore
8 = 1 = Data Code protect=off
7 = 0 = Use MCLR for programming
6 = 0 = Brown out reset disabled
5 = 0 = MCLR is I/O
4 = 1 = (100) internal Osc.
3 = 1 = powerup timer disabled
2 = 0 = watchdog disabled
1 = 0 = FOSC1 = internal oscillator (100)
0 = 0 = FOSC0 = internal oscillator (100)
so bit 4,1 and 0 being 1,0,0 respectively, means
INTRC oscillator: I/O function on RA6/OSC2/CLKOUT pin, I/O function on RA7/OSC/CLKIN
I also tried
__config Ox2109
which means 0010 0001 0000 1001
so bit 4,1 and 0 being 0,0,1 respectively, means
XT oscillator: Crystal/resonator on RA6/OSC2/CLKOUT and RA7/OSC1/CLKIN
Still there was no display on the Lcd, so which of this configurations must I use for bit 4,1 and 0:
FOSC2:FOSC0: Oscillator Selection bits(4)
111 = ER oscillator: CLKOUT function on RA6/OSC2/CLKOUT pin, Resistor on RA7/OSC1/CLKIN
110 = ER oscillator: I/O function on RA6/OSC2/CLKOUT pin, Resistor on RA7/OSC1/CLKIN
100 = INTRC oscillator: I/O function on RA6/OSC2/CLKOUT pin, I/O function on RA7/OSC1/CLKIN
011 = EC: I/O function on RA6/OSC2/CLKOUT pin, CLKIN on RA7/OSC1/CLKIN
010 = HS oscillator: High speed crystal/resonator on RA6/OSC2/CLKOUT and RA7/OSC1/CLKIN
001 = XT oscillator: Crystal/resonator on RA6/OSC2/CLKOUT and RA7/OSC1/CLKIN
000 = LP oscillator: Low power crystal on RA6/OSC2/CLKOUT and RA7/OSC1/CLKIN
15 = 0 = not used
14 = 0 = not used
13 = 1 = Flash Code protect off
12 = 1 = unused so ignore
11 = 1 = unused so ignore
10 = 1 = unused so ignore
9 = 0 = unused so ignore
8 = 1 = Data Code protect=off
7 = 0 = Use MCLR for programming
6 = 0 = Brown out reset disabled
5 = 0 = MCLR is I/O
4 = 1 = (100) internal Osc.
3 = 1 = powerup timer disabled
2 = 0 = watchdog disabled
1 = 0 = FOSC1 = internal oscillator (100)
0 = 0 = FOSC0 = internal oscillator (100)
so bit 4,1 and 0 being 1,0,0 respectively, means
INTRC oscillator: I/O function on RA6/OSC2/CLKOUT pin, I/O function on RA7/OSC/CLKIN
I also tried
__config Ox2109
which means 0010 0001 0000 1001
so bit 4,1 and 0 being 0,0,1 respectively, means
XT oscillator: Crystal/resonator on RA6/OSC2/CLKOUT and RA7/OSC1/CLKIN
Still there was no display on the Lcd, so which of this configurations must I use for bit 4,1 and 0:
FOSC2:FOSC0: Oscillator Selection bits(4)
111 = ER oscillator: CLKOUT function on RA6/OSC2/CLKOUT pin, Resistor on RA7/OSC1/CLKIN
110 = ER oscillator: I/O function on RA6/OSC2/CLKOUT pin, Resistor on RA7/OSC1/CLKIN
100 = INTRC oscillator: I/O function on RA6/OSC2/CLKOUT pin, I/O function on RA7/OSC1/CLKIN
011 = EC: I/O function on RA6/OSC2/CLKOUT pin, CLKIN on RA7/OSC1/CLKIN
010 = HS oscillator: High speed crystal/resonator on RA6/OSC2/CLKOUT and RA7/OSC1/CLKIN
001 = XT oscillator: Crystal/resonator on RA6/OSC2/CLKOUT and RA7/OSC1/CLKIN
000 = LP oscillator: Low power crystal on RA6/OSC2/CLKOUT and RA7/OSC1/CLKIN
Last edited: