Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Forums > General Electronics Chat


General Electronics Chat This forum is for general chat about electronics, eg: Dont know what a part does? Dont know how to read a circuit? Want to get an opinion?

Reply
 
Tools
Old 2nd March 2009, 03:46 PM   #1
Default Help with assembly language program

So i'm doing a technical thesis project which controls dampers of a HVAC unit according to the amount of people inside a building.. I have a circuit designed that will increment when a person enters a building and decrement when someone leaves. This is where my trouble is. These voltages go into a comparator and latch circuit which outputs a number to an 8255 PPI Interface card. The program should then output in order to move a motor on one way or the other to open or close a damper. I have very little skills in assembly language programming and just know the bare basics. Any help on this program would be greatly appretiated. This is what I have so far..

A100
MOV AL,90
MOV DX,303
OUT DX,AL
NexusVoid is offline  
Old 2nd March 2009, 05:15 PM   #2
Default

Hi you need to atleast give a rough diagram showing the lines(address,data and the signals) of the PPI and the up that way one could help. Which up are you using anyways?Also the OUT instruction is a 2 byte instruction while you seem to have used 3 bytes!

Also first you need to initialize the device for e.g port setting interrrupt enable/disable....

Last edited by Wond3rboy; 2nd March 2009 at 05:17 PM.
Wond3rboy is offline  
Old 2nd March 2009, 07:08 PM   #3
Default

Little change in plans. I think I may now actually use a PIC instead of the 8255 PPI because the PIC can accept an analog input which makes life a lil easier for me. Although the same problem persists with the programming. Not exactly sure how or where to start with the code.
NexusVoid is offline  
Old 6th March 2009, 07:44 AM   #4
Default

Which PIC are you talking about? the 8259a? or using PIc microcontrollers and changing everything altogather? Also PIC and PPI are two different things. One is a parallel data transfer device and the other is an interrupt controller.
Wond3rboy is offline  
Reply

Tags
assembly, language, program

Thread Tools
Display Modes


Similar
Title Starter Forum Replies Latest
Assembly Language to C programming language? westkid85 General Electronics Chat 23 28th August 2008 08:30 PM
assembly and c language baftab Electronic Projects Design/Ideas/Reviews 4 15th April 2006 02:03 AM
Assembly Language eeyouth Electronic Projects Design/Ideas/Reviews 6 4th May 2005 02:42 AM
Assembly Language - My program keeps on restarting avinsinanan Micro Controllers 3 15th April 2005 05:23 AM
Please tell me about Assembly Language... Quark General Electronics Chat 2 5th September 2003 12:07 PM



All times are GMT. The time now is 08:00 PM.


Electronic Circuits  |  Learning Electronics
eXTReMe Tracker