Jump to content
Sign in to follow this  
reevphil

Addressing For Port Bits

Recommended Posts

:o Hello new to this forum but I am looking at issues with addresssing ports I have looked at the sample programs for C and picclite and put together something i though was compatible but I have downloaded picclite v9.50 and the hitide and mplab freeware and even went so far as to get a version of boost c compiler but issue seems to center around this section of code when building the compilers seem to have trouble with the word bit and also produce errors such as missing fixed address missing semicolon target is 16f627 and does boost C recoginize the c program time function delay?

#define PORTBIT(adr, bit) ((unsigned) (&adr)*8+(bit));

 

static bit papin1 @ PORTBIT(PORTA, 0);

static bit papin2 @ PORTBIT(PORTA, 1);

static bit papin3 @ PORTBIT(PORTA, 2);

Share this post


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...
Sign in to follow this  

×
×
  • Create New...