I apologize in advance if I didn't cross-post properly. I want to write a .c and .h file controlling a DS1302 real-time clock using a PIC18F2620 microcontroller. I want to keep my RTC code's pin usage flexible, so I want to write an initialization routine that reads in the pins that the whole program wants to use in main.c and have RTC.c and RTC.h refer to the wanted pins. I am having trouble finding the address of the pins, let's say RA1, RA2, ..., in the datasheet. I've posted a similar thread in Microchip forums and got an example shown in
- posted
16 years ago