The PFG provides an alternate clock input to the Zilog 8530 SCC to improve compatibility with the Mac Plus when using MacWorks Plus II.
However, as stated on page 26 in the MacWorks Plus II manual, when the PFG is installed but an environment is in use that does not recognize it (currently everything other than MW+II), the modem port (Serial A) does not work correctly in that the selected baud rate does not match what actually appears at the serial port.
This issue can be mitigated when connecting to a computer that supports an arbitrary baud rate. I believe the Raspberry Pi is in this category.
The stock Lisa Serial A clock is 4.000 MHz
The Mac Plus SCC clock is 3.672 MHz (which is provided by the PFG in lieu of 4MHz)
To select a comparable baud rate that matches the actual Serial A baud rate with the PFG installed but not recognized, one could multiply the Lisa nominal baud rate by 3.672/4.
However, the 4 MHz clock in the Lisa does not divide evenly by the standard baud rates (ie. Serial A of the stock Lisa has a small baud rate error which varies with rate). Since the SCC clock rate divisors are integers, the Serial A "Actual Baud Rate" selected by the Lisa is
ABR = 4x106 / (CM * 2 * (TC+2))
where the Time Constant TC is calculated from the desired baud rate as
TC = Round( 4x106 / (CM * 2 * NominalBaudRate) ) -2
and CM is the internal clock mode setting for the SCC, which may be 1, 16, 32, or 64. In most cases 1 is used (if 16 is used, the ABR does not differ by much for usable baud rates).
To compensate for the PFG, multiplying the ABR by 3.672/4 gives the equivalent baud rate the other end should use for the best match.
IIRC, the PFG generates 3.672 MHz by dividing its 36 MHz oscillator by 500/51, which is exact aside from some jitter.
So, if one selects the following nominal baud rates for Serial A (using anything other than MW+II) with the PFG installed, the Actual matching baud rates would be:
Lisa Lisa Lisa NO PFG Lisa +PFG
Nominal x1 Clock Mode Actual Actual Matching
Baud Rate Divisor Baud Rate Baud Rate
110 18180 110.00 101
150 13331 150.00 138
200 9998 200.00 184
300 6665 299.99 275
600 3331 600.06 551
1200 1665 1199.76 1101
1800 1109 1800.18 1653
2400 831 2400.96 2204
3600 554 3597.12 3302
4800 415 4796.16 4403
9600 206 9615.38 8827
19200 102 19230.77 17654
31250 62 31250.00 28688
38400 50 38461.54 35308
57600 33 57142.86 52457
115200 15 117647.06 108000
230400 7 222222.22 204000
460800 2 500000.00 459000
The resulting baud rates are not a perfect match (yet better than the stock Lisa over 1800 baud) but I expect are close enough for reliable communication.
A patch could be made to earlier MacWorks variants (and probably other environments) to fix the Serial A issue when the PFG is installed; if this would be of value to you, please let me know.
James
Note: Serial B does not have this problem as it has a 3.6864 MHz crystal which results in exact whole number divisors for common baud rates over 110.
Edits:
As posted below, the formula used initially to calculate these values was not quite correct, so this post has been updated with the hope it will be more correct.