Atmel AVR944: Atmel LED Driver Library for 8 ... - Atmel Corporation
Atmel AVR944: Atmel LED Driver Library for 8 ... - Atmel Corporation
Atmel AVR944: Atmel LED Driver Library for 8 ... - Atmel Corporation
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
10 Table of contents<br />
12 <strong>Atmel</strong> <strong>AVR944</strong><br />
Features............................................................................................... 1<br />
1 Introduction...................................................................................... 1<br />
2 Prerequisites .................................................................................... 2<br />
3 Limitations........................................................................................ 2<br />
4 Creating a project ............................................................................ 3<br />
5 Configuring the library .................................................................... 4<br />
5.1 Selecting the device and interface ...................................................................... 4<br />
5.2 Interface settings ................................................................................................. 4<br />
5.2.1 <strong>Atmel</strong> XMEGA with TWI interface.............................................................................. 4<br />
5.2.2 <strong>Atmel</strong> megaAVR with TWI interface .......................................................................... 5<br />
5.2.3 <strong>Atmel</strong> tinyAVR with USI interface .............................................................................. 6<br />
5.2.4 <strong>Atmel</strong> tinyAVR with SPI interface .............................................................................. 6<br />
6 Electrical connections..................................................................... 8<br />
6.1 TWI ...................................................................................................................... 8<br />
6.2 SPI....................................................................................................................... 8<br />
7 Using the library............................................................................... 9<br />
7.1 <strong>Library</strong> functions .................................................................................................. 9<br />
7.1.1 atmel_led_drvr_init().................................................................................................. 9<br />
7.1.2 atmel_led_drvr_writeregister(slave_address, REG_ADDR. REG_DATA)................. 9<br />
7.1.3 atmel_led_drvr_readregister(slave_address, REG_ADDR, *receivedData) .............. 9<br />
7.1.4 atmel_led_drvr_writearray(slave_address, REG_ADDR, *Data, count) .................... 9<br />
7.1.5 atmel_led_drvr_readarray(slave_address, REG_ADDR, *Data, count)..................... 9<br />
7.2 Writing user defined functions............................................................................. 9<br />
8 Demo program ............................................................................... 10<br />
8.1 Hardware requirements..................................................................................... 10<br />
9 References...................................................................................... 11<br />
10 Table of contents ......................................................................... 12<br />
8464A-AVR-11/11