View previous topic :: View next topic |
Author |
Message |
Lorenzo
Joined: 23 Apr 2004 Posts: 14 Location: Pescara (Italy)
|
RDA problem |
Posted: Tue Jun 22, 2004 1:10 am |
|
|
I'm using a 16LF648A with a PCW compiler ver 3.157.
The RDA interrupt doesn't work but the receive line works well.
I use the same program with a 16LF628 and there aren't problems.
I suppose that the compiler doesn't use the hardware UART.
Please Help
Lorenzo |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Tue Jun 22, 2004 1:39 am |
|
|
Quote: | I'm using a 16LF648A with a PCW compiler ver 3.157.
The RDA interrupt doesn't work but the receive line works well.
I use the same program with a 16LF628 and there aren't problems.
I suppose that the compiler doesn't use the hardware UART. |
In this thread, the problem was fixed by requesting updated files
from CCS:
http://www.ccsinfo.com/forum/viewtopic.php?t=17251&highlight=16f648a
In this thread, a similar problem occurs with the 16F88. Two solutions
are suggested: Try to trick the compiler by specifying pins C6 and C7
for the USART, or if you have PCW, then edit the Device data to fix
the problem.
http://www.ccsinfo.com/forum/viewtopic.php?t=19455
So that's three possible solutions. Another one would be to upgrade
the compiler. |
|
|
Lorenzo
Joined: 23 Apr 2004 Posts: 14 Location: Pescara (Italy)
|
|
Posted: Tue Jun 22, 2004 1:57 am |
|
|
What can I do to fix this problem with device editor ? |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Tue Jun 22, 2004 2:28 am |
|
|
Quote: | What can I do to fix this problem with device editor ? |
Here is a screen shot of the Device Editor.
http://www.ccsinfo.com/pix/Device%20Editor.gif
First, you would select the 16F648A for editing.
Then, in the lower right corner of the window, you
can set the pin numbers for the hardware USART.
You can look in the 16F648A data sheet to find the
pin numbers for the USART.
I don't have PCW. I just have the separate PCM and PCH
compilers, so I can't give you much more help than this.
If you need more information, hopefully someone who has
PCW or PCWH will provide further help. |
|
|
Lorenzo
Joined: 23 Apr 2004 Posts: 14 Location: Pescara (Italy)
|
|
Posted: Tue Jun 22, 2004 2:34 am |
|
|
My chipedit is different.
It doesn't have the UART option |
|
|
|