| Electronic Components Datasheet Search |
|
AS3665 Datasheet(PDF) 47 Page - ams AG |
|
|
|||||||||||||||||||||||||||||
AS3665 Datasheet(HTML) 47 Page - ams AG |
|
47 / 78 page ![]() www.austriamicrosystems.com Revision 1.0.2 46 - 77 AS3665 Datasheet, Confidential - Prog ramming Progra m E x e c u t io n a nd Debug ging It uses the command delivered by the sequencers, executes them, converts the data from linear to logarithmic repre- sentation add color correction and a master value. This signal is then feed into the actual PWM generator which con- trols the LED current source. Program Execution and Debugging Following steps are required for the setup of the AS3665 and execution of a program 1. The AS3665 operating mode should be standby or active - see Device Operating Mode on page 12 2. Set the LED currents - see Current Sources on page 15 3. The charge pump usually can be left at their default setting - see CP setting Application Hint on page 31 4. Download of program: see Program Downloading on page 43. 5. Write the program start addresses to registers start_addr1, start_addr2 and start_addr3 16 6. Initialize the program counters PC1...PC3 by setting p1_en=01, p2_en=01 and p3_en=01. The program exe- cution is automatically enabled (p1_en...p3_en is set to 10 by the AS3665). 7. Set AS3665 operating mode to active by setting chip_en=1 - see Device Operating Mode on page 12 8. Execute the program by setting p1_mode=10, p2_mode=10 and p3_mode=10 Sequencers can be stopped by setting p1_mode...p3_mode=00 (hold). Single step debugging is achieved by setting p1_mode...p3_mode=01. 17 The program counter can be controller either by direct writing to registers PC1...PC3 or reset with p1_en...p3_en as shown above 9. Use AS3665 standby mode (set chip_en=0) to stop all programs and disable all current sources 16.Assuming all three sequencers are actually used for the program. 17.The demoboard software simplifies the debugging using a graphical user interface. Table 56. Exec_Enable Register Addr: 00h Exec_Enable Register Bit Bit Name Default Access Description 1:0 p1_en 00b R/W Execution enable for sequencer 1 00 Sequencer 1 is disabled 1 01 Reload program counter and enable: set PC1 to start_addr1, initialize sequencer 1 internal loop counters then set p1_en=10 (run) 10 Execute sequencer commands as defined by p1_mode 11 don’t use 3:2 p2_en 00b R/W Execution enable for sequencer 2 00 Sequencer 2 is disabled 1 01 Reload program counter and enable: set PC2 to start_addr2, initialize sequencer 2 internal loop counters then set p2_en=10 (run) 10 Execute sequencer commands as defined by p2_mode 11 don’t use |
|
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 |