Welcome to Dream.In.Code
Getting Help is Easy!

Join 136,491 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,703 people online right now. Registration is fast and FREE... Join Now!




assembly language

 
Reply to this topicStart new topic

assembly language

jrt6
1 Feb, 2008 - 12:02 PM
Post #1

New D.I.C Head
*

Joined: 14 Feb, 2007
Posts: 16


My Contributions
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.

CODE
; 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.gif
User is offlineProfile CardPM
+Quote Post

born2c0de
RE: Assembly Language
1 Feb, 2008 - 10:03 PM
Post #2

printf("I'm a %XR",195936478);
Group Icon

Joined: 26 Nov, 2004
Posts: 3,906



Thanked: 34 times
Dream Kudos: 2800
Expert In: 80x86 Assembly, C/C++, VB6, VB.NET, C#, J2SE, Win32 API, Reversing

My Contributions
What is your target processor or microcontroller?
Which assembler are you using?
User is offlineProfile CardPM
+Quote Post

jrt6
RE: Assembly Language
4 Feb, 2008 - 05:01 AM
Post #3

New D.I.C Head
*

Joined: 14 Feb, 2007
Posts: 16


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


Attached File(s)
Attached File  assembly.doc ( 77k ) Number of downloads: 48
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/2/08 07:38PM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month