Hello, I have a program in C and ASM which works properly on the AT89C5131 from Atmel. But I have a weird problem when I've try to use the X2 Mode without the peripherical (still in X1 Mode): The mode works it's nice and not the program and it is (quite) normal.But then when I want to rebuild the same programe except the lign,
MOV CKCON0,#OxFF;
Did you check the latest errata? Atmel 6 clock devices seem to have a lot of problems associated with X2 mode, particularly when some peripherals are running in X1.