Good day I have an existing project that I just upgraded from an 18F2680 to a 18LF46K80 for what ever reason I can not get the Flow control to work correctly.
I created a simple program that transmits data out one port to a second chip, then reads the same data coming in on the rx pin. Without flow control it works correctly with flow enabled nothing. The issue is with USART 2. I've been working with setup for years so I'm sure I have it correct. 2 questions I have: -
1) If I incorrectly crossed the flow control pin RTS to RTS and CTS to CTS could or would this damage the port pins?
and if so how can I test to confirm.
2) Looking at the selection of chip does flowcode fully support the chip?
3) Could there be some setting that not correct.
4) Can I use the selected pins I have chosen for the flow control pins.
5) Do you have any other commendations.
Thanks in advance.
Ondra
18LF46K80 USART2 flowcontrol Not working
Moderator: Benj
18LF46K80 USART2 flowcontrol Not working
- Attachments
-
- TestPebble46K80_V4.fcf
- (15 KiB) Downloaded 180 times
Re: 18LF46K80 USART2 flowcontrol Not working
To take this further I did some simple test using a new chip. I discovered that Port c and d are not responding to the programing. I think this is
a bug. Can someone look into this for me? I have attached another version of the first file.
Thanks in advance.
Ondra
a bug. Can someone look into this for me? I have attached another version of the first file.
Thanks in advance.
Ondra
- Attachments
-
- ComLEDTest46K80_V4.fcf
- (12.5 KiB) Downloaded 178 times
- Steve
- Matrix Staff
- Posts: 3422
- Joined: Tue Jan 03, 2006 3:59 pm
- Has thanked: 114 times
- Been thanked: 422 times
- Contact:
Re: 18LF46K80 USART2 flowcontrol Not working
One component is set to UART2, which is on pins D6 and D7. You have flow control on pins A4 and A5.
The other component is set to use a software UART, using pins A1, A2, A3 and A4.
Is this what you are expecting?
We do not have this particular chip here, so we are limited in what we can do to test this. Can you produce a very simple program that exhibits the problem and post this please.
The other component is set to use a software UART, using pins A1, A2, A3 and A4.
Is this what you are expecting?
We do not have this particular chip here, so we are limited in what we can do to test this. Can you produce a very simple program that exhibits the problem and post this please.
Re: 18LF46K80 USART2 flowcontrol Not working
Yes and No. I placed code at the top just to test the out put after I had no success getting flow-control to work.
I have attached a simplified version. for some reason Portc and d wont do a simple flash Port e works fine.
Ondra
I have attached a simplified version. for some reason Portc and d wont do a simple flash Port e works fine.
Ondra
- Attachments
-
- TestPebble46K80_V4.fcf
- (5 KiB) Downloaded 176 times
Re: 18LF46K80 USART2 flowcontrol Not working
Today's Friday and I'm so hopping you can help me with this before you finish for the week end.
Ondra
Ondra
- Steve
- Matrix Staff
- Posts: 3422
- Joined: Tue Jan 03, 2006 3:59 pm
- Has thanked: 114 times
- Been thanked: 422 times
- Contact:
Re: 18LF46K80 USART2 flowcontrol Not working
Your first icon is a "while 3", which essentially means "loop forever" because "3" equates to "true". Could this be the problem?