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

dsPIC33F portA pins not in .H file [solved]

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



Joined: 16 Oct 2008
Posts: 18
Location: Chile

View user's profile Send private message

dsPIC33F portA pins not in .H file [solved]
PostPosted: Tue Jan 27, 2009 11:23 am     Reply with quote

Hi everyone.

the 33FJ128GP802.h has definitions por all the pins from port B, C, D, F & G, but this pic only has ports A & B, so I can't use port A, and don't know how to add it.

the portB in the datasheet is in the address 0x02CA, and in the H file is:

#define PIN_B0 5712
#define PIN_B1 5713
#define PIN_B2 5714
#define PIN_B3 5715
#define PIN_B4 5716
#define PIN_B5 5717
#define PIN_B6 5718
#define PIN_B7 5719
#define PIN_B8 5720
#define PIN_B9 5721
#define PIN_B10 5722
#define PIN_B11 5723
#define PIN_B12 5724
#define PIN_B13 5725
#define PIN_B14 5726
#define PIN_B15 5727

and PortA address is 0x2C2

so I don't know the address to pin_a0, pin_a1, etc.

Any help will be appreciated, thanks Smile

Daniel.

EDIT:

Solved Very Happy

Add this to the H file:

Code:

#define PIN_A0  5648   
#define PIN_A1  5649   
#define PIN_A2  5650   
#define PIN_A3  5651   
#define PIN_A4  5652   


copied from another H file.
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