To work with AMS v1 and AMS v2 boards, you can use AMS v3 instruction taking into account some differences in functionality.