| Electronic Components Datasheet Search |
|
AVR465 Datasheet(PDF) 23 Page - ATMEL Corporation |
|
|
|||||||||||||||||||||||||||||
AVR465 Datasheet(HTML) 23 Page - ATMEL Corporation |
|
23 / 40 page ![]() AVR465 23 2566A-AVR-07/04 Figure 13. Example Set-Up for Calibration and/or Metering. To download the firmware into the meter first open the compiler workspace, compile the project and use AVR Studio to send the compiled file to the target, as described above. Alternatively, use AVR Studio to send the precompiled firmware directly to the target. Set up fuses to match hardware environment. The default is to use external crystal, with full output swing and long start-up time. This means fuses CKSEL are set to 0111 and fuses SUT to 11. Fuses CKDIV8 and CKOUT should be unprogrammed. Calibration Example There are many methods for calibrating the meter. Here is presented one. This method requires a programmable, high-voltage, high-current signal generator. Also required is hardware for programming the AVR in the meter. An STK500 can be used, but a debugger such as JTAGICE mkII is recommended, since it allows EEPROM to be edited more easily. Connect the signal generator to the meter front-end. Then connect the meter to a PC using a RS-232 buffer circuit, such as the spare RS-232 interface on the STK500. Start a terminal software on the PC and configure it to receive data from the meter. Start by writing the following set of calibration coefficients to EEPROM. This will set phase calibration to zero and gain to unity in all calculations. Table 8. Initialization of Calibration Coefficients. ADDR. + 0x00 + 0x01 + 0x02 + 0x03 + 0x04 + 0x05 + 0x06 + 0x07 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x01 0x08 0x00 0x01 0x00 0x01 0x00 0x01 0x00 0x01 0x10 0x00 0x01 0xFF 0xFF 0x27 0x10 0x00 0x64 0x18 0x00 0x00 0x00 0x00 0x43 0x57 0x00 0x00 If using a programmer, create a text file as shown below and load the contents of the file into the EEPROM. The file content is of type Intel Hex. Firmware Set-Up Set-Up Step 1 - Initialisation 465 RS232 SPARE SIGNAL GENE- RATOR HIGH VOLTAGE & HIGH CURRENT STK500 RS232 CTRL RS232 SPARE ISP6PIN J2 J1 COM1 COM2 PC DC DC RxD /RST SCK MOSI VOUT V0 VIN GND TxD MISO GALVANIC ISOLATION "SAFE" SIDE POWER SUPPLY AVR Studio Terminal |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |