Battery insertion and removal in the MAX77818 is detected by monitoring the DETBATB pin only. The datasheet revision 3 and earlier have a typo on page 48 where it states that battery insertion and removal is detected by monitoring the AIN and THRM pins which is wrong.