??? 04/12/06 12:55 Read: times |
#114152 - Showing your ignorance Erik! Responding to: ???'s previous message |
Surely Erik, you've heard of BASIC?
Brecht - how do you expect us to understand this code? How are we expected to know how the port pins are connected? At best we can assume you're bashing some bits. I think I can spot a fundamental error - I'm assuming P2 is the data bus. P2 = &H00 Gosub Statusscheck Gosub Writedata Now if we expand the gosubs, the code sequence might look like this: P2 = &H00 ;Statuscheck P0 = &B00011001 P2 = &B00000011 ;WriteData P0 = &B00010010 As you can see, P2 gets corrupted in Status check, so it has no hope of working. Also, without knowing how you've connected the lcd to the port pins, I cannot understand how you bit-bash the bus cycle. In,short - re-read the datasheet on your devices CAREFULLY and rewrite your code so it works the way that is required. You might just find your display will magically start to work as you expect. |
Topic | Author | Date |
8051 --> T6963C | 01/01/70 00:00 | |
get your feet wet on doing something sim | 01/01/70 00:00 | |
simpeler | 01/01/70 00:00 | |
Evil | 01/01/70 00:00 | |
8051 --> T6963C | 01/01/70 00:00 | |
show link to lcd | 01/01/70 00:00 | |
schematic | 01/01/70 00:00 | |
init code | 01/01/70 00:00 | |
Probably best to post code ... | 01/01/70 00:00 | |
here u go | 01/01/70 00:00 | |
what tool are you using | 01/01/70 00:00 | |
Showing your ignorance Erik! | 01/01/70 00:00 | |
yeah, I have heard of it | 01/01/70 00:00 | |
Post circuit | 01/01/70 00:00 | |
Circuit | 01/01/70 00:00 | |
example | 01/01/70 00:00 | |
error messages make no sense | 01/01/70 00:00 | |
compiler | 01/01/70 00:00 | |
I expect many problems | 01/01/70 00:00 | |
Speed is relative..... | 01/01/70 00:00 | |
I see a half toshiba!!! :p | 01/01/70 00:00 | |
Toshiba | 01/01/70 00:00 | |
Bin To Hex | 01/01/70 00:00 | |
out of memory | 01/01/70 00:00 | |
Great | 01/01/70 00:00 | |
More info | 01/01/70 00:00 | |
Graphic files | 01/01/70 00:00 | |
Hardware and software | 01/01/70 00:00 | |
Bmp conversion solved![]() | 01/01/70 00:00 |