Jump to content

Recommended Posts

Hi all,

 

Could somebody tell me what this is setting up at the top of the example Ecio code?

 

#pragma DATA 0x300000, 0x20
#pragma DATA 0x300001, 0xe
#pragma DATA 0x300002, 0x3e
#pragma DATA 0x300003, 0x1e
#pragma DATA 0x300004, 0x0
#pragma DATA 0x300005, 0x81
#pragma DATA 0x300006, 0x81
#pragma DATA 0x300007, 0x0
#pragma DATA 0x300008, 0xf
#pragma DATA 0x300009, 0x80
#pragma DATA 0x30000a, 0xf
#pragma DATA 0x30000b, 0xa0
#pragma DATA 0x30000c, 0xf
#pragma DATA 0x30000d, 0x0

 

Cheers

 

Elvis75

Link to post
Share on other sites

These are the configuration data for your PIC.

 

Check out the header file for the details.

 

#define _CONFIG1L			 0x00300000 
#define _CONFIG1H			 0x00300001 
#define _CONFIG2L			 0x00300002 
#define _CONFIG2H			 0x00300003 
#define _CONFIG3H			 0x00300005 
#define _CONFIG4L			 0x00300006 
#define _CONFIG5L			 0x00300008 
#define _CONFIG5H			 0x00300009 
#define _CONFIG6L			 0x0030000A 
#define _CONFIG6H			 0x0030000B 
#define _CONFIG7L			 0x0030000C 
#define _CONFIG7H			 0x0030000D

 

Cheers

 

Reynard

Link to post
Share on other sites

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...