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 support@ccsinfo.com

Use of PINS C6&C7 as output in PIC184550 + USB Enabled

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
younder



Joined: 24 Jan 2013
Posts: 53
Location: Brazil

View user's profile Send private message

Use of PINS C6&C7 as output in PIC184550 + USB Enabled
PostPosted: Sat Apr 06, 2013 4:05 pm     Reply with quote

Does anyone know if I can use the two mentioned pins(C6 and C7) in PIC18F4550 as output with USB function enabled? I have tested it with a single output_toggle function, but it did not work..... I know that C4 and C5 cannot be used as Input when USB active, but what about 6&7? Any help would be appreciated!

Hugo
_________________
Hugo Silva
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sat Apr 06, 2013 4:30 pm     Reply with quote

Quote:
I have tested it with a single output_toggle function, but it did not work
Post a little test program that shows this.

Example of a short, complete test program for 18F4550:
http://www.ccsinfo.com/forum/viewtopic.php?t=49056&start=14

Also post your CCS compiler version if you know it.
temtronic



Joined: 01 Jul 2010
Posts: 9169
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Sat Apr 06, 2013 7:21 pm     Reply with quote

...according to the datasheet, table 1-2, both C6 and C7 can be used for digital I/O but have ST not TTL buffers.

we'd have to see your code to figure out what you're doing wrong....

hth
jay
Ttelmah



Joined: 11 Mar 2010
Posts: 19358

View user's profile Send private message

PostPosted: Sun Apr 07, 2013 4:27 am     Reply with quote

Obvious things would be either the UART is enabled, or SPI.

Best Wishes
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group