"Processor Data Memory Mode" Missing
-
- Posts: 5
- Joined: 16 Apr 2015 19:16
"Processor Data Memory Mode" Missing
The "Processor Data Memory Mode" is missing in the configuration settings for the PIC 18F87K22 to set the CONFIG3L bits to "Microcontroller Mode" in MikroBasic. I cannot use Port J for inputs. Please help!
Re: "Processor Data Memory Mode" Missing
I am no expert, but it looks to me that there is some issue with mikroBASIC compiler (could be wrong)
ABW bits appear to work in reverse, according to my experiments. Other CONFIG3L bits seem OK.
Workaround might be to select 20 bit address bus (should result in 11, but erroneously selects 8 bit 00 "Microcontroller Mode"), if my experiments are correct.
Hopefully mikroE experts will confirm my suspicions, or correct me .....
ABW bits appear to work in reverse, according to my experiments. Other CONFIG3L bits seem OK.
Workaround might be to select 20 bit address bus (should result in 11, but erroneously selects 8 bit 00 "Microcontroller Mode"), if my experiments are correct.
Hopefully mikroE experts will confirm my suspicions, or correct me .....
Start every day with a smile...... (get it over with)
Re: "Processor Data Memory Mode" Missing
Hi,
If you are referring to the WAIT, BW, ABW and EASHFT bits from the CONFIG3L, they are present in the Edit Project window, see the image.
Regards,
Filip.
If you are referring to the WAIT, BW, ABW and EASHFT bits from the CONFIG3L, they are present in the Edit Project window, see the image.
Regards,
Filip.
- Attachments
-
- 87k22.png (47.51 KiB) Viewed 1446 times
Re: "Processor Data Memory Mode" Missing
Thanks filip
In your picture above, "Address Bus Width" pull-down box shows "8-bit address bus"
According to the data sheet this should cause bits 4 and 5 of CONFIG3L to be zeros.
Your picture shows CONFIG3L value to be 0xF9 which has bits 4 and 5 both set to ones.
In your picture above, "Address Bus Width" pull-down box shows "8-bit address bus"
According to the data sheet this should cause bits 4 and 5 of CONFIG3L to be zeros.
Your picture shows CONFIG3L value to be 0xF9 which has bits 4 and 5 both set to ones.
Start every day with a smile...... (get it over with)
Re: "Processor Data Memory Mode" Missing
Hi,
Regards,
Filip.
From the datasheet I see :According to the data sheet this should cause bits 4 and 5 of CONFIG3L to be zeros.
Your picture shows CONFIG3L value to be 0xF9 which has bits 4 and 5 both set to ones.
Am I missing something ?bit 5-4 ABW<1:0>: External Memory Bus Configuration bits(1)
11 = 8-Bit Address mode (Microcontroller mode)
Regards,
Filip.
Re: "Processor Data Memory Mode" Missing
No, it is me that is missing something....
My brain is missing
I am using old datasheet "B"
current datasheet is "F"
My sincere apologies. Your were right all along of course. Sorry to waste your time. I feel very embarrassed
I will be out of action for a few days while I update my datasheet folder to all of the latest documents.
Regards,
Robin
Start every day with a smile...... (get it over with)