The mistake is your belief that the application circuit will work as shown in the datasheet. It’s a non-specific example with a non-existent program listing. It’s what we call a conceptual drawing. Holtek provides the concept, you provide the details. So far, you’ve provided no details.