| ??? 02/12/09 06:16 Read: times |
#162306 - is other part(LCD) working? Responding to: ???'s previous message |
Hi Sebastian,
I see some errors in Your code (see below my proposal for lines 50..65) , but its interesting - basic LCD output is working/tested or not. AND - READ CAREFULLY description of "CJNE" instruction. regards
main_loop:
mov dptr, #port_a
MOVX a,@dptr ; mov R1, @dptr ;Read Port B into the accumulator
ANL A,#0FH
JZ msg00 ; cjne @R1, #00, msg00
DEC A
JZ msg01 ; cjne @R1, #01, msg01
DEC A ; cjne @R1, #02, msg02
JZ msg02; cjne @R1, #03, msg03
DEC A; cjne @R1, #04, msg04
JZ msg03; cjne @R1, #05, msg05
.......; cjne @R1, #06, msg06
.......; cjne @R1, #07, msg07
.......; cjne @R1, #08, msg08
.......; cjne @R1, #09, msg09
.......; cjne @R1, #10, msg0A
.......; cjne @R1, #11, msg0B
.......; cjne @R1, #12, msg0C
.......; cjne @R1, #13, msg0D
.......; cjne @R1, #14, msg0E
.......; cjne @R1, #15, msg0F
DEC A
JZ msg0F
ljmp 0
|
| Topic | Author | Date |
| Need some help with port reading and LCD displaying. | 01/01/70 00:00 | |
| be more specific in your statement of the problem! | 01/01/70 00:00 | |
| is other part(LCD) working? | 01/01/70 00:00 | |
| The LCD actually is working | 01/01/70 00:00 | |
| It worked better than mine | 01/01/70 00:00 | |
| You still have no loop | 01/01/70 00:00 | |
| Nearly perfectly working | 01/01/70 00:00 | |
| what is Your default code? | 01/01/70 00:00 | |
| My actual code | 01/01/70 00:00 | |
| that's not 'code' | 01/01/70 00:00 | |
| Sorry | 01/01/70 00:00 | |
| Is this really all of it? | 01/01/70 00:00 | |
Yeah, it's all of it | 01/01/70 00:00 | |
| thank you for the answer | 01/01/70 00:00 | |
| Compare Jump NOT Equal | 01/01/70 00:00 |



