![]() |
![]() |
![]() |
|||||
![]() |
![]() |
![]() |
![]() |
![]() |
|||
| 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: * 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 |
|
|||||||
| Programming A discussion forum for programs and programming used in tech-related businesses. |
![]() |
|
|
LinkBack | Thread Tools |
|
|
#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. |
|
|
|
| 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 |
|
|
#2 (permalink) |
|
Design Team Member
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 |
|
|
|
|
|
#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?
|
|
|
|
|
|
#4 (permalink) |
|
Design Team Member
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 |
|
|
|
|
|
#6 (permalink) |
|
Manager
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
|
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. |
|
|
|
|
|
#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. |
|
|
|
![]() |
| Thread Tools | |
|
|