problem working with atmega8
Hi,
Thanks for your reply and i think it is the problem. But would you please tell me how to calibrate the chip.
I have used the External Crystal 4MHz at Buad = 19200, it does communicate with mobile phone but:
1. Only receive does not Send data to the Mobile phone.
2. Device connected at SPI does not work. SPI clockrate = 64
What do you suggest me? Try to get another new ATEMGA8. Because my program is working fine with my Old Mega8. Actually the problem is that i will use ATEMGA16 for my further project and i need to prepare atleast 20 units so i am worry if they will have the same problem then it will problem for me.
Kindly help me.
REgards
Shan
Added after 1 hours 13 minutes:
Hi friend,
Thanks for your reply. One thing i want to tell you that i have used the Timer1 in my codes and timer1 setting is:
const Timer1Reload = 15625
config timer1=timer,prescale = 256
load timer1 , Timer1Reload
on ovf1 Timer1_isr
enable timer1
start timer1
and SPI clockrate = 64.
Do you think that Timer is making problem to control the SPI or i change the Timer1 setting.
Regards
shan