2 Replies - 954 Views - Last Post: 04 February 2008 - 06:01 AM Rate Topic: -----

#1 jrt6  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 16
  • Joined: 14-February 07

assembly language

Post icon  Posted 01 February 2008 - 01:02 PM

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

MOD EDIT: Use CODE Tags to enclose your code like this:
:code:

Is This A Good Question/Topic? 0
  • +

Replies To: assembly language

#2 born2c0de  Icon User is offline

  • printf("I'm a %XR",195936478);
  • member icon

Reputation: 180
  • View blog
  • Posts: 4,667
  • Joined: 26-November 04

Re: assembly language

Posted 01 February 2008 - 11:03 PM

What is your target processor or microcontroller?
Which assembler are you using?
Was This Post Helpful? 0
  • +
  • -

#3 jrt6  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 16
  • Joined: 14-February 07

Re: assembly language

Posted 04 February 2008 - 06:01 AM

A copy of the task is provided on the attachment, I am using the PIC18F452.

Attached File(s)


Was This Post Helpful? 0
  • +
  • -

Page 1 of 1