| ??? 11/17/02 15:07 Read: times |
#32662 - RE: Serial : Atmel 89C55 v Siemens 80C517 |
Hi micheal,
First, thanks for replying. My app uses serial port 0, both on the proto & on the target (the proto port 1 is for the monitor/trace program). It could be that the serial init is too simple, & that I may have to set up the baud rate generator to get the thing to transmit. bits of the code : " ;<body> ; START CLR EAL ; LCALL WAIT1S MOV KEYBD,#0 LCALL WAIT1S MOV KEYBD,#0FFH LCALL WAIT1S MOV KEYBD,#0 LCALL WAIT1S MOV KEYBD,#0FFH ; CLR SM0 ; com 0 mode 1 ( no par, 8bits, 1 stop ) SETB SM1 ; com 0 mode 1 SETB SM20 ; enable check RI0 SETB REN0 ; enable reception MOV PCON,#80H ; 9600 baud SETB BD ; baud rate enable ; MOV A,#'K' ;show we're running LCALL TXBYTE MOV A,#'B' LCALL TXBYTE MOV A,#'D' LCALL TXBYTE ; ;wait till kbd all off & rx of 1st DC2 from TIM ; MOV KEYBD,#0FFH ; ALIVE MOV A,KEYBD CPL A ANL A,#3FH JNZ ALIVE ; MOV A,KEYBD XRL A,#80H MOV KEYBD,A ;flash kbd port bit 7 while waiting ; LCALL RXBYTE CJNE A,#DC2,ALIVE ; " Note that I have already done a conversion from the same proto to a similar target, but that was RX only at 62,500 Bd. Tomorrow is another (working) day, so I will add code for using the Baud rate generator. Also, I could skip the tx bit, & just see if it responds to Rx. Note the html-style marker : the ancient Keil assembler I'm using won't support conditional assembly, so I wrote a pre-processor in QBasic to handle that! I will have to press my boss to buy that Pinnacle student package (I qualify, as I am still learning, despite advanced years!). Regards, Richard |
| Topic | Author | Date |
| Serial : Atmel 89C55 v Siemens 80C517 | 01/01/70 00:00 | |
| RE: Serial : Atmel 89C55 v Siemens 80C517 | 01/01/70 00:00 | |
| RE: Serial : Atmel 89C55 v Siemens 80C517 | 01/01/70 00:00 | |
| RE: Serial : Atmel 89C55 v Siemens 80C517 | 01/01/70 00:00 | |
| RE: Serial : Atmel 89C55 v Siemens 80C517 | 01/01/70 00:00 | |
| RE: preprocessor | 01/01/70 00:00 | |
| RE: preprocessor | 01/01/70 00:00 | |
| RE: Serial : Atmel 89C55 v Siemens 80C517 | 01/01/70 00:00 | |
| RE: Serial : Atmel 89C55 v Siemens 80C517 | 01/01/70 00:00 | |
| RE: Serial : Atmel 89C55 v Siemens 80C517 | 01/01/70 00:00 | |
RE: Serial : Atmel 89C55 v Siemens 80C517 | 01/01/70 00:00 |



