Aminoalkylphosphonate N-acetyltransferase which is able to acetylate a range of aminoalkylphosphonic acids, including aminomethylphosphonate, (S)-1-aminoethylphosphonate and 2-aminoethyl- and 3-aminopropylphosphonate, using acetyl-CoA as acetyl donor. Is required for the utilization of aminomethylphosphonate and (S)-1-aminoethylphosphonate as a phosphate source via the C-P lyase pathway. Is also essential for the detoxification of (S)-1-aminoethylphosphonate, a structural analog of D-alanine that has bacteriocidal properties due to inhibition of cell wall synthesis (PubMed:23056305). Also acts as a N-epsilon-lysine acetyltransferase that catalyzes acetylation of several proteins (PubMed:30352934). acetyl-CoA + aminomethylphosphonate = 2-N-acetamidomethylphosphonate + CoA (S)-1-aminoethylphosphonate + acetyl-CoA = [(1S)-1-acetamidoethyl]phosphonate + CoA acetyl-CoA + L-lysyl-[protein] = CoA + H(+) + N(6)-acetyl-L-lysyl-[protein] Homodimer. Cells lacking this gene have lost the ability to utilize aminomethylphosphonate or (S)-1-aminoethylphosphonate as the sole source of phosphate for growth, but are still able to utilize the other aminoalkylphosphonates 2-aminoethyl- and 3-aminopropylphosphonate, and alkylphosphonates. They are also much more susceptible to the bacteriocidal effect of (S)-1-aminoethylphosphonate, even with phosphate or D-alanine present. The sequence shown is that of strains K12 and B.