JayArr
New Member
Hi All
I'm new and I am reading the tutorials but I would like confirmation that the assumptions I'm making are correct.
I've read that I should replace the old 16C54C with a 16F54, that makes sense. Correct?
Pinouts are the same so when I get the 16F54 working it will drop in to replace a dead 16C54C without having to change any components on the circuit board. Correct? (I want to be able to repair old circuit boards as well as build new ones.)
I assume that I need to write a new source code file for the 16F54, Correct?
The project is a circuit board that reads the RPM of a generator using a hall effect sensor located beside the generator output shaft. Input on RB3. When RPM exceeds 660 RA2 goes high turning transistor Q1 and subsequently relay K1 on (this shuts off the starter motor). If the RPM ever exceeds 2190 RA1 goes high turning transistor Q2 and subsequently relay K2 on (this shuts down the generator due to overspeed - it should run around 1750-1800).
I've designed the circuit board using ExpressPCB and I've purchased the parts, I own a PICKit2 programmer and have the software installed and working. I have downloaded and installed MPLAB which resulted in icons for IDE, IPE and "driver switcher" on my desktop.
I think I'm ready to start coding, have I missed anything?
BTW, I've been playing with code for 40 years so I'm familiar with lower level lnaguages but a bit rusty, last assembly code I wrote was for the Z80 and 6502 CPUs in the 80s.
I'm new and I am reading the tutorials but I would like confirmation that the assumptions I'm making are correct.
I've read that I should replace the old 16C54C with a 16F54, that makes sense. Correct?
Pinouts are the same so when I get the 16F54 working it will drop in to replace a dead 16C54C without having to change any components on the circuit board. Correct? (I want to be able to repair old circuit boards as well as build new ones.)
I assume that I need to write a new source code file for the 16F54, Correct?
The project is a circuit board that reads the RPM of a generator using a hall effect sensor located beside the generator output shaft. Input on RB3. When RPM exceeds 660 RA2 goes high turning transistor Q1 and subsequently relay K1 on (this shuts off the starter motor). If the RPM ever exceeds 2190 RA1 goes high turning transistor Q2 and subsequently relay K2 on (this shuts down the generator due to overspeed - it should run around 1750-1800).
I've designed the circuit board using ExpressPCB and I've purchased the parts, I own a PICKit2 programmer and have the software installed and working. I have downloaded and installed MPLAB which resulted in icons for IDE, IPE and "driver switcher" on my desktop.
I think I'm ready to start coding, have I missed anything?
BTW, I've been playing with code for 40 years so I'm familiar with lower level lnaguages but a bit rusty, last assembly code I wrote was for the Z80 and 6502 CPUs in the 80s.
Last edited: