"Processor Data Memory Mode" Missing

General discussion on mikroBasic PRO for PIC.
Post Reply
Author
Message
johndalewolf
Posts: 5
Joined: 16 Apr 2015 19:16

"Processor Data Memory Mode" Missing

#1 Post by johndalewolf » 12 Oct 2021 12:02

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!

hexreader
Posts: 1786
Joined: 27 Jun 2010 12:07
Location: England

Re: "Processor Data Memory Mode" Missing

#2 Post by hexreader » 13 Oct 2021 15:19

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 .....
Start every day with a smile...... (get it over with) :)

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: "Processor Data Memory Mode" Missing

#3 Post by filip » 19 Oct 2021 09:09

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.
Attachments
87k22.png
87k22.png (47.51 KiB) Viewed 1446 times

hexreader
Posts: 1786
Joined: 27 Jun 2010 12:07
Location: England

Re: "Processor Data Memory Mode" Missing

#4 Post by hexreader » 19 Oct 2021 13:26

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.
Start every day with a smile...... (get it over with) :)

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: "Processor Data Memory Mode" Missing

#5 Post by filip » 22 Oct 2021 08:39

Hi,
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.
From the datasheet I see :
bit 5-4 ABW<1:0>: External Memory Bus Configuration bits(1)
11 = 8-Bit Address mode (Microcontroller mode)
Am I missing something ?

Regards,
Filip.

hexreader
Posts: 1786
Joined: 27 Jun 2010 12:07
Location: England

Re: "Processor Data Memory Mode" Missing

#6 Post by hexreader » 22 Oct 2021 10:11

filip wrote:
22 Oct 2021 08:39

Am I missing something ?
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 :oops:

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) :)

Post Reply

Return to “mikroBasic PRO for PIC General”