| ??? 12/28/08 08:52 Read: times |
#161182 - serial port as shift register Responding to: ???'s previous message |
Andy Neil said
Andy Neil said:
Are you familiar with any other microcontrollers/microprocessors, or are you completely new to the entire area? Not really new to the 8051 I have been studying the data sheets etc and bought some software to compile and debug 8051ASM actually this is an old system that uses a 80C31 a romless 8051 of course I have plenty of practice using atmel AVR asm so assembler is not relatively new to me I prefer to write in assembler over C Andy Neil said:
What makes you think that is using "the serial port as an 8 bit shift register"? MOV SCON, #13h only command in whole program that refers to SCON Loading SCON with #13H is equivalent to enabling both TI, RI and REN enabling reception, also this means that the serial port is in mode 0 unless I am misunderstanding the data sheet I think I am correct I myself was pretty sure that it was a "loopback" as some people have mentioned what goes in comes out the reason I wanted to confirm this was because I am sure that no data that comes in from the serial port actually makes it to external RAM that is what I wanted to confirm?, which makes the rest easy for me this also links to my other post of moving asm to c which is not needed if this is the case. unless there is some other trick way of getting data into the external RAM knowing that the only one routine/command in the whole asm code that refers to SBUF iS the previously mentioned command MOV SBUF,SBUF I assume if any data made it to external RAM then the code would have had to MOV the DPTR to some external ram location then move the SBUF data in |
| Topic | Author | Date |
| 8051/2 serial port as shift register | 01/01/70 00:00 | |
| Read the datasheet and look for Mode 0 | 01/01/70 00:00 | |
| The datasheet for YOUR MCU - or not? | 01/01/70 00:00 | |
| it doesn't always work in the same way | 01/01/70 00:00 | |
| True; hence... | 01/01/70 00:00 | |
| Loopback? | 01/01/70 00:00 | |
| serial port as shift register | 01/01/70 00:00 | |
| Insufficient information | 01/01/70 00:00 | |
| cute | 01/01/70 00:00 | |
Not enough Inofmation start from scratch | 01/01/70 00:00 |



