CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Search found 12 matches
CCS Forum Index
Author Message
  Topic: [HELP!!] Change UART RX/TX pin dynamically using PPS
rsappia

Replies: 25
Views: 42272

PostForum: General CCS C Discussion   Posted: Wed Dec 29, 2010 8:46 am   Subject: [HELP!!] Change UART RX/TX pin dynamically using PPS
I tried a similar sequence on a 24FJ128GA106 and it worked as expected. The original TX pin is correctly deactivated by writing 0 it's RPORx register.

Either you have a simple case of crosstalk, be ...
  Topic: [HELP!!] Change UART RX/TX pin dynamically using PPS
rsappia

Replies: 25
Views: 42272

PostForum: General CCS C Discussion   Posted: Wed Dec 29, 2010 6:08 am   Subject: [HELP!!] Change UART RX/TX pin dynamically using PPS
Thanks FvM, right now, im about to try with other model (24fj64ga002) to see what happens!
  Topic: [HELP!!] Change UART RX/TX pin dynamically using PPS
rsappia

Replies: 25
Views: 42272

PostForum: General CCS C Discussion   Posted: Wed Dec 29, 2010 5:24 am   Subject: [HELP!!] Change UART RX/TX pin dynamically using PPS
What I see is that, first time I run this loop, the first printf ("\n \r Now I use RB15"); is transmitted ok, in RB15 and RB0 stays mute. Then, I configure the RB0 as output and RB15 as def ...
  Topic: [HELP!!] Change UART RX/TX pin dynamically using PPS
rsappia

Replies: 25
Views: 42272

PostForum: General CCS C Discussion   Posted: Tue Dec 28, 2010 5:22 pm   Subject: [HELP!!] Change UART RX/TX pin dynamically using PPS
FvM
PostPosted: Fri Dec 24, 2010 1:49 am Post subject:
According to your observation, the problem is, that both outputs are transmitting the data?

But how do you see it? You're executing th ...
  Topic: [HELP!!] Change UART RX/TX pin dynamically using PPS
rsappia

Replies: 25
Views: 42272

PostForum: General CCS C Discussion   Posted: Thu Dec 23, 2010 5:09 pm   Subject: [HELP!!] Change UART RX/TX pin dynamically using PPS
I'll comment the piece of code so we understand each other ;)



//in the .h:

#use delay(clock=20000000)
#pin_select U1TX =PIN_B15 // I set B15 as first output. Later, I'll need to ...
  Topic: [HELP!!] Change UART RX/TX pin dynamically using PPS
rsappia

Replies: 25
Views: 42272

PostForum: General CCS C Discussion   Posted: Thu Dec 23, 2010 4:13 pm   Subject: [HELP!!] Change UART RX/TX pin dynamically using PPS
Hi!

I guess its a good suggestion...

setup_uart(FALSE); I tried with this... but still the same result :(
  Topic: [HELP!!] Change UART RX/TX pin dynamically using PPS
rsappia

Replies: 25
Views: 42272

PostForum: General CCS C Discussion   Posted: Thu Dec 23, 2010 3:52 pm   Subject: [HELP!!] Change UART RX/TX pin dynamically using PPS
Why don't people bother to read the datasheet?
Good question. Apparently also PCD compiler programmers at CCS don't. I missed your previous post,
because I was double checking the unlock code opera ...
  Topic: [HELP!!] Change UART RX/TX pin dynamically using PPS
rsappia

Replies: 25
Views: 42272

PostForum: General CCS C Discussion   Posted: Thu Dec 23, 2010 3:38 pm   Subject: [HELP!!] Change UART RX/TX pin dynamically using PPS
My answer was not an attack on you, rather that this forum is for real PICs, and NOT a Proteus simulator forum.
Simulator's are NOT reliable and are FULL of 'hidden' problems that cannot easily be di ...
  Topic: [HELP!!] Change UART RX/TX pin dynamically using PPS
rsappia

Replies: 25
Views: 42272

PostForum: General CCS C Discussion   Posted: Thu Dec 23, 2010 9:24 am   Subject: [HELP!!] Change UART RX/TX pin dynamically using PPS
I will ask in other way so no one get offended...

I guess in this part of code im not doing well..


void lockIO(){

#asm
mov OSCCON,w1 //OSCCON defined in .h
mov #0x0046, w2 ...
  Topic: [HELP!!] Change UART RX/TX pin dynamically using PPS
rsappia

Replies: 25
Views: 42272

PostForum: General CCS C Discussion   Posted: Thu Dec 23, 2010 8:23 am   Subject: [HELP!!] Change UART RX/TX pin dynamically using PPS
What does your program do in the _real_ world? IE, a real PIC programmed with your code?

Gee...Proteus doesn't seem to work ???
I'm amazed at how many have blind faith in that 'simulator'.
I can ...
  Topic: PIC18F26J11 / CCS PCWH help
rsappia

Replies: 11
Views: 14704

PostForum: General CCS C Discussion   Posted: Thu Dec 23, 2010 7:18 am   Subject: PIC18F26J11 / CCS PCWH help
I'm (still) writing code for an 18F46J11 -- they're a blast.

It's so nice to have 2 UART's on a small (<64 pin) package.

The re-mappable pins are fabulous (once they work).

Enjoy your 26J1 ...
  Topic: [HELP!!] Change UART RX/TX pin dynamically using PPS
rsappia

Replies: 25
Views: 42272

PostForum: General CCS C Discussion   Posted: Thu Dec 23, 2010 7:06 am   Subject: [HELP!!] Change UART RX/TX pin dynamically using PPS
Hello, I'm currently writing a piece of code that should be able to change the output and input pin of the UART using the PPS feature. I need to do this while the program is running. So far I have tri ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group