farzinkalali
Newbie level 3
- Joined
- Oct 29, 2014
- Messages
- 4
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1
- Activity points
- 30
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
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
Code Basic4GL - [expand] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 $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
Last edited by a moderator: