| ??? 09/25/07 10:20 Read: times |
#144970 - RE:data conflict/posting pictures Responding to: ???'s previous message |
Jan Waclawek said:
Nimish Dave said:
Hence there might be data conflict. Can't you disconnect the LCD and retry; simply by stopping after the first sequence so that the data can be "measured" directly; or perhaps sending it out via UART (if you are able to use it in your construction - which I strongly recommend)? JW This can be done.After sending signature byte read signal the data will be on port1 of 89c2051 and I will make master mcu to loop here so that I can measure the data.Using uart is not possible here as it is already used. I had experienced the data conflict while reading 89c51 code memory.As slave MCU will be in read mode (similar to signature byte read) and I send data on LCD using 4-bit mode the data conflict was there so I had to read data from slave MCU and than made it to write mode.Code will explain it in better way.
ORL A,#0C0H ;read mode
MOV P2,A
MOV P0,#0FFH ;P0 INPUT PORT
MOV R2,P0 ;reading from
;slave
MOV P0,#0FFH
MOV A,R1
ORL A,#0E0H ;write mode
MOV P2,A
MOV A,R1
CALL DISPLAY_DATA
|
| Topic | Author | Date |
| AT89c2051 power up sequence | 01/01/70 00:00 | |
| any schematics? | 01/01/70 00:00 | |
| No schematics right now | 01/01/70 00:00 | |
| at least... | 01/01/70 00:00 | |
| Single step | 01/01/70 00:00 | |
| And what was it, then? | 01/01/70 00:00 | |
| RE: And what was it, then? | 01/01/70 00:00 | |
| what LCD? | 01/01/70 00:00 | |
| RE: what LCD | 01/01/70 00:00 | |
| OK so why was the LCD blank? | 01/01/70 00:00 | |
| RE: OK so why was the LCD blank? | 01/01/70 00:00 | |
| data conflict/posting pictures | 01/01/70 00:00 | |
| RE:data conflict/posting pictures | 01/01/70 00:00 | |
| Schematics | 01/01/70 00:00 | |
| Complete schematic | 01/01/70 00:00 | |
| please use smaller pictures and png/gif | 01/01/70 00:00 | |
| Done | 01/01/70 00:00 | |
| Using 2051 | 01/01/70 00:00 | |
| make a full terminal from U3 | 01/01/70 00:00 | |
| Add some diodes | 01/01/70 00:00 | |
| RE:Add some diodes | 01/01/70 00:00 | |
| Multiplexing | 01/01/70 00:00 | |
| Pull ups | 01/01/70 00:00 | |
| Not required. | 01/01/70 00:00 | |
try this code | 01/01/70 00:00 |



