Non-charging help 89 Dakota

I used to own a 07 Ford Focus and the PCM controlled the alternator. I had to clear the codes after replacing a bad alternator.