Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How to use PIC controller to control the 184 input signal to PC interfacing?

Status
Not open for further replies.

Help

Advanced Member level 2
Joined
Feb 15, 2005
Messages
617
Helped
7
Reputation
14
Reaction score
3
Trophy points
1,298
Activity points
7,065
Hai....

Can you help me answer the PIC uconrtoller in C program??

i have 23 Buffer (74HC244) and 2 of CD4514 16-non-inverting decoders, how to use PIC controller to control the 184 input signal to PC interfacing??

Thy...
 

atmega max7301

Can you post your schematics for us to asses your problem, by the way what PIC microcontroller are you planning to use??? ;)
 

max7301 bus

Lepidoptera_ece said:
Can you post your schematics for us to asses your problem, by the way what PIC microcontroller are you planning to use??? ;)


16f84 or 16f877 using C to program it, do you know how to write the program??
 

Re: I/O Interfacing

Hi,

Yes you can do what you wrote, or you can use Port Expanders like the:
MAX7301 28 ports with SPI interface.
MAX7310 8 ports with I2C interface.
MAX7311 16 ports with I2C interface.

Thet are better because you can get an interupt from them and only then read the IC. And also all off them can be connected togather to them data bus.
With your desigen you will have to scan all the ports over and over.

Good luck.
 

    Help

    Points: 2
    Helpful Answer Positive Rating
Re: I/O Interfacing

Look on AN234 from microchip ;-)

Regards,

Manu
 

Re: I/O Interfacing

gidimiz said:
Hi,

Yes you can do what you wrote, or you can use Port Expanders like the:
MAX7301 28 ports with SPI interface.
MAX7310 8 ports with I2C interface.
MAX7311 16 ports with I2C interface.

i agree,. plus youll have lesser wires or connections which lessens your hardware debugging problems.....
 

Re: I/O Interfacing

Lepidoptera_ece said:
gidimiz said:
Hi,

Yes you can do what you wrote, or you can use Port Expanders like the:
MAX7301 28 ports with SPI interface.
MAX7310 8 ports with I2C interface.
MAX7311 16 ports with I2C interface.

i agree,. plus youll have lesser wires or connections which lessens your hardware debugging problems.....

Hai.....

MAX7311 izit microcontroller, need compiler, need programmeble ??

Thy....

Added after 10 minutes:

gidimiz said:
Hi,

Yes you can do what you wrote, or you can use Port Expanders like the:
MAX7301 28 ports with SPI interface.
MAX7310 8 ports with I2C interface.
MAX7311 16 ports with I2C interface.

Thet are better because you can get an interupt from them and only then read the IC. And also all off them can be connected togather to them data bus.
With your desigen you will have to scan all the ports over and over.

Good luck.

Hai......

Do you know more about this?? Can you give more knowledge about I2C, i head I2c before but to write the program is very difficult izit... Can you teach me how to write the program in C step by step, how to start interface with simple data first??

Thy....
 

Re: I/O Interfacing

Hi,

go to this web site link for I2C information:
http://www.microchipc.com/sourcecode/#i2c

The full specification for the I2C bus:
**broken link removed**

It will give you the examples that you need.
Also, i have included the ssample file that comes with the hi-t*ch compiler. I dont know if you can find it on the web, so here it is.

Good luck.
 

    Help

    Points: 2
    Helpful Answer Positive Rating
Re: I/O Interfacing

gidimiz said:
Hi,

go to this web site link for I2C information:
http://www.microchipc.com/sourcecode/#i2c

The full specification for the I2C bus:
**broken link removed**

It will give you the examples that you need.
Also, i have included the ssample file that comes with the hi-t*ch compiler. I dont know if you can find it on the web, so here it is.

Good luck.


Hai....

Do you have any mail, msn, icq,.... therefor i can contect you easy when i face the problem... I hope that you can help me....

Thy....
 
Last edited by a moderator:

Re: I/O Interfacing

Hi,

Please post your email or MSN and i will get intouch with you.
I do prefer to do that over the EDABoard so other people will also learn the problems that you had and how you overcome them. I have learned that people make the same mistakes and this board was built to share their experiance.
I do have the knolage to help you, just because i had the same problemes as you did and i hade to read all the files that i posted for you.
If you will read them you will see that you will incounter more probles but you will know how to over comethem with your understanding of the protocol.

After this short lecture, I will be more then happy to help, post your MSN here or your email and i will get intouch with you.

Good luck.
 

    Help

    Points: 2
    Helpful Answer Positive Rating
I/O Interfacing

Are there any other chips for spi expansion with interrupt capability ?
 

Re: I/O Interfacing

Hi,

I2C:
Philips - PCA9534
and PCF8574

There are a lot on the market. I used the MAX so i know about them. I did a search on google for " i/o expanders ic spi" and i found lots of links.

If you will have a list, please post it here.
 

    Help

    Points: 2
    Helpful Answer Positive Rating
Re: I/O Interfacing

gidimiz said:
Hi,

I2C:
Philips - PCA9534
and PCF8574

There are a lot on the market. I used the MAX so i know about them. I did a search on google for " i/o expanders ic spi" and i found lots of links.

If you will have a list, please post it here.

It looks that those are for I2C not SPI and no interrupt capability . I need about 64 ports on my atmega 128 using SPI and with interrupt capability as input signals are very short and Ucos time slice (10 msec) does not allow short time scanning and will consume a lot of cpu time .
For noninterrupt based SPI IO 74hc165 and 74hc595 will be enough and cheaper than max .

Looks MCP23008 is what i need .
 

Re: I/O Interfacing

I was partially incorrect regarding maxim chips . 7301 provides 20 to 28 gpio ports but implement interrupts only on 8 ports . No interrupt flag register for individual port
is available .
 

Re: I/O Interfacing

gidimiz said:
Hi,

Please post your email or MSN and i will get intouch with you.
I do prefer to do that over the EDABoard so other people will also learn the problems that you had and how you overcome them. I have learned that people make the same mistakes and this board was built to share their experiance.
I do have the knolage to help you, just because i had the same problemes as you did and i hade to read all the files that i posted for you.
If you will read them you will see that you will incounter more probles but you will know how to over comethem with your understanding of the protocol.

After this short lecture, I will be more then happy to help, post your MSN here or your email and i will get intouch with you.

Good luck.


Hai gidimiz..

So long to reply to you very sorry because i hade something to do.
Tq for your help. My MSN is tangbc8013@hotmail.com, tangbc05@yahoo.com

Thank
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top