I'm using MPASM v5.03
Any help is appreciated!
It's a non-stopping-mess with this CONFIGs...
1. For the 18F-Devices you must use MPASM.
2. The 18F2320.INC-file in PBP looks nice - but is useless IMHO. The many fuses which can be used are ignored, but if you use your own __CONFIGs, you get an error (overwriting ...).
3. There are many similar threads and Mel has written the answer...
4. For me - I comment the CONFIG-lines inside the PBP-inc-files and write my own __CONFIG-directives in my code ... the hole xx bytes long. What to write is hidden in the P18F2320.INC-file inside MPASM ! (the last part of the file).
5. Using this, you will get a warning out of MPASM to use the new CONFIG-directive.
6. Using this, you will get further errors, because MPASM is not compatible to the writing inside its own INC-files!
PBP 2.50C, MCS+ 3.0.0.5, MPLAB 8, MPASM 5.14, ASIX Presto, PoScope, mE mikroBasic V7.2, PICKIT2
BigWumpus
Thank you for your reply.
I have searched this forum and looked at the other threads in this regard before I posted my question, and the code I am using is the code suggested by Mel?
I must be missing something because I cannot figure out the fix from those other threads.
Please excuse my ignorance but I do not fully understand what you are suggesting.
Are you saying there is no solution to the problem? (refer point 5 and 6)
Thank you for taking the time to help me!
Go inside your 18F2320.INC inside the PBP-directory.
Comment out all CONFIG__-lines by a ";".
Look inside the P18F2320.INC-file in your MPASM-directory and get the possible settings.
f.e.:
@ __CONFIG _CONFIG1H, _HSPLL_OSC_1H
...
PBP 2.50C, MCS+ 3.0.0.5, MPLAB 8, MPASM 5.14, ASIX Presto, PoScope, mE mikroBasic V7.2, PICKIT2
BigWumpus
Thank you!
I did what you suggested and using the following setting for the PIC 18F2320, my pbp program compiles!
@ __CONFIG _CONFIG1H, _HSPLL_OSC_1H
However, now my pic18f2320 resets continuously?
This is the first time I am using a pic18f.
Up to now I have been using a pic16f73 without any problems.
I have used the same circuit which worked fine for my pic16f73 (similar to the one on page 9 of the pbp manual, showing the basic setup).
Does anyone know of any specific issues that one should be aware of when changing from pic16f to a pic18f. Should my circuit be modified in any way? (both the pic16f73 and pic18f2320 is 28 pin pics with an almost identical pin layout)
Can it be that the pic 18f is more sensitive to voltage changes?
Last edited by passion1; - 21st October 2007 at 15:05.
Trying to track the reason for the continuous reset I display the values for
Power-on-reset (POR), Brown-out reset (BOR) , stack full reset (STKFUL) and stack underflow reset (STKUNF) bits, but all are showing to be zero after each reset, so that does not seem to be the problem?
Bookmarks