hi
I write a program on bascom for atmega8
that suppose to make 16 pulses when the pinb.1 is 0
I want to use calibrated internal RC oscillator for atmega8
I have tried the program on Proteus simulator and it works
but on the board doesn't work
I think the problem is on how to program the chip
anybody can help me please
I will be appreciate
thank you
this is my bascom program
$regfile = "m8def.dat "
$crystal = 8000000
Dim A As Byte
Dim B As Byte
Set Pinb.1
Reset Pinb.4
Start:
Reset Pinb.4
If Pinb.1 = 0 Then
For B = 1 To 2
For A = 0 To 15
Set Pinb.4
Wait 1
Reset Pinb.4
Wait 1
Next A
Next B
Reset Pinb.4
End If
Goto Start
End