i have a project to transmit data wireless using rf modules using 433Mhz....with AT89C51 microcontroller....plz anyone post me a assembly code for this transmission....!!!!!
this can be changed. it ran at 12MHz not at 433MHz but I think it will be ok.
mov dpx, a mov dph, #0 mov dpl, #0 movx a, @dptr ; get the first byte on this page mov b, a ; store it in b push ie clr ea ; disable interrupts while we write clr a ; try to write a 0 movx @dptr, a nop nop movx a, @dptr ; did it stick? jnz f_eb_isflash mov a, #0FFh ; now try to write FF movx @dptr, a nop nop movx a, @dptr ; did it stick? cpl a jz f_eb_restore ; if zero, it wrote and must be RAM ; ; if it didn't stick, it is probably flash. try to erase. ; f_eb_isflash: mov a, r7 ROMCALL ROMXT_FLASHSECTORERASE pop ie ; restore interrupts mov r7, #0 jc f_eb_exit f_eb_fail: mov r7, #1 ; flag failure if carry bit clear
thanx.....!!!!!!......can u plz write code using serial transmission also.....!!!!!!