daraos
Joined: 16 Oct 2008 Posts: 18 Location: Chile
|
dsPIC33F portA pins not in .H file [solved] |
Posted: Tue Jan 27, 2009 11:23 am |
|
|
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
Daniel.
EDIT:
Solved
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. |
|