Author Topic: MAX487EPA+'s interface to Pic18 Microcontroller  (Read 1330 times)

0 Members and 1 Guest are viewing this topic.

Offline muthukural001Topic starter

  • Regular Contributor
  • *
  • Posts: 211
  • Country: in
MAX487EPA+'s interface to Pic18 Microcontroller
« on: May 05, 2017, 11:02:03 am »
Hello all,
I want to use MAX487EPA+ as RS-485 Transceiver to send data to PC. I wonder that how to interface it to PIC18 Micro-controller. I don't see any of SPI,UART and I2C in MAX487EPA+ IC. Anyone crossed across this issue?



Thanks,
Muthu
 

Offline igendel

  • Frequent Contributor
  • **
  • Posts: 359
  • Country: il
    • It's Every Bit For Itself (Programming & MCU blog)
Re: MAX487EPA+'s interface to Pic18 Microcontroller
« Reply #1 on: May 05, 2017, 11:06:17 am »
RS485 ICs usually have "DI" (Data In) and "DO" or "RO" (Data/Receiver Out) pins, which you can connect to your PIC's TX and RX pins respectively. Pay attention to voltages in the ICs, and to the Enable pins that determine the direction of data transfer.
Maker projects, tutorials etc. on my Youtube channel: https://www.youtube.com/user/idogendel/
 

Offline muthukural001Topic starter

  • Regular Contributor
  • *
  • Posts: 211
  • Country: in
Re: MAX487EPA+'s interface to Pic18 Microcontroller
« Reply #2 on: May 05, 2017, 11:40:43 am »
Thanks. PIC18F4620 has single UART. I have already used that UART for serial communication. Results in no UART interface for MAX487EPA+. So, How should I approach further?

Taking Micro-controller with multiple UART is the solution?




Thanks,
Muthu
 

Offline igendel

  • Frequent Contributor
  • **
  • Posts: 359
  • Country: il
    • It's Every Bit For Itself (Programming & MCU blog)
Re: MAX487EPA+'s interface to Pic18 Microcontroller
« Reply #3 on: May 05, 2017, 12:00:13 pm »
Thanks. PIC18F4620 has single UART. I have already used that UART for serial communication. Results in no UART interface for MAX487EPA+. So, How should I approach further?

Simplest answer is yes - if you can move to an MCU with more UARTs, you should do it.

However, if you define your system requirements very carefully, sometimes you can find other ways. For example, you can send data from TX to two devices at once, if you can "teach" each one to ignore messages intended for the other; if the devices never have to communicate at the same time, you can use a multiplexer to choose where to direct your signals... etc.
Maker projects, tutorials etc. on my Youtube channel: https://www.youtube.com/user/idogendel/
 

Online BrianHG

  • Super Contributor
  • ***
  • Posts: 7789
  • Country: ca
Re: MAX487EPA+'s interface to Pic18 Microcontroller
« Reply #4 on: May 05, 2017, 03:36:37 pm »
There is always a software UART, interupt trigger on your RX input pin + timer, but, unless you have done this before and know what you are in for, just get a PIC with multiple UARTs.  Also, if you only need to use 1 com at a time, you can always use the UART alternate pins as a second set, but you will need to manually switch back and forth making sure the TX pins stay high on the swap.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf