PCM turns on and off the alternator for charging. Per specs on a factory battery and expected load use.
In the old days, the alternator stayed on charging the battery as long as the key was on.
They CEASED lowering the voltage to the wire to energize the alternator and now just flick it off with the PCM and why your trucks voltage meter jumps between 12 and 14 while driving.
For a few years they were lowering the voltage to the alternator to keep the gauge at 14 volts while running ...yet lowering amp output.
Now...”Fuel Economy” pipe dreams of savings.They just flick it off so your electrical components like electric steering and amps have to deal with voltage fluctuation.
If we had the old school headlights this would be a major issue of lights dimming and getting bright. Why we have LED headlights now. Computer controls voltage to them, not battery or charging system voltage.