THANSKS alot for your help.
yes, i try
OSCCON = $72,
OSCTUNE = $40
the problem still persises.
portb.6 lost power. but it runs faster
-------------------------------------------------------------------------------
here is the conf.
__CONFIG _CONFIG1H, _FOSC_INTIO7_1H & _FCMEN_OFF_1H & _IESO_OFF_1H
__CONFIG _CONFIG2H, _WDTEN_ON_2H & _WDTPS_512_2H' __CONFIG _CONFIG3H, _CCP2MX_PORTC_3H & _PBADEN_OFF_3H & _LPT1OSC_OFF_3H & _HFOFST_ON_3H & _MCLRE_ON_3H
__CONFIG _CONFIG4L, _STVREN_ON_4L & _LVP_OFF_4L & _XINST_OFF_4L
OSCCON = $72,
OSCTUNE = $40
-----------------------------------------------------------------------------
portb = 0
latb = 0
trisb = 0
----------------------------------------------------
about the SCS it is automatic set to 00- becasue in the CONFI_1h --- FOSC_INRIO67- (IT IS determined by primary osc in the 1H line)
here is the explaination in the data sheet
------------------------------------------============
2.9.1 SYSTEM CLOCK SELECT
(SCS<1:0>) BITS
The System Clock Select (SCS<1:0>) bits of the
OSCCON register select the system clock source that
is used for the CPU and peripherals.
• When SCS<1:0> = 00, the system clock source is
determined by configuration of the FOSC<2:0>
bits in the CONFIG1H Configuration register.
• When SCS<1:0> = 10, the system clock source is
chosen by the internal oscillator frequency
selected by the INTSRC bit of the OSCTUNE
register and the IRCF<2:0> bits of the OSCCON
register.
• When SCS<1:0> = 01, the system clock source is
the 32.768 kHz secondary oscillator shared with
Timer1.
After a Reset, the SCS<1:0> bits of the OSCCON
register are always cleared.
-----------------------------------------------------------
the version, of pbp. it is 2.6c
i read the post of: http://www.microchip.com/forums/m730158.aspx-
also mentioned the same issue- but the PLLCFG is not recognized in the PBP
thanks for your concern,
regards
Bookmarks