??? 04/11/07 13:23 Read: times |
#136982 - that is problematic Responding to: ???'s previous message |
SCON0= 0xD2;//put serial ports into mode 3 // SCON1= 0xD2; TMOD |=0x20;//put timer 1 into mode 2 TH1=244;//value to set timer to after it rolls over TR1=1;//start timer 1 running TB8_0=0;//9th data bit SMOD_1=1;//doubler bits for both serial portsSCON0= 0xD2 generates the TI interrupt BEFORE the timer driving the serial is started. I, honestly, have no idea what that will do, but It is definitely not 'kosher'. also, with this kind of 'rapid start', you need to load TL1 so that the first timer run is timd right. Rrik you DO need some 'bible time' especially chapter 3 here are the links to "the bible" Chapter 1 - 80C51 Family Architecture: http://www.nxp.com/acrobat_d...ARCH_1.pdf Chapter 2 - 80C51 Family Programmer’s Guide and Instruction Set: http://www.nxp.com/acrobat_d...UIDE_1.pdf Chapter 3 - 80C51 Family Hardware Description: http://www.nxp.com/acrobat_d...WARE_1.pdf |
Topic | Author | Date |
"Newbie's" etc with indents | 01/01/70 00:00 | |
a recommendation and a question | 01/01/70 00:00 | |
am I missing something? | 01/01/70 00:00 | |
Re: missing something? | 01/01/70 00:00 | |
re: recc's and question | 01/01/70 00:00 | |
glossary | 01/01/70 00:00 | |
"bible" time | 01/01/70 00:00 | |
Where is the Interupt Handler? | 01/01/70 00:00 | |
re: handler location | 01/01/70 00:00 | |
re: actual handler location | 01/01/70 00:00 | |
Status update | 01/01/70 00:00 | |
that is problematic | 01/01/70 00:00 | |
re: Problematic. | 01/01/70 00:00 | |
just spotted this | 01/01/70 00:00 | |
re: Interrupt number | 01/01/70 00:00 | |
if you do like this (http://....) | 01/01/70 00:00 | |
re: interrupt *solution*![]() | 01/01/70 00:00 |