Page 1 of 1

ACCESS declaration replacement

PostPosted: Tue Sep 30, 2014 9:16 am
by Coccoliso
Hello,
I would like to implement SUART only for debugging purposes ( MCU output only ), since I use the HW UART for serial comunication to a GSM module. In FW I could not find the equivalent of the declaration SF ACCESS, still exist? If not how can I workaround?
Thanks.

Re: ACCESS declaration replacement

PostPosted: Tue Sep 30, 2014 10:16 am
by Jerry Messina
You can probably just remove the ACCESS keyword. For the PIC18 that was used to get the variables located in the access bank so they didn't require a bank select instruction.

If you're translating the SF SUART, the timing is going to be a lot different on a pic24.

Re: ACCESS declaration replacement

PostPosted: Tue Sep 30, 2014 12:25 pm
by Coccoliso
Hello Jerry,
look ... I mean go to FW because I do not want to miss the train but I think it will not give up the use of the PIC18 because they are closely tied to the "solder side" of the PCB and I'm quite allergic to the "surface side", perhaps you can understand me.
If ever MC will create a PIC24 80 DIP :P maybe we'll talk about the timing.

Re: ACCESS declaration replacement

PostPosted: Tue Sep 30, 2014 12:32 pm
by Jerry Messina
I just meant that the SF SUART module uses a lot of PIC18 ASM instructions, so if you want to translate that module you're in for some work.

Re: ACCESS declaration replacement

PostPosted: Tue Sep 30, 2014 7:07 pm
by Coccoliso
Hello Jerry,
I converted the SUART module and works.
Rather, I saw that the structure of the libraries has been studied by type of MCU.
Can you tell me where I should put in UserLibrary logically the PIC18 modules that I am converting?
Exists for the folder UserLibrary the same strategy used in the original Library folder?
I mean that I can create a folder in UserLibrary MCU08?
There is a special mechanism?

Re: ACCESS declaration replacement

PostPosted: Tue Sep 30, 2014 7:44 pm
by Jerry Messina
I mean that I can create a folder in UserLibrary MCU08?
There is a special mechanism?

I don't think there are any special folders in the UserLibrary, but I could be wrong.

I'm not sure where the best place for it would be.

Re: ACCESS declaration replacement

PostPosted: Tue Sep 30, 2014 8:04 pm
by David John Barker
Yes, you can use

Code: Select all
MCU08
MCU16
MCU32

in the UserLibrary folder. This enables you to create modules specific for particular cores. That is, you could create three different modules called "myModule.bas" with each one designed to handle 8, 16 or 32 bit MCUs. By the way, you can view the "UserLibrary" by selecting "View User Library" from the code explorer menu.

Re: ACCESS declaration replacement

PostPosted: Tue Sep 30, 2014 8:57 pm
by Coccoliso
Great, so everything is more orderly.
Good thing the possibility of browsing the UserLibrary.