資料介紹

Table of Contents
AD5160 - No-OS Driver for Renesas Microcontroller Platforms
Supported Devices
Evaluation Boards
Overview
The AD5160 provides a compact 2.9 mm × 3 mm packaged solution for 256-position adjustment applications. These devices perform the same electronic adjustment function as mechanical potentiometers or variable resistors but with enhanced resolution, solid-state reliability, and superior low temperature coefficient performance.
The wiper settings are controllable through an SPI-compatible digital interface. The resistance between the wiper and either end point of the fixed resistor varies linearly with respect to the digital code transferred into the RDAC latch.
Operating from a 2.7 V to 5.5 V power supply and consuming less than 5 μA allows for usage in portable battery-operated applications.
The goal of this project (Microcontroller No-OS) is to be able to provide reference projects for lower end processors, which can't run Linux, or aren't running a specific operating system, to help those customers using microcontrollers with ADI parts. Here you can find a generic driver which can be used as a base for any microcontroller platform and also specific drivers for different microcontroller platforms.
Driver Description
The driver contains two parts:
- The driver for the AD5160 part, which may be used, without modifications, with any microcontroller.
- The Communication Driver, where the specific communication functions for the desired type of processor and communication protocol have to be implemented. This driver implements the communication with the device and hides the actual details of the communication protocol to the ADI driver.
The Communication Driver has a standard interface, so the AD5160 driver can be used exactly as it is provided.
There are three functions which are called by the AD5160 driver:
- SPI_Init() – initializes the communication peripheral.
- SPI_Write() – writes data to the device.
- SPI_Read() – reads data from the device.
SPI driver architecture
The following functions are implemented in this version of AD5160 driver:
Function | Description |
---|---|
char AD5160_Init(void) | Initializes the SPI communication peripheral. |
void AD5160_Set(unsigned char value) | Writes data to AD5160. |
Downloads
- PmodDPOT Demo for RL78G14: https://github.com/analogdevicesinc/no-OS/tree/master/Renesas/RL78G14/PmodDPOT
- RL78G14 Common Drivers: https://github.com/analogdevicesinc/no-OS/tree/master/Renesas/RL78G14/Common
Renesas RL78G13 Quick Start Guide
This section contains a description of the steps required to run the AD5160 demonstration project on a Renesas RL78G13 platform.
Required Hardware
Required Software
Hardware Setup
A PmodDPOT has to be connected to the PMOD1 connector, pins 1 to 6 (see image below).
Reference Project Overview
The reference project:
- sends to the PmodDPOT an 8 bit value every 2 seconds;
- the sent value and the resistance are displayed on the LCD.
Software Project Tutorial
This section presents the steps for developing a software application that will run on the Renesas Demo Kit for RL78G13 for controlling and monitoring the operation of the ADI part.
- Run the IAR Embedded Workbench for Renesas RL78 integrated development environment.
- Choose to create a new project (Project – Create New Project).
- Select the RL78 tool chain, the Empty project template and click OK.
- Select a location and a name for the project (ADIEvalBoard for example) and click Save.
- Open the project’s options window (Project – Options).
- From the Target tab of the General Options category select the RL78 – R5F100LE device.
- From the Setup tab of the Debugger category select the TK driver and click OK.
- Extract the files from the lab .zip archive and copy them into the project’s folder.
- The new source files have to be included into the project. Open the Add Files… window (Project – Add Files…), select all the copied files and click open.
- At this moment, all the files are included into the project.
- The project is ready to be compiled and downloaded on the board. Press the F7 key to compile it. Press CTRL + D to download and debug the project.
- A window will appear asking to configure the emulator. Keep the default settings and press OK.
- To run the project press F5.
Renesas RL78G14 Quick Start Guide
This section contains a description of the steps required to run the AD5160 demonstration project on a Renesas RL78G14 platform using the PmodDPOT.
Required Hardware
Required Software
- The AD5160 demonstration project for the Renesas RL78G14 platform.
The AD5160 demonstration project for the Renesas RL78G14 platform consists of three parts: the AD5160 Driver, the PmodDPOT Demo for RL78G14 and the RL78G14 Common Drivers.
All three parts have to be downloaded.
Hardware Setup
Reference Project Overview
The reference project:
- sends to the PmodDPOT an 8 bit value every 2 seconds;
- the sent value and the resistance are displayed on the LCD.
Software Project Tutorial
This section presents the steps for developing a software application that will run on the Renesas Demo Kit for RL78G14 for controlling and monitoring the operation of the ADI part.
- Run the IAR Embedded Workbench for Renesas RL78 integrated development environment.
- Choose to create a new project (Project – Create New Project).
- Select the RL78 tool chain, the Empty project template and click OK.
- Select a location and a name for the project (ADIEvalBoard for example) and click Save.
- Open the project’s options window (Project – Options).
- From the Target tab of the General Options category select the RL78 – R5F104PJ device.
- From the Setup tab of the Debugger category select the TK driver and click OK.
- Copy the downloaded files into the project's folder.
- The new source files have to be included into the project. Open the Add Files… window (Project – Add Files…), select all the copied files and click open.
- At this moment, all the files are included into the project.
- The project is ready to be compiled and downloaded on the board. Press the F7 key to compile it. Press CTRL + D to download and debug the project.
- A window will appear asking to configure the emulator. Keep the default settings and press OK.
- To run the project press F5.
Renesas RX62N Quick Start Guide
This section contains a description of the steps required to run the AD5160 demonstration project on a Renesas RX62N platform.
Required Hardware
- PmodDPOT
Required Software
Hardware Setup
A PmodDPOT has to be interfaced with the Renesas Demonstration Kit (RDK) for RX62N:
PmodDPOT Pin 1 (CS) → YRDKRX62N J8 connector Pin 15 PmodDPOT Pin 2 (MOSI) → YRDKRX62N J8 connector Pin 19 PmodDPOT Pin 4 (CLK) → YRDKRX62N J8 connector Pin 20 PmodDPOT Pin 5 (GND) → YRDKRX62N J8 connector Pin 4 PmodDPOT Pin 6 (VCC) → YRDKRX62N J8 connector Pin 3
Reference Project Overview
The reference project sends to the PmodDPOT an 8 bit value every 2 seconds. The sent value and the resistance are displayed on the LCD.
Software Project Setup
This section presents the steps for developing a software application that will run on the Renesas Demo Kit for RX62N for controlling and monitoring the operation of the ADI part.
- Run the High-performance Embedded Workshop integrated development environment.
- A window will appear asking to create or open project workspace. Choose “Create a new project workspace” option and press OK.
- From “Project Types” option select “Application”, name the Workspace and the Project “ADIEvalBoard”, select the “RX” CPU family and “Renesas RX Standard” tool chain. Press OK.
- A few windows will appear asking to configure the project:
- In the “Select Target CPU” window, select “RX600” CPU series, “RX62N” CPU Type and press Next.
- In the “Option Setting” windows keep default settings and press Next.
- In the “Setting the Content of Files to be generated” window select “None” for the “Generate main() Function” option and press Next.
- In the “Setting the Standard Library” window press “Disable all” and then Next.
- In the “Setting the Stack Area” window check the “Use User Stack” option and press Next.
- In the “Setting the Vector” window keep default settings and press Next.
- In the “Setting the Target System for Debugging” window choose “RX600 Segger J-Link” target and press Next.
- In the “Setting the Debugger Options” and “Changing the Files Name to be created” windows keep default settings, press Next and Finish.
- The workspace is created.
- The RPDL (Renesas Peripheral Driver Library) has to integrated in the project. Unzip the RPDL files (double-click on the file “RPDL_RX62N.exe”). Navigate to where the RPDL files were unpacked and double-click on the “Copy_RPDL_RX62N.bat” to start the copy process. Choose the LQFP package, type the full path where the project was created and after the files were copied, press any key to close the window.
- The new source files have to be included in the project. Use the key sequence Alt, P, A to open the “Add files to project ‘ADIEvalBoard’” window. Double click on the RPDL folder. From the “Files of type” drop-down list, select “C source file (*.C)”. Select all of the files and press Add.
- To avoid conflicts with standard project files remove the files “intprg.c” and “vecttbl.c” which are included in the project. Use the key sequence Alt, P, R to open the “Remove Project Files” window. Select the files, click on Remove and press OK.
- Next the new directory has to be included in the project. Use the key sequence Alt, B, R to open the “RX Standard Toolchain” window. Select the C/C++ tab, select “Show entries for: Include file directories” and press Add. Select “Relative to: Project directory”, type “RPDL” as sub-directory and press OK.
- The library file path has to be added in the project. Select the Link/Library tab, select “Show entries for: Library files” and press Add. Select “Relative to: Project directory”, type “RPDL/RX62N_library” as file path and press OK.
- Because the “intprg.c” file was removed the “PIntPrg” specified in option “start” has to be removed. Change “Category” to “Section”. Press “Edit”, select “PIntPRG” and press “Remove”. From this window the address of each section can be also modified. After all the changes are made press OK two times.
- At this point the files extracted from the zip file located in the “Software Tools” section have to be added into the project. Copy all the files from the archive into the project folder.
- Now, the files have to be included in the project. Use the key sequence Alt, P, A to open the “Add files to project ‘ADIEvalBoard’” window. Navigate into ADI folder. From the “Files of type” drop-down list, select “Project Files”. Select all the copied files and press Add.
- Now, the project is ready to be built. Press F7. The message after the Build Process is finished has to be “0 Errors, 0 Warnings”. To run the program on the board, you have to download the firmware into the microprocessor’s memory.
More information
- Example questions:
- An error occurred while fetching this feed: http://ez.analog.com/community/feeds/allcontent/atom?community=2077
声明:本文内容及配图由入驻作者撰写或者入驻合作网站授权转载。文章观点仅代表作者本人,不代表电子发烧友网立场。文章及其配图仅供工程师学习之用,如有内容侵权或者其他违规问题,请联系本站处理。 举报投诉
- AD5160-适用于微芯片微控制器平台的无操作系统驱动程序16次下载
- AD7193-适用于瑞萨微控制器平台的无操作系统驱动程序13次下载
- AD5541A-适用于瑞萨微控制器平台的无操作系统驱动程序6次下载
- AD7091R-用于瑞萨微控制器平台的无操作系统驱动程序12次下载
- AD74xx-用于瑞萨微控制器平台的无操作系统驱动程序1次下载
- AD5933-瑞萨微控制器平台的无操作系统驱动程序10次下载
- AD7303-用于瑞萨微控制器平台的无操作系统驱动程序3次下载
- ADXL345-用于瑞萨微控制器平台的无操作系统驱动程序7次下载
- AD7780-用于瑞萨微控制器平台的无操作系统驱动程序2次下载
- AD5781-适用于瑞萨微控制器平台的无操作系统驱动程序9次下载
- ADF7023-用于瑞萨微控制器平台的无操作系统驱动程序14次下载
- ADP5589-用于瑞萨微控制器平台的无操作系统驱动程序3次下载
- AD799x-用于瑞萨微控制器平台的无操作系统驱动程序10次下载
- ADT7420-用于瑞萨微控制器平台的无操作系统驱动程序1次下载
- AD7156-适用于瑞萨微控制器平台的无操作系统驱动程序4次下载
- HDRZ-A1变压器绕组变形测试仪PC通讯方法323次阅读
- 瑞萨CTSU程序在向嵌入式OS操作系统移植时的注意事项519次阅读
- 深度解析全球操作系统格局1589次阅读
- 实时时钟为微控制器系统增加了精确的计时功能1538次阅读
- 了解和使用无操作系统和平台驱动程序1478次阅读
- 基于具有USB功能的STM32微控制器3958次阅读
- 基于一种适用于模拟脉宽调制PWM可调光的LED驱动器NCL2801解析5858次阅读
- 嵌入式Linux内核的驱动程序开发是怎样的1616次阅读
- 适用于测控领域的4种实时操作系统对比分析3884次阅读
- 浅谈电脑驱动程序的工作原理 详解电脑驱动程序意义30850次阅读
- 基于嵌入式Linux内核的系统设备驱动程序开发设计1286次阅读
- 基于Linux2.6.30开发DS18B20的驱动程序的类型和文件操作接口函数详解1602次阅读
- 基于STM32的数字PDA系统软件系统设计1662次阅读
- 基于STM32ZET6控制器的数字PDA系统的设计1647次阅读
- Silicon Labs 32 位微控制器的 10 大技术特点1493次阅读
下載排行
本周
- 1AN-1267: 使用ADSP-CM408F ADC控制器的電機控制反饋采樣時序
- 1.41MB | 3次下載 | 免費
- 2AN158 GD32VW553 Wi-Fi開發指南
- 1.51MB | 2次下載 | 免費
- 3AN148 GD32VW553射頻硬件開發指南
- 2.07MB | 1次下載 | 免費
- 4AN-1154: 采用恒定負滲漏電流優化ADF4157和ADF4158 PLL的相位噪聲和雜散性能
- 199.28KB | 次下載 | 免費
- 5AN-960: RS-485/RS-422電路實施指南
- 380.8KB | 次下載 | 免費
- 6EE-249:使用VisualDSP在ADSP-218x DSP上實現軟件疊加
- 60.02KB | 次下載 | 免費
- 7AN-1111: 使用ADuCM360/ADuCM361時的降低功耗選項
- 306.09KB | 次下載 | 免費
- 8AN-904: ADuC7028評估板參考指南
- 815.82KB | 次下載 | 免費
本月
- 1ADI高性能電源管理解決方案
- 2.43 MB | 450次下載 | 免費
- 2免費開源CC3D飛控資料(電路圖&PCB源文件、BOM、
- 5.67 MB | 138次下載 | 1 積分
- 3基于STM32單片機智能手環心率計步器體溫顯示設計
- 0.10 MB | 130次下載 | 免費
- 4使用單片機實現七人表決器的程序和仿真資料免費下載
- 2.96 MB | 44次下載 | 免費
- 5美的電磁爐維修手冊大全
- 1.56 MB | 24次下載 | 5 積分
- 6如何正確測試電源的紋波
- 0.36 MB | 18次下載 | 免費
- 7感應筆電路圖
- 0.06 MB | 10次下載 | 免費
- 8萬用表UT58A原理圖
- 0.09 MB | 9次下載 | 5 積分
總榜
- 1matlab軟件下載入口
- 未知 | 935121次下載 | 10 積分
- 2開源硬件-PMP21529.1-4 開關降壓/升壓雙向直流/直流轉換器 PCB layout 設計
- 1.48MB | 420062次下載 | 10 積分
- 3Altium DXP2002下載入口
- 未知 | 233088次下載 | 10 積分
- 4電路仿真軟件multisim 10.0免費下載
- 340992 | 191367次下載 | 10 積分
- 5十天學會AVR單片機與C語言視頻教程 下載
- 158M | 183335次下載 | 10 積分
- 6labview8.5下載
- 未知 | 81581次下載 | 10 積分
- 7Keil工具MDK-Arm免費下載
- 0.02 MB | 73810次下載 | 10 積分
- 8LabVIEW 8.6下載
- 未知 | 65988次下載 | 10 積分
評論