Deposit Rules for Periodic Tenancies Explained

What happens to deposit protection when an assured tenancy is periodic, or when an old AST has become an assured periodic tenancy?