| View previous topic :: View next topic |
| Author |
Message |
temtronic
Joined: 01 Jul 2010 Posts: 9632 Location: Greensville,Ontario
|
|
Posted: Tue May 31, 2016 4:51 pm |
|
|
One thing to consider is that this pin may have several other uses and nornally you have to specifically 'disable' those functions. Perhaps this is part of the problem?
As an example...some PICs have the 'comparators' defaulted on and you MUST specifically disable them.
just an idea..
Jay |
|
 |
gjs_rsdi
Joined: 06 Feb 2006 Posts: 476 Location: Bali
|
|
Posted: Tue May 31, 2016 11:05 pm |
|
|
Thanks temtronic
Will go again true the data sheet and the LST, will post the findings if I will have some results
Best wishes
Joe |
|
 |
Ttelmah
Joined: 11 Mar 2010 Posts: 20061
|
|
Posted: Wed Jun 01, 2016 12:26 am |
|
|
Have you turned off TXEN?.
Otherwise it will be driven high by the UART. |
|
 |
gjs_rsdi
Joined: 06 Feb 2006 Posts: 476 Location: Bali
|
|
Posted: Wed Jun 01, 2016 1:35 am |
|
|
Hi Ttelmah
if you mean:
| Code: | | disable_interrupts(INT_TBE); |
Yes. Also in the LST don't have routine for tx
Best wishes
Joe |
|
 |
Ttelmah
Joined: 11 Mar 2010 Posts: 20061
|
|
Posted: Wed Jun 01, 2016 1:55 am |
|
|
No.....
Read the thread I pointed to.
To use the TX pin as a normal pin, you have to disable the TXEN bit. The thread shows how to do this. |
|
 |
gjs_rsdi
Joined: 06 Feb 2006 Posts: 476 Location: Bali
|
|
Posted: Wed Jun 01, 2016 3:50 pm |
|
|
Thanks again Ttelmah
I wish CCS was giving such information (or maybe I miss it)
It works perfect!!!
Even the RX pin works fine, should I do the same thing for it?
| Code: | | #bit RXEN=getenv("BIT:RXEN") |
& in the main
Best wishes
Joe |
|
 |
|