i am making a custom board using atmega328p. i am programming the chip using a arduino uno board which works fine but when i attach the microcontroller to the development board, the delay function doesn't seem to work. I think there is a problem with the oscillator. I have simply connected a crystal at xtal pins. Is this the correct way??