Yes, problem is the same but after change my 20MHz osc configured in HS mode with a 10Mhz configured in HSPPL mode it works fine... but why?
changed lines:
DEFINE OSC 40
@ __CONFIG _CONFIG1H, _OSC_HSPLL_1H & _FCMENB_ON_1H & _IESOB_ON_1H
Yes, problem is the same but after change my 20MHz osc configured in HS mode with a 10Mhz configured in HSPPL mode it works fine... but why?
changed lines:
DEFINE OSC 40
@ __CONFIG _CONFIG1H, _OSC_HSPLL_1H & _FCMENB_ON_1H & _IESOB_ON_1H
Reuse the 20MHZ crystal and remove capacitor around. What happen?
Keep wire as short as possible. It's often a ProtoBoard capacitance.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
I tried to reuse 20MHz crystal osc without capacitators, but the problem is the same! I would try with another type of 18F pic's series, but I haven't one! With 10MHz osc and ppl mode on all is ok![]()
There's definately a hardware problem
More than often caused by
- unsufficient PSU filtering
- Crystal located too far from the PIC
- messy/loose protoboard contact
- Spaghetti fashionned ProtoBoard wiring
I remember few ProtoBoard where you had to use the Weedeater before seeing a single electronic part... "Sir why i have problem ?"![]()
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
I solve the problem with lcd, but now I don't succeed to establish an rs232 communicaton![]()
I think that my problem is with the oscillator and it's configuration! Now i'm using a 10MHz OSC with 18pf cap. in ppl configuration.
Please also note that the led blink every 4,3 sec!
This is my code...
INCLUDE "modedefs.bas"
DEFINE OSC 40
DEFINE HSER_RCSTA 90h
DEFINE HSER_TXSTA 24h
DEFINE HSER_BAUD 19200
DEFINE HSER_SPBRG 129
@ __CONFIG _CONFIG1H, _OSC_HSPLL_1H & _FCMENB_OFF_1H & _IESOB_OFF_1H
@ __CONFIG _CONFIG2L, _BOR_OFF_2L & _PWRT_OFF_2L
@ __CONFIG _CONFIG2H, _WDT_ON_2H & _WDTPS_128_2H
@ __CONFIG _CONFIG3H, _MCLRE_ON_3H & _PBADEN_OFF_3H
@ __CONFIG _CONFIG4L, _STVREN_ON_4L & _LVP_OFF_4L & _DEBUG_OFF_4L
@ __CONFIG _CONFIG5L, _CP1_ON_5L & _CP0_ON_5L
@ __CONFIG _CONFIG5H, _CPB_ON_5H & _CPD_ON_5H
ADCON1=$0F
LOOP:
HIGH PORTB.1
PAUSE 1000
HSEROUT ["TEST TEST TEST TEST TEST"]
LOW PORTB.1
PAUSE 1000
GOTO LOOP
END
I think that it look that this is my first attempt with 18F series
Please help me to understand where is the mistake
TO--->mister e <<Very thanks for the aid!<<
Kindly Regards!
Bookmarks