Jump to content

16f628 wizard problem

Recommended Posts



When using the wizard to generate code for the 16f628 PIC i selected the "Use RS232" option under communications.


Doing so produces the following code in on_init()

	// rs232 communications setup
trisc |= 0xC0;
spbrg = 0x06;
txsta = 0x22;
rcsta = 0x90;
b_on_command = 0;
i8_RS232Index = 0;
set_bit( pie1, RCIE );


It won't compile as the 16f628 does not have a PORTC.




Link to post
Share on other sites
  • 1 month later...

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.

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.

  • Create New...