Let's do it

speedy wrote:rise my hand ... In option 1:Do you mean ... There will be no loss to ATMEAG to FW it again . Because that's a temporarily condition with Dip-sw3 ON ... And in option 2 dip-sw 4 is ON ... Do you mean this will disable the internally control generator PWM or just the output pins will be disconnected ?
There will be no loss to ATMEGA to FW it again.

This is modified (with some debug function) version of firmware for AMC with Atmega8535 22MHz.
For testing use next switch combination:
debug mode 1 - DIPSwitch#3 = ON and DIPSwitch#4 = OFF
This combination used for disable RX channel of Atmega8535. In this mode AMC can't receive any data from PC, but FW generate (himself) line-changed positions for motors to activate both PWM channels.
debug mode 2 - DIPSwitch#3 = OFF and DIPSwitch#4 = ON
This combination used for disable both PWM channels of Atmega8535. In this mode AMC can receive data from PC and display its on LCD, but there are not PWM generate on atmega pins.
We can use this both modes for separating communication (software) errors and hardware errors.
If AMC go to reset when debug mode 1 is activated, there is a HARDWARE or POWER problem.
If AMC go to reset when debug mode 2 is activated, there is a FOFTWARE problem.
In any other case - to think, to think and to think



PS: After changing DIP-Switch position you must RESTART AMC.