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

PIC18F47J53 : what are the different functions Pin select ?

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



Joined: 30 Jan 2012
Posts: 219

View user's profile Send private message

PIC18F47J53 : what are the different functions Pin select ?
PostPosted: Fri Oct 14, 2016 4:15 am     Reply with quote

hello,

I'm trying to use PIC18F47J53 with pin select, but I don't understand what means each function available :
T0CK, T1G, U2RX (vs RX2 ?) FTL0, T0CKI
C1OUT, U2TX (vs TX2?) UPLOUT, P1A, DT2, SSDMA

Where can I find what they mean and what they do ?

What is the difference between RX2 and U2RX ?

Thanks for your help.

regards
temtronic



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

View user's profile Send private message

PostPosted: Fri Oct 14, 2016 4:45 am     Reply with quote

Simple answer... printout the 'header' that CCS uses for that PIC and then compare the 'names' to what uchip uses in the 500-600 pages of the datasheet. Gone are the days of chips with only 14 pins, 16 instructions...
While I don't use that PIC, CCS does try to name pins, registers and bits the same or similar to what uchip has.
Once you get a decade or two proramming PICs, it'll be second nature to you....until then, reading the manuals, is kinda important.

Jay
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Fri Oct 14, 2016 6:38 am     Reply with quote

It's right there in these sections of the 18F1847J53 data sheet:
10.7.3.1 Input Mapping (page 156)
10.7.3.2 Output Mapping (page 157)
http://ww1.microchip.com/downloads/en/DeviceDoc/30009964C.pdf

Examples:
C1OUT = Comparator 1 Output
SSDMA = SPI DMA Slave Select
SDO2 = SPI2 Data Output
etc.


Last edited by PCM programmer on Fri Oct 14, 2016 10:25 am; edited 2 times in total
Ttelmah



Joined: 11 Mar 2010
Posts: 19539

View user's profile Send private message

PostPosted: Fri Oct 14, 2016 7:04 am     Reply with quote

Also look at the header include file for your PIC. Has this in the comments near the top:
Code:

////////////////////////////////////////////////////////////////// PIN_SELECT
// #pin_select function=pin
// Valid Pins:
//    PIN_A0,PIN_A1,PIN_A5,PIN_B0,PIN_B1,PIN_B2,PIN_B3,PIN_B4,PIN_B5,PIN_B6,
//    PIN_B7,PIN_C0,PIN_C1,PIN_C2,PIN_C4,PIN_C5,PIN_C6,PIN_C7,PIN_D2,PIN_D3,
//    PIN_D4,PIN_D5,PIN_D6,PIN_D7
// Input Functions:
//    INT1,INT2,INT3,T0CK,T3CK,T5CK,CCP1,CCP2,CCP3,T1G,T3G,T5G,U2RX,U2CK,SDI2,
//    SCK2IN,SS2IN,FLT0,T0CKI,T3CKI,RX2
// Output Functions:
//    NULL,C1OUT,C2OUT,C3OUT,U2TX,U2DT,SDO2,SCK2OUT,SS2OUT,ULPOUT,P1A,P1B,P1C,
//    P1D,P2A,P2B,P2C,P2D,P3A,P3B,P3C,P3D,TX2,DT2,SCK2,SSDMA
//


The names of the pins that can be used for select, and the names of the input/output functions that can be mapped.

Combine this with the data sheet, and the examples (ex_pinselect.c & ex_pin_select2.c), and hopefully things then become easier.
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