??? 01/26/05 14:12 Read: times |
#85806 - Read the tutorial Responding to: ???'s previous message |
Lian Kok Tong said:
Actually I am using 11.059Mhz crystal. Would it affect much? Of course! You should read the "bible" thoroughly first, or the 8052.com tutorial on '51. In boot3.asm, the UART gets initialized in the init routine, which goes: ;******************************************************************** ; Init serial port ;******************************************************************** init: mov scon,#52h ; 8 bit UART mode mov tmod,#20h ; use timer 1 as baud rate clk mov th1,#-13 ; 2400 Baud with 12MHz xtal setb tr1 ; start timer ret For 11.0592MHz Xtal this gives 11059200/(12*32*13)=2215.4 bps. If you receive the first transmitted chracter (<cr>=0dh) at 4800, you should see something like e6h (but hyperterminal might experience this as 66h = "f" - you might have set 7 data bits or forcing to 7-bit ascii or something similar). You have 2 options: - you correct the reload value in program (for 4800bps at 11.0592MHz the reload value is -6) - set the PC's COM speed to 2215bps (this should be possible, but not with hyperterminal - try "terminal by bray"). Have fun! Jan Waclawek |
Topic | Author | Date |
how to Boot 8052? | 01/01/70 00:00 | |
Be specific! | 01/01/70 00:00 | |
Program RAM | 01/01/70 00:00 | |
Thanks for reminding! | 01/01/70 00:00 | |
Mods | 01/01/70 00:00 | |
Read the tutorial | 01/01/70 00:00 | |
Thanks | 01/01/70 00:00 | |
Study the code... | 01/01/70 00:00 | |
test | 01/01/70 00:00 | |
After Boot Loader...... | 01/01/70 00:00 | |
blink.ask | 01/01/70 00:00 | |
Attached Blink.asm | 01/01/70 00:00 | |
Is the RAM mapped for CODE memory? | 01/01/70 00:00 | |
Great! PROBLEM SOLVED!![]() | 01/01/70 00:00 | |
Didn't search first? | 01/01/70 00:00 | |
answer to dual thread question | 01/01/70 00:00 |