Unmasking IRQ for Serial

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
uuk007

Unmasking IRQ for Serial

Post 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?
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Re:Unmasking IRQ for Serial

Post by Solar »

Have you read the FAQ?
Every good solution is obvious once you've found it.
ManOfSteel

Re:Unmasking IRQ for Serial

Post by ManOfSteel »

You send 11110111b (enable the COM2/4 only) to the 0x21 port.
uuk007

Re:Unmasking IRQ for Serial

Post 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
uuk007

Re:Unmasking IRQ for Serial

Post 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
Therx

Re:Unmasking IRQ for Serial

Post by Therx »

There is a good guide on serial port programming at:-

www.beyondlogic.org

Pete
Post Reply