ACCESS declaration replacement

General questions about Firewing...

ACCESS declaration replacement

Postby Coccoliso » Tue Sep 30, 2014 9:16 am

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.
User avatar
Coccoliso
 
Posts: 178
Joined: Sat Sep 27, 2014 10:02 am

Re: ACCESS declaration replacement

Postby Jerry Messina » Tue Sep 30, 2014 10:16 am

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.
Jerry Messina
 
Posts: 280
Joined: Thu Feb 14, 2013 10:16 am

Re: ACCESS declaration replacement

Postby Coccoliso » Tue Sep 30, 2014 12:25 pm

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.
Last edited by Coccoliso on Tue Sep 30, 2014 7:08 pm, edited 2 times in total.
User avatar
Coccoliso
 
Posts: 178
Joined: Sat Sep 27, 2014 10:02 am

Re: ACCESS declaration replacement

Postby Jerry Messina » Tue Sep 30, 2014 12:32 pm

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.
Jerry Messina
 
Posts: 280
Joined: Thu Feb 14, 2013 10:16 am

Re: ACCESS declaration replacement

Postby Coccoliso » Tue Sep 30, 2014 7:07 pm

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?
User avatar
Coccoliso
 
Posts: 178
Joined: Sat Sep 27, 2014 10:02 am

Re: ACCESS declaration replacement

Postby Jerry Messina » Tue Sep 30, 2014 7:44 pm

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.
Jerry Messina
 
Posts: 280
Joined: Thu Feb 14, 2013 10:16 am

Re: ACCESS declaration replacement

Postby David John Barker » Tue Sep 30, 2014 8:04 pm

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.
User avatar
David John Barker
 
Posts: 491
Joined: Thu Nov 08, 2012 12:21 pm

Re: ACCESS declaration replacement

Postby Coccoliso » Tue Sep 30, 2014 8:57 pm

Great, so everything is more orderly.
Good thing the possibility of browsing the UserLibrary.
User avatar
Coccoliso
 
Posts: 178
Joined: Sat Sep 27, 2014 10:02 am


Return to Questions

Who is online

Users browsing this forum: No registered users and 1 guest

x