Advice for programming the PIC16f877A Microcontroller
Posted: Sat Jan 19, 2019 7:11 am
I'm working on a project on the PIC16F877A microcontroller. The PIC will be programmed using Flowcode V4 and i've already finished making the flowcode file. The project that i've chosen is a chess clock. Nothing too fancy, just for bullet chess. The .fcf is attached on this thread.
I've designed the project so that it uses a single switch for the players turn, two 7-segment displays shared by the two players, two LED's for the player turn indicator, and a reset button. I've already asked advice from my upperclassmen but their advice are quite limited. They said that the difficult part of getting the whole project to work properly is the timing mechanism. Most likely, we'd be using a crystal oscillator, but the timing would be way off unless we add a capacitor. They mentioned that we would still need to calculate for the right crystal oscillator and capacitor to use. They also mentioned that one of them used a car battery to power their project because using a normal battery wouldn't give enough current. I have a variable power supply but it only has variable voltage.
It's obvious that programming the project is only the easy part. If things get too complicated, i might drop the reset and LED indicator features. Are there any advice from any of you who've had experiences with similar situations? Any comments and advice are warmly welcome. I'd also appreciate it if you guys could suggest some components that would be perfect for the project.
Cheers.
I've designed the project so that it uses a single switch for the players turn, two 7-segment displays shared by the two players, two LED's for the player turn indicator, and a reset button. I've already asked advice from my upperclassmen but their advice are quite limited. They said that the difficult part of getting the whole project to work properly is the timing mechanism. Most likely, we'd be using a crystal oscillator, but the timing would be way off unless we add a capacitor. They mentioned that we would still need to calculate for the right crystal oscillator and capacitor to use. They also mentioned that one of them used a car battery to power their project because using a normal battery wouldn't give enough current. I have a variable power supply but it only has variable voltage.
It's obvious that programming the project is only the easy part. If things get too complicated, i might drop the reset and LED indicator features. Are there any advice from any of you who've had experiences with similar situations? Any comments and advice are warmly welcome. I'd also appreciate it if you guys could suggest some components that would be perfect for the project.
Cheers.