View Single Post
Old Feb 1st, 2008, 2:37 PM   #1
james1212
Newbie
 
Join Date: Feb 2008
Posts: 3
Rep Power: 0 james1212 is on a distinguished road
assembly help, please

I have to write a program that will produce two signals, at pins RAo and RA1. I have only just started using this language and have no clue.

I have started the program already and I need some help please.
This is it so far.

; waveforms.asm
title "waveforms.asm"
list p=18f452, f=inhx32
#include <p18f452.inc>

PORTA equ 0x01

start

loop
movlw b'0000 0001'
movwf PORTA

call delay100

movlw b'0000 0010'
movwf PORTA

call delay200

movlw b'0000 0000'
movwf PORTA

call delay600

movlw b'0000 0010'
movwf PORTA

call delay250

movlw b'0000 0000'
movwf PORTA

call delay600

movlw b'0000 0010'
movwf PORTA

call delay300

goto loop

end

I need to get this program to run this loop over. I know this must be a very simple program but I am studying mech eng not programming, but I want to learn this as well. I am curious why. Thanks for your help
james1212 is offline   Reply With Quote