Welcome to Tech Support Forum home to more then 136,000 problems solved. Issues have included: Spyware, Malware, Virus Issues, Windows, Microsoft, Linux, Networking, Security, Hardware, and Gaming Getting your problem solved is as easy as:
1. Registering for a free account
2. Asking your question
3. Receiving an answer

Registered members:
* Get free support
* Communicate privately with other members (PM).
* Removal of this message
* See fewer ads.
* And much more..

 



Want to know how to post a question? click here Having problems with spyware and pop-ups? First Steps
Go Back   Tech Support Forum > The IT Pro > Programming
User Name
Password
Site Map Register Donate Rules Blogs Mark Forums Read


Programming A discussion forum for programs and programming used in tech-related businesses.

Reply
 
LinkBack Thread Tools
Old 05-28-2009, 12:14 PM   #1 (permalink)
Registered User
 
Join Date: Apr 2007
Posts: 154
OS: Vista


Assembly Help

I won't lie to you TSF, this is a college assignment but our teacher gave us about 20 minutes work on assembly and now expects us to write to entire programs and the entire class is stumped as what we do. I have been staring at a blank page for ages i don't even know how to start, does anyone here know the answer that could share but also explain to me, i hate being told answers without knowing how they operate.

Questions

1. Supply a flowchart and assembly language listings for a program to read the analogue to digital convertor and send it out to the serial port. See the notes, below, for further information on this task. P8

2. Supply a flowchart and assembly language listings for a program to produce a FAULT signal. See the notes, below, for further information on this task. M3

Those are the questions and below are the notes he added.

Notes.
1. In order to start the analogue to digital convertor on the PIC16F873, set register (0x)1F (hexadecimal) to a value of 5.
2. Wait the appropriate number of clock pulses before reading the digital conversion. Assume that the CPU and convertor are being clocked from the same source.
3. The most significant two bits are in register (0x)9E (hexadecimal) and the least significant eight bits are in (0x)1E (hexadecimal), after the conversion.
4. Send the data to the UART starting with the least significant byte. The UART transmit register is (0x)19 (hexadecimal).
5. The FAULT signal is set by moving a value of 1 to register 06 and cleared by moving a value of 0 (zero) to register 06.


If anyone can help you'd be a life saver.
MrNemesis666 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Important Information
Join the #1 Tech Support Forum Today - It's Totally Free!

TechSupportForum.com is a leading support website for your computer needs. We offer free, friendly and personalized computer support. Why pay to have your computer fixed when you can do it for free.

Join TechSupportforum.com Today - Click Here

Old 05-28-2009, 01:22 PM   #2 (permalink)
Design Team Member
 
jamiemac2005's Avatar
 
Join Date: Jul 2007
Location: Coventry, UK
Posts: 1,853
OS: Vista, various linux distros


Re: Assembly Help

Hey, as the rules state we don't do homework. But we can point you in the right direction of help. My first move would be to go and argue with the teacher/not do it then argue with the teacher/take it higher than the teacher and say you're being undertaught/that too much is being demanded of you.

Failing that, what assembler are you being told to use?

Cheers,
Jamey
__________________

Myspace
jamiemac2005 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 05-28-2009, 03:03 PM   #3 (permalink)
Registered User
 
Join Date: Apr 2007
Posts: 154
OS: Vista


Re: Assembly Help

we're not being told to use any assembler, he is telling us nothing, i have 2 weeks left and that's it, we have been complaining all year but sadly my college just don't give a crap, if i fail this i waste my last 2 years where i have distinction if everything else, i am desperate, could you bend the rules just this once?
MrNemesis666 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 05-28-2009, 03:09 PM   #4 (permalink)
Design Team Member
 
jamiemac2005's Avatar
 
Join Date: Jul 2007
Location: Coventry, UK
Posts: 1,853
OS: Vista, various linux distros


Re: Assembly Help

I can't because i myself can't do this... If he hasn't given you the information i suggest you rant about it until it gets fixed. You won't find many on this forum who have enough experience with ASM to do this. So unless this is just theoretical work it's effort to do.

Cheers,
Jamey
__________________

Myspace
jamiemac2005 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 05-28-2009, 03:10 PM   #5 (permalink)
Registered User
 
Join Date: Apr 2007
Posts: 154
OS: Vista


Re: Assembly Help

with 2 weeks left it won't get fixed we been complaining for months, looks like elderly out dated teacher has sealed my future packing bags at asda.

Thanks anyway
MrNemesis666 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 05-29-2009, 10:36 PM   #6 (permalink)
Manager
 
shuuhen's Avatar
 
Join Date: Sep 2004
Location: Colorado
Posts: 980
OS: Mac OS 9.1, Mac OS X 10.5.8, WinXP Pro, FreeBSD 6.0, Gentoo Linux

My System

Re: Assembly Help

Too bad it's not for an HCS12 or AVR. I could answer questions on those easier. We cannot bend the rules (ie. do your work for you), but we can answer specific questions you have.

Do you have a textbook? My university's library has a fairly good selection of books, so you might check for a book on the PIC16 microcontrollers. Any microcontroller book that goes over assembly could give you an idea of what to do, but you'd probably run into syntax issues and differences in mnemonics, registers, and so forth. A PIC book would be best, but I think AVR's might be the easiest to compare with. A book similar to this one would probably help: http://www.amazon.com/exec/obidos/AS...nnorswebguidec

I know there are others, but I mainly use the HCS12 and AVR microcontrollers for classes and projects.

Definitely get the datasheet for your specific chip. It will have information on timers, PWM channels, the USART(s) and some information about the instruction set (so you can get the mnemonics right). The datasheet may have enough information for you to at least do the flowchart and an attempt at the code.
__________________


Has it been a few days since I replied to your thread? Don't panic! I'm a busy college student and may forget a post if I'm extra busy (or it might just take me a while to be able to do a decent reply). If you still need help and are awaiting my reply after a few days, PM me about it.

When posting what errors you get, please give the full message. It makes helping you much easier.
shuuhen is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 05-30-2009, 06:21 AM   #7 (permalink)
Registered User
 
Join Date: Apr 2007
Posts: 154
OS: Vista


Re: Assembly Help

CLRW
CLRF 1F
ADDLW 5
MOVWF 1F
NOP

thats what i got so far, my teacher said

i still need to do the following read reg1E(whats the read command)
write reg1f again(i dunno y)
read 9e(again why and whats the read command)
then write 1f again why.
MrNemesis666 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -7. The time now is 12:48 AM.



Copyright 2001 - 2009, Tech Support Forum
Home Tips Plus | Outdoor Basecamp | Automotive Support Forum

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85