EK-RA6M2 Evaluation kit4

Pocket

よく使用するSCIのUARTを確認します。

”sci_uart_ek_ra6m2_ep”サンプルを使ってみます。サンプルソフトは、SCI0を使用してます。SCI0もJ2からコネクタから引き出せますが、この基板には、PMODコネクタがあります。せっかくPMODコネクタが出ているのでPMOD Bコネクタを使用します。PMOD Bコネクタは、SCI7なので、変更が必要である。

RA Configrationを開いてg_uart UART Driver on r_sci_uartを編集します。Channelを0から7に変更するだけです。変更後、コードを生成し、ビルドします。

1-100までの数値を読み込むという単純なサンプルプログラムですが、PMODコネクタでUART通信が実現できました。

Check the SCI UART you use often.
Let’s use the “sci_uart_ek_ra6m2_ep” sample. The sample software uses SCI0. The SCI0 can also be pulled out of the connector from J2, but this board has a PMOD connector. Use the PMOD B connector because the PMOD connector is out. The PMOD B connector is SCI7, so it needs to be modified.
Open RA Configration and edit g_uart UART Driver on r_sci_uart. Just change the Channel from 0 to 7. After making the changes, generate the code and build.
Although it is a simple sample program that reads the values from 1 to 100, UART communication was realized with the PMOD connector.

檢查您經常使用的SCI UART。
讓我們使用“ sci_uart_ek_ra6m2_ep”示例。 該示例軟件使用SCI0。 也可以從J2將SCI0拔出連接器,但是該板具有PMOD連接器。 使用PMOD B連接器,因為PMOD連接器不可用。 PMOD B連接器是SCI7,因此需要對其進行修改。
打開RA配置並在r_sci_uart上編輯g_uart UART驅動程序。 只需將Channel從0更改為7。 進行更改後,生成代碼並進行構建。
儘管這是一個簡單的示例程序,可讀取從1到100的值,但使用PMOD連接器實現了UART通信。

Post Tagged with , , ,

コメントを残す

メールアドレスが公開されることはありません。 * が付いている欄は必須項目です

このサイトはスパムを低減するために Akismet を使っています。コメントデータの処理方法の詳細はこちらをご覧ください