Ahmad husni
Published

Bus information system

Help for bus stop and bus seat

16
Bus information system

Things used in this project

Hardware components

;lcd 16x2 @1
×1

Story

Read more

Schematics

bus stop/halte info reciver

1

schema pic1

bus_Kjmq7DMhAV.asm

Code

Code

Apache Conf
Assembly
;code is uploaded in upload schema

code1

Assembly x86
;.include 'm128.inc'
.include "m128def.inc"

call init_uart

ldi ZH, high(atSQNSLUDP<<1)              ; Initialize Z pointer
ldi ZL, low(atSQNSLUDP<<1)
lpm r16, Z                                   ; Load constant from program
call uart_puts
call init_lcd

waitrecv:
ldi ZH, high(atRECV<<1)              ; Initialize Z pointer
ldi ZL, low(atRECV<<1)
call uart_puts

waitresprecv:
call usart_getc
cpi	r24, '+'
brne waitresprecv

;wait '\n'
waitresprecv2:

call usart_getc
cpi	r24, '\n'
brne waitresprecv2

Credits

Ahmad husni

Ahmad husni

15 projects • 1 follower

Comments