- 25/05/2020 at 01:01 #6776rahftoParticipant
Dear Student campaign team
In this link one of your projects which is about developing a real digital clock:
in this project you used a pic18F2026, however, i only have a pic18f4550 therefore, i was wondering if you could tell me what to change in the project since it is a different pic but they are the same family. i also would like to implement an alarming system with the clock
or if possible could you provide me the contact of the original developer of the project.
thank you and i look forward to hearing from you soon
kind regards, Rahaf
- 25/05/2020 at 12:26 #7271Bitahwa BinduKeymaster
Hi, sorry for the late reply, your topic was held-up for moderation due to the wrong link you posted. We only saw it now.
I am not sure if your question is still relevant or you have already found the solution.
If you are using the PIC18F4550, you can still use this project with some minor modifications.
- The first thing you will need to connect your external components correctly using the PIC18F4550 corresponding pins which might be on different pins, this is a 40 pin MCU while the PIC18F2620 is a 28 pin. For example the oscillator still on OSC1 and OSC2 but now on pins 14 and 13. Now your SDA and SCL for your DS1307 are now on RB0 and RB1, so if you still need to connect the LCD on PORTB, you can’t use RB0 and RB1, you can now start from RB2 or connect it to PORTD which is free.
- Change the configuration bits, in Project Menu, click on Edit project, change your MCU to use the PIC18F4550, if there is any other thing you would like to change here in oscillator or other configuration bits, you can do it here. Don’t forget to set the correct clock frequency used by your crystal oscillator.
- In your code, change the LCD module connections to the correct pins where you now connected your lcd
- The rest of the code is more or less the same.
- If it doesn’t work, let us know more what’s the problem.
- What do you mean by alarm system?
- You must be logged in to reply to this topic.