E-Vent PWM & Timer Issue

Hello guys,

We produced an e-vent prototype with arduino uno. After that, we designed a pcb with ATMEGA32A microcontroller. I’m trying to upload my arduino code according to link https://www.instructables.com/id/Programming-ATMEGA32-or-Any-Other-AVR-Using-Arduin/ . I can upload the code. But when I try to start the program, I loose the Timer0 functions(delay & millis) functions. I have to use one PWM channel (I’ve selected OC1B on microcontroller) But I couldn’t use PWM and timer together. Can anyone help me about the my problem.

My OCR0 pin(PWM) is connected to Lcd D4 pin.

setup.ino (1.41 KB)