ADE1202 Example proegram using ADE120x library files

Dependencies:   ADE120x

Committer:
mlambe
Date:
Tue Oct 22 13:40:27 2019 +0000
Revision:
6:bded7f68793d
Parent:
5:975c3cbc8b55
Initial publish

Who changed what in which revision?

UserRevisionLine numberNew contents of line
malavikasaji 0:4b7ec1ec0c7a 1 Evaluation Boards/Products Supported
malavikasaji 0:4b7ec1ec0c7a 2 ------------------------------------
mlambe 2:2ebdd709cec0 3 EVAL-AD1202EBZ (ADE1202)
mlambe 2:2ebdd709cec0 4
malavikasaji 0:4b7ec1ec0c7a 5
malavikasaji 0:4b7ec1ec0c7a 6 Overview
malavikasaji 0:4b7ec1ec0c7a 7 --------
mlambe 2:2ebdd709cec0 8 These code files provide drivers to interface with ADE1202 and communicate with
mlambe 5:975c3cbc8b55 9 EVAL-ADE1202EBZ evaluation board. This code was developed and tested on SDP-K1 controller board
malavikasaji 0:4b7ec1ec0c7a 10 https://os.mbed.com/platforms/SDP_K1/.
malavikasaji 0:4b7ec1ec0c7a 11
mlambe 2:2ebdd709cec0 12 Product details: https://www.analog.com/en/products/ad1202.html
mlambe 2:2ebdd709cec0 13
mlambe 2:2ebdd709cec0 14 Eval board details: https://wiki.analog.com/resources/eval/user-guides/ade120x
malavikasaji 0:4b7ec1ec0c7a 15
malavikasaji 0:4b7ec1ec0c7a 16
malavikasaji 0:4b7ec1ec0c7a 17 Hardware Setup
malavikasaji 0:4b7ec1ec0c7a 18 --------------
mlambe 2:2ebdd709cec0 19 Required: SDP-K1, EVAL-ADE1202, USB cable
mlambe 2:2ebdd709cec0 20
mlambe 2:2ebdd709cec0 21 Plug in the EVAL-AD1201EBZ board to SDP-K1 board using the SDP connector
malavikasaji 0:4b7ec1ec0c7a 22 Connect SDP-K1 board to the PC using the USB cable.
malavikasaji 0:4b7ec1ec0c7a 23
mlambe 2:2ebdd709cec0 24 Code Explanation
mlambe 2:2ebdd709cec0 25 ------------------
mlambe 2:2ebdd709cec0 26 The example program configures device U0 on EVAL-ADE1202EBZ. DOUT1 and DOUT2
mlambe 5:975c3cbc8b55 27 are connected to interrupt pins on the SDP-K1. The UART interface transmits data
mlambe 5:975c3cbc8b55 28 back to the PC. Refer to AN-2034 for details on register settings.
malavikasaji 0:4b7ec1ec0c7a 29
malavikasaji 0:4b7ec1ec0c7a 30 How to Get Started
malavikasaji 0:4b7ec1ec0c7a 31 ------------------
malavikasaji 0:4b7ec1ec0c7a 32 Open Mbed online compiler. https://ide.mbed.com/compiler
mlambe 2:2ebdd709cec0 33 Import Code into compiler from here: https://os.mbed.com/teams/AnalogDevices/code/EVAL-AD1201/
malavikasaji 0:4b7ec1ec0c7a 34 instructions on how to import code are here: https://os.mbed.com/docs/mbed-os/v5.12/tools/importing-code.html
malavikasaji 0:4b7ec1ec0c7a 35 Compile code. Drag and drop binary into SDP-K1 controller board. instructions
malavikasaji 0:4b7ec1ec0c7a 36 here: https://os.mbed.com/docs/mbed-os/v5.12/tools/getting-your-program-on-your-board.html
mlambe 2:2ebdd709cec0 37 Open Tera Term, select 230400 baud rate, and the applicable COM port to see the
malavikasaji 0:4b7ec1ec0c7a 38 list of options.
malavikasaji 0:4b7ec1ec0c7a 39
malavikasaji 0:4b7ec1ec0c7a 40 A detailed user guide on how to use SDP-K1 board on Mbed platform is available
malavikasaji 0:4b7ec1ec0c7a 41 here: <<Mbed user guide>>
malavikasaji 0:4b7ec1ec0c7a 42
malavikasaji 0:4b7ec1ec0c7a 43
malavikasaji 0:4b7ec1ec0c7a 44 Notes
malavikasaji 0:4b7ec1ec0c7a 45 -----
malavikasaji 0:4b7ec1ec0c7a 46 If using Win 7, install serial drivers for Mbed. https://os.mbed.com/docs/mbed-os/v5.12/tutorials/windows-serial-driver.html
malavikasaji 0:4b7ec1ec0c7a 47 A detailed user guide on SDP-K1 controller board is available here https://www.analog.com/en/design-center/evaluation-hardware-and-software/evaluation-boards-kits/SDP-K1.html.
malavikasaji 0:4b7ec1ec0c7a 48
malavikasaji 0:4b7ec1ec0c7a 49
malavikasaji 0:4b7ec1ec0c7a 50 License
malavikasaji 0:4b7ec1ec0c7a 51 -------
malavikasaji 0:4b7ec1ec0c7a 52 Copyright (c) 2019 Analog Devices, Inc. All rights reserved.
mlambe 5:975c3cbc8b55 53