| Electronic Components Datasheet Search |
|
AVR401 Datasheet(PDF) 8 Page - ATMEL Corporation |
|
|
|||||||||||||||||||||||||||||
AVR401 Datasheet(HTML) 8 Page - ATMEL Corporation |
|
8 / 12 page ![]() 8 AVR401 0953C–AVR–02/03 “T0_int” Interrupt Service Routine The only function for this routine is to increment the TH variable, so a 16-bit Timer is cre- ated. Only nine bits are used. “mpy9u” 9 × 8 Bit Multiplication This routine performs a 9 × 8 bit multiplication. The 9-bit multiplier must be stored in the Carry Flag (MSB) and the “mp9u” Register. The multiplicand is stored in the “mc9u” Register. The answer is placed in “C:m9uH:m9uL”. The registers used for the result are the same as those used for the input to the division routine. The routine is based on the “mpy8u” multiplication routine described in application note AVR 200. Table 5. “T0_int” Interrupt Performance Figures Parameter Value Code Size 2 words Execution Cycles 9 – including the reti instruction Register Usage Low Registers High Registers Global :None :None :1 Table 6. “mpy9u” Subroutine Performance Figures Parameter Value Code Size 11 words Execution Cycles 83 Register Usage Low Registers High Registers Global Flags :3 :None :1 :C Table 7. “mpy9u” Register Usage Register Input Internal Output R0 mc9u – Multiplicand R1 mp9u – Multiplier m9uL – Result Low byte R2 m9uH – Result High byte C-flag Multiplier, ninth bit Result, 17th bit R20 temp – Used as Loop Counter |
|
|
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 |