| Electronic Components Datasheet Search |
|
AS3661 Datasheet(PDF) 37 Page - ams AG |
|
|
|||||||||||||||||||||||||||||
AS3661 Datasheet(HTML) 37 Page - ams AG |
|
37 / 87 page ![]() www.austriamicrosystems.com Revision 1.3 36 - 85 AS3661 Datasheet - D e t a i l e d D e s c r i p t i o n 8.10.2 ENGINE CNTRL2 The AS3661 supports up to four different operation modes which are defined in these registers. Disabled: Engines can be configured to disabled mode each one separately. Load program: Writing to program memory is allowed only when the engine is in load program operation mode and engine busy bit (reg 3A) is not set. Serial bus master should check the busy bit before writing to program memory. All the three engines are in hold while one or more engines are in load program mode. PWM values are frozen, also. Program execution continues when all the engines are out of load program mode. Load program mode resets the program counter of the respective engine. Load program mode can be entered from the disabled mode only. Entering load program mode from the run program mode is not allowed. Run Program: Run program mode executes the instructions stored in the program memory. Execution register (ENG1_EXEC etc.) bits define how the program is executed (hold, step, free run or execute once). Program start address can be programmed to the Program Counter (PC) register. The Program Counter is reset to zero when the PC’s upper limit value is reached. Halt: Instruction execution aborts immediately and engine operation halts. 3:2 ENGINE2_EXEC 00 R/W The engine 2 program execution control register bits define how the program is executed. Program start address can be programmed to program counter (PC) register 0x38. 00: Hold causes the execution engine to finish the current instruction and then stop. Program counter (PC) can be read or written only in this mode. 01: Execute the instruction at the location pointed by the PC, increment the PC by one and then reset ENG2_EXEC bits to 00 (i.e. enter hold). 10: Start program execution from the location pointed by the PC. This mode is also called “Free Run” mode. 11: Execute the instruction pointed by the current PC value and reset ENG2_EXEC to 00 (i.e. enter hold). The difference between step and execute once is that execute once does not increment the PC. 1:0 ENGINE3_EXEC 00 R/W The engine 3 program execution control register bits define how the program is executed. Program start address can be programmed to program counter (PC) register 0x39. 00: Hold causes the execution engine to finish the current instruction and then stop. Program counter (PC) can be read or written only in this mode. 01: Executes the instruction at the location pointed by the PC, increment the PC by one and then reset ENG3_EXEC bits to 00 (i.e. enter hold). 10: Start program execution from the location pointed by the PC. This mode is also called “Free Run” mode. 11: Execute the instruction pointed by the current PC value and reset ENG3_EXEC to 00 (i.e. enter hold). The difference between step and execute once is that execute once does not increment the PC. Table 8. ENABLE / ENGINE CNTR 1 Register Register: 0x00 ENABLE / ENGINE CNTR1 Bit Bit Name Default Access Bit Description |
|
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 |