| ??? 05/01/08 17:27 Read: times |
#154267 - Oops Responding to: ???'s previous message |
;************** ISR For Timer 0 ******************
TIMER0:
clr TR0 ;DISABLE TIMER 0
mov TH0,#3Ch ;RESET OF TIMER AFTER TICK
mov TL0,#10101111B ;RESET OF TIMER AFTER TICK
SETB TR0 ;ENABLE TIMER 0
jmp TASK_SCHEDULER ;CALL TASK SCHEDULER <--- why is this needed
;************** Task Scheduler ******************
TASK_SCHEDULER:
LED_TICK:
DJNZ LEDTICK,LCD_TICK ;CHECK LEDTICK IF NOT ZERO MOVE TO LCD_TICK
CPL LED ;CHANGE LED STATE
MOV LEDTICK,#10d ;RELOAD LEDTICK
LCD_TICK:
DJNZ LCDTICK, RETURN ;CHECK LCDTICK IF NOT ZERO MOVE TO RETURN
CALL TEST ;CALL LCD TEST WRITE
MOV LCDTICK,#2d ;RELOAD LCDTICK
RETURN: RETI
;************** Welcome Message ******************
TEST:
ORG 0200h
db 'BRUCE RULES'
MOV MCOUNT,#0Bh
MOV DPTR,#0200h
LCALL WRITE_LCD
RETI <--- Only need RET here
<pre> |
| Topic | Author | Date |
| Damaged LCD? | 01/01/70 00:00 | |
| Some code comments first. | 01/01/70 00:00 | |
| Thanks... | 01/01/70 00:00 | |
| Well if you need it later... | 01/01/70 00:00 | |
| Hmmpf. | 01/01/70 00:00 | |
| Multiple Problems | 01/01/70 00:00 | |
| My Bad!!! | 01/01/70 00:00 | |
| :) some improvement | 01/01/70 00:00 | |
| try to initialise at startup | 01/01/70 00:00 | |
| Wahey...... O not quite | 01/01/70 00:00 | |
| Hex value | 01/01/70 00:00 | |
| Check your soldering. | 01/01/70 00:00 | |
| Oops | 01/01/70 00:00 | |
| Wahey..... o not AGain | 01/01/70 00:00 | |
| Leading 0 | 01/01/70 00:00 | |
| Leading zero | 01/01/70 00:00 | |
| Some help | 01/01/70 00:00 | |
| Cheers guys, all working now | 01/01/70 00:00 | |
Why You Were Content Dependant | 01/01/70 00:00 | |
| The filled in blocks indicate.. | 01/01/70 00:00 | |
| No hardware but software problem | 01/01/70 00:00 |



