View previous topic :: View next topic |
Author |
Message |
younder
Joined: 24 Jan 2013 Posts: 53 Location: Brazil
|
Use of PINS C6&C7 as output in PIC184550 + USB Enabled |
Posted: Sat Apr 06, 2013 4:05 pm |
|
|
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
|
|
Posted: Sat Apr 06, 2013 4:30 pm |
|
|
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: 9225 Location: Greensville,Ontario
|
|
Posted: Sat Apr 06, 2013 7:21 pm |
|
|
...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: 19504
|
|
Posted: Sun Apr 07, 2013 4:27 am |
|
|
Obvious things would be either the UART is enabled, or SPI.
Best Wishes |
|
|
|