Page 1 of 1
Unmasking IRQ for Serial
Posted: Wed Jul 21, 2004 10:23 pm
by uuk007
I am new to writing drivers....
While writing serial driver for modem ..i have implemented all the functionalities and ISR also...
But when i am testing it ,control is not going to ISR..
I came to know that i have to unmask ISR...
Currently i am using IRQ3....
Can any one tell me how to do this?
Re:Unmasking IRQ for Serial
Posted: Thu Jul 22, 2004 1:30 am
by Solar
Re:Unmasking IRQ for Serial
Posted: Thu Jul 22, 2004 1:38 am
by ManOfSteel
You send 11110111b (enable the COM2/4 only) to the 0x21 port.
Re:Unmasking IRQ for Serial
Posted: Thu Jul 22, 2004 6:26 pm
by uuk007
Hi all,
Thanks. I will modify the code and let you know if i faced any other problems.
As well as i will read the FAQ also.
Regards
UUK
Re:Unmasking IRQ for Serial
Posted: Fri Jul 23, 2004 1:08 am
by uuk007
Hi,
It is working fine.
I have one more problem while writing.
Now i am trying without interrupt.
So in write method i have read the MCR Value and Or with 0x01.
Then i am reading MSR value.
But i am always getting 0xFF only.
I want to check CTS bit of MSR and send the value.
Whether my way of doing is wrong.
Please let me know how to do this.
Regards
UUK
Re:Unmasking IRQ for Serial
Posted: Fri Jul 23, 2004 2:56 am
by Therx
There is a good guide on serial port programming at:-
www.beyondlogic.org
Pete