Quantcast
Channel: EngineerZone: Message List
Viewing all articles
Browse latest Browse all 36216

Re: RS485 on BF518 EZ-Board

$
0
0

Thank you Aaron,

 

When I click on the link in the posting, I also get the "oops,

something went wrong.." message.  If I copy the link from the

posting and paste it into the browser, it works fine.  Strange.

 

I grepped for CONFIG_BFIN_UART1_CTSRTS.  I found it in these

two places:

  ./linux-2.6.x/arch/blackfin/include/asm/bfin_serial.h

  ./linux-2.6.x/arch/blackfin/mach-bf527/boards/cm_bf527.c

 

Each file had one occurence of it.  So it seems that there is no

more code I need to add except the small piece I pasted in the

last posting.  Is that correct?

 

Are these steps sufficient to get this to work?

  1. Choose any two free GPIO pins to use for RTS and CTS.

  2. Paste the code from the last posting into ezbrd.c, but

     use whaterver pins were chosen in step one.

     (For example: .start = GPIO_PF3 etc...)

  3. Ensure that the pins for the UART and those GPIOs are not

     used by any other peripheral.

  4. Run "make menuconfig" and enable the UART and enable the

     switch to use CTS/RTS (I forget what it is called).

  5. Wire the pin set as RTS in step 1 above to the line driver

     enable pin of the RS485 chip.

 

Does that make sense, or am I missing something?

 

Cheers,

Mike


Viewing all articles
Browse latest Browse all 36216

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>