May 21, 2012, 01:46:55 PM
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
International Electronics and Technology Forum
>
Digital Electronics
>
Microcontrollers
>
assembly language code?
Pages: [
1
]
« previous
next »
Print
Author
Topic: assembly language code? (Read 482 times)
gordon
Newbie
Posts: 7
assembly language code?
«
on:
July 16, 2011, 06:37:19 AM »
I need a little help with some assembly language coding...
I have to write a program that
Write a program that upon startup writes a #55H to port 2 of the microcontroller and then #AAH to port 2 after 25 mSec and stops. (Oscillator = 29.4MHz)
If you could please help i would greatly appreciate it
Logged
matt_e
Newbie
Posts: 3
Re: assembly language code?
«
Reply #1 on:
July 16, 2011, 10:04:14 AM »
You could get it down to 55 mSec using 8086 int 8.
cli
push ds
push 0
pop ds
mov ax, word[ds:8h*4], ivt
mov dx, word[ds:8h*4+2]
mov word[intold], ax
mov word[intold+2], dx
mov word[ds:8h*4], ivt
mov word[ds:8h*4+2], cs
pop ds
sti
ivt:
pushf
pusha
mov al, 0x55
out 2, al
mov al, 0xaa
popf
db 0eah
intold dw 0, 0
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Electrotechlab Primer
-----------------------------
=> About Electrotechlab
=> Electronics News
=> Consumer Electronics and Gadgets
=> General Technology
=> Computers and Internet
-----------------------------
Analog and Mixed Signal
-----------------------------
=> Electricity and Analog Electronics
=> Signal Conversion and Signal Processing
=> Industrial Electronics
-----------------------------
Digital Electronics
-----------------------------
=> Combination Logic Circuits
=> Microcontrollers
=> PLD SPLD GAL CPLD FPGA
-----------------------------
Specialization
-----------------------------
=> Wire Communications
=> Wireless Communication
=> Hi Fidelity Audio and Video
=> Mechatronics and Robotics
=> Amateur Ham Radio
-----------------------------
Electrical Electronics Repair
-----------------------------
=> Test Equipment and Instrumentation
=> General Electrical and Electronics Repair
=> Personal Computer and Peripherals
-----------------------------
Resources
-----------------------------
=> Computer Programming
=> PCB Design
=> Datasheets Manuals Ebooks and Links
=> Electronic Projects Design and Ideas
-----------------------------
General Forum
-----------------------------
=> Anything Under The Sun
=> Arts Culture and Lifestyle
=> Sports Games and Entertainment
=> General Science
=> Health and Medicine
Loading...