We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
HI! I NEED HELP , I WROTE PROGRAM FOR C8051F020 IN ASM. $INCLUDE (C8051F000.INC) cseg at 0 ljmp main org 2bh ;t2 inter ljmp wave reti wave: clr tf2 cpl p1.0 mov a,p5 cpl a xrl p5,a reti main: mov oscicn,#06h ;enable-int osc , freq 8mhz mov oscxcn,#0 ;ext osc disable mov EMIOCF,#0 ;xram on-chip only mov xbr0,#00000000b ; mov xbr1,#00000000b mov xbr2,#00000000b mov ckcon,#00100000b;to t2 clk/12 mov t2con,#0 ;t2 - auto reload timer mov wdtcn,#0a5h ;reset & enable watchdog /* CLR EA ; disable all interrupts MOVWDTCN,#0DEh ; disable software watchdog timer MOVWDTCN,#0ADh SETB EA ; re-enable interrupts */ mov th2,#0ffh mov tl2,#(-10) clr tf2 setb tr2 sjmp $ END THE PROBLEM IS THAT INCLUDE FILE DON'T HAVE WDT , P5 AND EMOCIF REGISTERS. WHAT ANOTHER INCLUDE FILE EXIT FOT 8051F020
There is nothing magic about the include files - they are just plain assembler source files. You could easily write your own definitions for the refquired SFRs Or you could just try a quick look here: http://www.keil.com/dd/chip/3312.htm